Changeset 344


Ignore:
Timestamp:
Aug 8, 2017, 11:27:12 AM (7 years ago)
Author:
max@…
Message:

Call core_clock - the computation in this function still needs to
be fixed.

File:
1 edited

Legend:

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

    r340 r344  
    3939void hal_timer_intr(hal_trapframe_t *tf)
    4040{
    41         if (hal_get_gid() != 0) {
     41        core_t *core = CURRENT_THREAD->core;
     42
     43        if (hal_get_gid() == 0) {
    4244                /* print the message only for cpu0 */
    43                 return;
     45                x86_printf("-> got timer: cpu%z rip=%Z (th=%Z)\n", hal_get_gid(),
     46                    tf->tf_rip, hal_get_current_thread());
    4447        }
    45         x86_printf("-> got timer: cpu%z rip=%Z (th=%Z)\n", hal_get_gid(),
    46             tf->tf_rip, hal_get_current_thread());
    47         return;
    48 
    49         core_t *core = CURRENT_THREAD->core;
    5048
    5149        core_clock(core);
Note: See TracChangeset for help on using the changeset viewer.