Ignore:
Timestamp:
Jul 19, 2017, 2:57:03 PM (7 years ago)
Author:
max@…
Message:

Attach the secondary CPUs, and for now route the keyboard irq to
cpu1 - test only, but nice.

File:
1 edited

Legend:

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

    r234 r237  
    3838void hal_timer_intr(hal_cpu_context_t *tf)
    3939{
    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());
    4246        return;
    4347}
     
    132136        val = in8(PS2_DATA);
    133137
    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]);
    135140
    136141        if (val & 0x80)
Note: See TracChangeset for help on using the changeset viewer.