3DS: Switch from svc* to the thread* API
authorJustin Weiss <justin@justinweiss.com>
Sun, 6 Oct 2019 04:35:06 +0000 (21:35 -0700)
committerJustin Weiss <justin@justinweiss.com>
Sun, 6 Oct 2019 04:41:37 +0000 (21:41 -0700)
commit93c24a5631ba5281046d2cd1b141cc2f0ce1d29f
treee7f11673ffaaa21b0cbd2fad2e5e3b367982a03b
parentd5c8842cedcf268d34ffe0be6abe4f8545cf2c5f
3DS: Switch from svc* to the thread* API

svcCreateThread doesn't fully set up thread vars, which causes
svcBreaks / crashes when calling certain functions -- reentrant ones,
for example. threadCreate, etc. are higher-level functions that do all
the correct setup and cleanup.

Since we're treating the thread structure as opaque, calling it an
int_32t seems OK.
frontend/3ds/3ds_utils.h
frontend/3ds/pthread.h