Mercurial > hg > Members > menikon > CbC_xv6
changeset 168:04a5e0aa7f01
add kernel_error.cbc
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 16 Jan 2020 16:10:00 +0900 |
parents | 2a35e8c6f67c |
children | e0255e66e646 |
files | src/impl/kernel_error.cbc |
diffstat | 1 files changed, 26 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/impl/kernel_error.cbc Thu Jan 16 16:10:00 2020 +0900 @@ -0,0 +1,26 @@ +#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) { + +} +