Changeset 233 for trunk/hal/x86_64/core/hal_exception.c
- Timestamp:
- Jul 18, 2017, 3:28:20 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_exception.c
r143 r233 58 58 * Hexception handler. 59 59 */ 60 void hal_exception_entry( struct small_trapframe *tf)60 void hal_exception_entry(hal_cpu_context_t *ctx) 61 61 { 62 uint64_t excno = tf->tf_trapno;62 uint64_t excno = ctx->tf_trapno; 63 63 const char *buf; 64 64 … … 71 71 x86_printf("\n****** EXCEPTION OCCURRED ******\n"); 72 72 x86_printf("%s\n", (char *)buf); 73 x86_printf("-> rip = %Z\n", tf->tf_rip);74 x86_printf("-> rsp = %Z\n", tf->tf_rsp);75 x86_printf("-> err = %Z\n", tf->tf_err);73 x86_printf("-> rip = %Z\n", ctx->tf_rip); 74 x86_printf("-> rsp = %Z\n", ctx->tf_rsp); 75 x86_printf("-> err = %Z\n", ctx->tf_err); 76 76 if (excno == T_PAGEFLT) 77 77 x86_printf("-> va = %Z\n", rcr2());
Note: See TracChangeset
for help on using the changeset viewer.