Ignore:
Timestamp:
Jun 28, 2017, 3:24:02 PM (7 years ago)
Author:
max@…
Message:

enable the timer (not yet calibrated)

File:
1 edited

Legend:

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

    r82 r86  
    5252 * Trap handler.
    5353 */
    54 void
    55 hal_trap_entry(struct small_trapframe *tf)
     54void hal_trap_entry(struct small_trapframe *tf)
    5655{
    5756        uint64_t trapno = tf->tf_trapno;
     
    6867        x86_printf("-> rip = %Z\n", tf->tf_rip);
    6968        x86_printf("-> rsp = %Z\n", tf->tf_rsp);
     69        x86_printf("-> err = %Z\n", tf->tf_err);
    7070        x86_printf("****** FAULT OCCURRED ******\n\n");
    7171
     
    7373}
    7474
     75/*
     76 * Timer interrupt
     77 */
     78void hal_timer_intr(struct trapframe *tf)
     79{
     80        x86_printf("-> got timer: rip=%Z\n", tf->tf_rip);
     81        return;
     82}
    7583
Note: See TracChangeset for help on using the changeset viewer.