Panic fix

This commit is contained in:
Julian Barathieu 2019-03-19 13:59:06 +01:00
parent 08b4fa927d
commit 99732384ed
3 changed files with 2 additions and 15 deletions

View File

@ -84,16 +84,6 @@ noreturn void __assert_handler(const char *, const char *, int, const char *);
// //
#define KalAssert KalAlwaysAssert #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 // // When not debugging //
//------------------------------------------// //------------------------------------------//

View File

@ -60,7 +60,6 @@ typedef enum TermColor_t TermColor_t;
// Get Process_t structure of current CPU // Get Process_t structure of current CPU
#define GetCurCPU() (cpuTable[_GetCurCPU()]) #define GetCurCPU() (cpuTable[_GetCurCPU()])
#define PANICSTR_SIZE 1024
//------------------------------------------// //------------------------------------------//
@ -72,9 +71,6 @@ struct Processor_t
// CPU number, index in CPU list // CPU number, index in CPU list
int index; int index;
// Panic string
char panicStr[PANICSTR_SIZE];
// Number of ticks since boot time // Number of ticks since boot time
ulong ticks; ulong ticks;

View File

@ -31,7 +31,8 @@
//------------------------------------------// //------------------------------------------//
extern volatile char *PanicStr; #define PANICSTR_SIZE 1024
extern volatile char PanicStr[PANICSTR_SIZE];
//------------------------------------------// //------------------------------------------//