mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-17 16:44:22 -04:00
kern: implement KThreadLocalPage
This commit is contained in:
parent
484f132651
commit
059c706f19
15 changed files with 295 additions and 30 deletions
|
@ -65,3 +65,11 @@ namespace ams::kern {
|
|||
MESOSPHERE_INIT_ABORT(); \
|
||||
} \
|
||||
})
|
||||
|
||||
#define MESOSPHERE_R_ABORT_UNLESS(expr) \
|
||||
({ \
|
||||
const ::ams::Result _tmp_meso_r_abort_res = static_cast<::ams::Result>(expr); \
|
||||
if (AMS_UNLIKELY((R_FAILED(_tmp_meso_r_abort_res))) { \
|
||||
MESOSPHERE_PANIC("Result Abort(): %s 2%03d-%04d", #expr, _tmp_meso_r_abort_res.GetModule(), _tmp_meso_r_abort_res.GetDescription()); \
|
||||
} \
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue