kern: Implement most of memory init (all cores hit main, but still more to do)
This commit is contained in:
1 parent
b2e522c0a0
commit
e7dee2a9fc
22 files changed
+1246
-81
No files matched your search
@@ -44,10 +44,18 @@ namespace ams::kern {
|
||||
#define MESOSPHERE_R_ASSERT(expr) MESOSPHERE_ASSERT_IMPL(R_SUCCEEDED(expr), "Result assertion failed: %s", #expr)
|
||||
|
||||
#define MESOSPHERE_ABORT() MESOSPHERE_PANIC("Abort()");
|
||||
#define MESOSPHERE_INIT_ABORT() do { /* ... */ } while (true)
|
||||
|
||||
#define MESOSPHERE_ABORT_UNLESS(expr) \
|
||||
({ \
|
||||
if (AMS_UNLIKELY(!(expr))) { \
|
||||
if (AMS_UNLIKELY(!(expr))) { \
|
||||
MESOSPHERE_PANIC("Abort(): %s", #expr); \
|
||||
} \
|
||||
})
|
||||
|
||||
#define MESOSPHERE_INIT_ABORT_UNLESS(expr) \
|
||||
({ \
|
||||
if (AMS_UNLIKELY(!(expr))) { \
|
||||
MESOSPHERE_INIT_ABORT(); \
|
||||
} \
|
||||
})
|
||||
Reference in new issue
Block a user