Changeset 86 for trunk/hal/x86_64/core/hal_kentry.S
- Timestamp:
- Jun 28, 2017, 3:24:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_kentry.S
r82 r86 23 23 #include <hal_boot.h> 24 24 #include <hal_kentry.h> 25 #include <hal_apic.h> 25 26 26 27 #define TRAPENTRY(a) \ 27 pushq 28 jmp 28 pushq $(a); \ 29 jmp alltraps; 29 30 30 31 #define ZTRAPENTRY(a) \ 31 pushq 32 pushq $0; \ 32 33 TRAPENTRY(a) 33 34 34 35 .text 35 36 .globl hal_trap_entry 37 .globl hal_timer_intr 36 38 .type hal_trap_entry, @function 39 .type hal_timer_intr, @function 37 40 38 41 /* … … 118 121 * LAPIC interrupts. 119 122 */ 120 ASM_ENTRY(x86_ spurious)123 ASM_ENTRY(x86_lapic_spurious) 121 124 ZTRAPENTRY(T_ASTFLT) 122 ASM_ENTRY(x86_timer) 123 ZTRAPENTRY(T_ASTFLT) 125 126 ASM_ENTRY(x86_lapic_timer) 127 pushq $0 128 pushq $T_ASTFLT 129 INTR_SAVE_REGS 130 131 movq %rsp,%rdi 132 call hal_timer_intr 133 134 movq lapic_va(%rip),%rax 135 movl $0,LAPIC_EOI(%rax) 136 137 INTR_RESTORE_REGS 138 addq $16,%rsp 139 iretq 124 140 125 141 /* … … 164 180 165 181 x86_intrs: 166 .quad x86_ spurious167 .quad x86_ timer182 .quad x86_lapic_spurious 183 .quad x86_lapic_timer 168 184
Note: See TracChangeset
for help on using the changeset viewer.