Changeset 237 for trunk/hal/x86_64/core/hal_interrupt.c
- Timestamp:
- Jul 19, 2017, 2:57:03 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_interrupt.c
r234 r237 38 38 void hal_timer_intr(hal_cpu_context_t *tf) 39 39 { 40 x86_printf("-> got timer: rip=%Z (th=%Z)\n", tf->tf_rip, 41 hal_get_current_thread()); 40 if (hal_get_gid() != 0) { 41 /* print the message only for cpu0 */ 42 return; 43 } 44 x86_printf("-> got timer: cpu%z rip=%Z (th=%Z)\n", hal_get_gid(), 45 tf->tf_rip, hal_get_current_thread()); 42 46 return; 43 47 } … … 132 136 val = in8(PS2_DATA); 133 137 134 x86_printf("-> got keyboard: rip=%Z key=%c ", tf->tf_rip, scancode_US[val]); 138 x86_printf("-> got keyboard: cpu%z rip=%Z key=%c ", hal_get_gid(), 139 tf->tf_rip, scancode_US[val]); 135 140 136 141 if (val & 0x80)
Note: See TracChangeset
for help on using the changeset viewer.