Ignore:
Timestamp:
Jul 6, 2017, 3:47:20 PM (7 years ago)
Author:
max@…
Message:

add a basic RS232 COM1 implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_kentry.S

    r146 r152  
    3636        .globl  hal_exception_entry
    3737        .globl  hal_timer_intr
     38        .globl  hal_com1_intr
    3839        .globl  hal_keyboard_intr
    3940        .type   hal_exception_entry, @function
    4041        .type   hal_timer_intr, @function
     42        .type   hal_com1_intr, @function
    4143        .type   hal_keyboard_intr, @function
    4244
     
    133135        movq    %rsp,%rdi
    134136        call    hal_timer_intr
     137
     138        movq    lapic_va(%rip),%rax
     139        movl    $0,LAPIC_EOI(%rax)
     140
     141        INTR_RESTORE_REGS
     142        addq    $16,%rsp
     143        iretq
     144
     145ASM_ENTRY(x86_ioapic_com1)
     146        pushq   $0
     147        pushq   $T_ASTFLT
     148        INTR_SAVE_REGS
     149
     150        movq    %rsp,%rdi
     151        call    hal_com1_intr
    135152
    136153        movq    lapic_va(%rip),%rax
     
    247264
    248265        .quad   x86_lapic_timer
     266        .quad   x86_ioapic_com1
    249267        .quad   x86_ioapic_keyboard
    250268
Note: See TracChangeset for help on using the changeset viewer.