Mercurial > hg > CbC > CbC_xv6
view src/impl/kernel_error.cbc @ 309:c6cbe4711e02
tweak
author | menikon |
---|---|
date | Mon, 03 Feb 2020 15:29:54 +0900 |
parents | 04a5e0aa7f01 |
children | ba8687746ff6 |
line wrap: on
line source
#include "../context.h" #interface "ErrorGear.h" // ---- // typedef struct KernelError <Type, Isa> impl ErrorGear { // } KernelError; // ---- ErrorGear* createKernelError(struct Context* cbc_context) { struct ErrorGear* error_gear = new ErrorGear(); struct KernelError* kernel_error = new KernelError(); error_gear->error_gear = (union Data*)kernel_error; error_gear->err_code = 0; error_gear->msg = NULL; error_gear->error = C_errorKernelError; error_gear->panic = C_panicKernelError; return error_gear; } __code errorKernelError(int err_code,...) { } __code panicKernelError(char* msg) { }