Panic fix
This commit is contained in:
parent
08b4fa927d
commit
99732384ed
|
@ -84,16 +84,6 @@ noreturn void __assert_handler(const char *, const char *, int, const char *);
|
|||
//
|
||||
#define KalAssert KalAlwaysAssert
|
||||
|
||||
#ifndef _OSK_SOURCE
|
||||
|
||||
// When not building for OS/K, use the system's assert
|
||||
#include <assert.h>
|
||||
|
||||
#undef KalAlwaysAssert
|
||||
#define KalAlwaysAssert assert
|
||||
|
||||
#endif
|
||||
|
||||
//------------------------------------------//
|
||||
// When not debugging //
|
||||
//------------------------------------------//
|
||||
|
|
|
@ -60,7 +60,6 @@ typedef enum TermColor_t TermColor_t;
|
|||
|
||||
// Get Process_t structure of current CPU
|
||||
#define GetCurCPU() (cpuTable[_GetCurCPU()])
|
||||
#define PANICSTR_SIZE 1024
|
||||
|
||||
//------------------------------------------//
|
||||
|
||||
|
@ -72,9 +71,6 @@ struct Processor_t
|
|||
// CPU number, index in CPU list
|
||||
int index;
|
||||
|
||||
// Panic string
|
||||
char panicStr[PANICSTR_SIZE];
|
||||
|
||||
// Number of ticks since boot time
|
||||
ulong ticks;
|
||||
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
|
||||
//------------------------------------------//
|
||||
|
||||
extern volatile char *PanicStr;
|
||||
#define PANICSTR_SIZE 1024
|
||||
extern volatile char PanicStr[PANICSTR_SIZE];
|
||||
|
||||
//------------------------------------------//
|
||||
|
||||
|
|
Loading…
Reference in New Issue