Ignore:
Timestamp:
Jul 18, 2017, 3:28:20 PM (7 years ago)
Author:
max@…
Message:

Push the context entirely for an exception.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_exception.c

    r143 r233  
    5858 * Hexception handler.
    5959 */
    60 void hal_exception_entry(struct small_trapframe *tf)
     60void hal_exception_entry(hal_cpu_context_t *ctx)
    6161{
    62         uint64_t excno = tf->tf_trapno;
     62        uint64_t excno = ctx->tf_trapno;
    6363        const char *buf;
    6464
     
    7171        x86_printf("\n****** EXCEPTION OCCURRED ******\n");
    7272        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);
    7676        if (excno == T_PAGEFLT)
    7777                x86_printf("-> va  = %Z\n", rcr2());
Note: See TracChangeset for help on using the changeset viewer.