Changes in kernel/arch/ia32/src/asm.S [ed7998b:b808660] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/asm.S
red7998b rb808660 44 44 .global paging_on 45 45 .global enable_l_apic_in_msr 46 .global interrupt_handlers47 46 .global memsetb 48 47 .global memsetw … … 272 271 * vectors starting at vector i. 273 272 * 274 * The handlers setup data segment registers 275 * and call exc_dispatch(). 276 * 277 */ 278 #define INTERRUPT_ALIGN 256 279 280 .macro handler i n 273 */ 274 275 .macro handler i 276 .global int_\i 277 int_\i: 281 278 .ifeq \i - 0x30 282 279 /* Syscall handler */ … … 475 472 476 473 .endif 477 478 .align INTERRUPT_ALIGN479 .if (\n - \i) - 1480 handler "(\i + 1)", \n481 .endif482 474 .endm 483 475 484 /* Keep in sync with pm.h! */ 485 #define IDT_ITEMS 64 486 487 .align INTERRUPT_ALIGN 476 #define LIST_0_63 \ 477 0, 1, 2, 3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,\ 478 28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,\ 479 53,54,55,56,57,58,59,60,61,62,63 480 488 481 interrupt_handlers: 489 h_start: 490 handler 0 IDT_ITEMS491 h_end: 482 .irp cnt, LIST_0_63 483 handler \cnt 484 .endr 492 485 493 486 /** Print Unicode character to EGA display. … … 638 631 ret 639 632 640 .data641 .global interrupt_handler_size642 643 interrupt_handler_size: .long (h_end - h_start) / IDT_ITEMS
Note:
See TracChangeset
for help on using the changeset viewer.