Mercurial > hg > Members > menikon > CbC_xv6
diff src/impl/kernel_error.cbc @ 312:cd9092628a63
mv kernel_error KernelError.h
author | anatofuz |
---|---|
date | Thu, 06 Feb 2020 16:43:26 +0900 |
parents | ba8687746ff6 |
children | 561eedeb9a99 |
line wrap: on
line diff
--- a/src/impl/kernel_error.cbc Thu Feb 06 16:04:16 2020 +0900 +++ b/src/impl/kernel_error.cbc Thu Feb 06 16:43:26 2020 +0900 @@ -1,4 +1,5 @@ -#include "../context.h" +#include "param.h" +#include "proc.h" #interface "ErrorGear.h" // ---- @@ -15,7 +16,6 @@ kernel_error->infinity_loop = C_infinity_loopKernelError; error_gear->error = C_errorKernelError; error_gear->panic = C_panicKernelError; - error_gear->next = C_nextKernelError; return error_gear; } @@ -29,6 +29,7 @@ } __code panicKernelError(struct KernelError* error_gear, char* msg) { + extern struct cpu* cpu; cli(); cons.locking = 0;