Mercurial > hg > CbC > CbC_xv6
view src/impl/kernel_error.cbc @ 294:08a367c3124a
add FileSystem files
author | menikon |
---|---|
date | Wed, 29 Jan 2020 15:58:12 +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) { }