equal
deleted
inserted
replaced
49 #define STRING_LENGTH_16(s) StringLength(s) |
49 #define STRING_LENGTH_16(s) StringLength(s) |
50 #define PANIC_CURRENT_THREAD(c,r) Kern::PanicCurrentThread(c, r) |
50 #define PANIC_CURRENT_THREAD(c,r) Kern::PanicCurrentThread(c, r) |
51 #define __KERNEL_CHECK_RADIX(r) __ASSERT_ALWAYS(((r)==EDecimal)||((r)==EHex),Panic(EInvalidRadix)) |
51 #define __KERNEL_CHECK_RADIX(r) __ASSERT_ALWAYS(((r)==EDecimal)||((r)==EHex),Panic(EInvalidRadix)) |
52 #define APPEND_BUF_SIZE 10 |
52 #define APPEND_BUF_SIZE 10 |
53 #define APPEND_BUF_SIZE_64 20 |
53 #define APPEND_BUF_SIZE_64 20 |
54 #define HEAP_PANIC(r) RHeapK::Fault(r) |
54 #define HEAP_PANIC(r) Kern::Printf("HEAP CORRUPTED %s %d", __FILE__, __LINE__), RHeapK::Fault(r) |
55 #define GET_PAGE_SIZE(x) x = M::PageSizeInBytes() |
55 #define GET_PAGE_SIZE(x) x = M::PageSizeInBytes() |
56 #define DIVISION_BY_ZERO() FAULT() |
56 #define DIVISION_BY_ZERO() FAULT() |
57 |
57 |
58 #ifdef _DEBUG |
58 #ifdef _DEBUG |
59 #define __CHECK_THREAD_STATE RHeapK::CheckThreadState() |
59 #define __CHECK_THREAD_STATE RHeapK::CheckThreadState() |
69 #define PANIC_CURRENT_THREAD(c,r) User::Panic(c, r) |
69 #define PANIC_CURRENT_THREAD(c,r) User::Panic(c, r) |
70 #define MEM_COMPARE_16 Mem::Compare |
70 #define MEM_COMPARE_16 Mem::Compare |
71 #define __KERNEL_CHECK_RADIX(r) |
71 #define __KERNEL_CHECK_RADIX(r) |
72 #define APPEND_BUF_SIZE 32 |
72 #define APPEND_BUF_SIZE 32 |
73 #define APPEND_BUF_SIZE_64 64 |
73 #define APPEND_BUF_SIZE_64 64 |
74 #define HEAP_PANIC(r) Panic(r) |
74 #define HEAP_PANIC(r) RDebug::Printf("HEAP CORRUPTED %s %d", __FILE__, __LINE__), Panic(r) |
75 #define GET_PAGE_SIZE(x) UserHal::PageSizeInBytes(x) |
75 #define GET_PAGE_SIZE(x) UserHal::PageSizeInBytes(x) |
76 #define DIVISION_BY_ZERO() User::RaiseException(EExcIntegerDivideByZero) |
76 #define DIVISION_BY_ZERO() User::RaiseException(EExcIntegerDivideByZero) |
77 #define __CHECK_THREAD_STATE |
77 #define __CHECK_THREAD_STATE |
78 |
78 |
79 #endif // __KERNEL_MODE__ |
79 #endif // __KERNEL_MODE__ |