Ignore:
Timestamp:
Jun 27, 2017, 5:19:53 PM (7 years ago)
Author:
max@…
Message:

print %rip, and add cli/sti

File:
1 edited

Legend:

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

    r51 r78  
    6464        }
    6565
    66         x86_printf("\n");
    67         x86_printf("****** FAULT OCCURRED ******\n");
    68         x86_printf((char *)buf);
    69         x86_printf("\n");
    70         x86_printf("****** FAULT OCCURRED ******\n");
    71         x86_printf("\n");
     66        x86_printf("\n****** FAULT OCCURRED ******\n");
     67        x86_printf("%s\n", (char *)buf);
     68        x86_printf("-> rip = %Z\n", tf->tf_rip);
     69        x86_printf("****** FAULT OCCURRED ******\n\n");
    7270
    7371        while (1);
Note: See TracChangeset for help on using the changeset viewer.