Changeset b808660 in mainline for kernel/arch/ia32/src/asm.S
- Timestamp:
- 2010-07-08T20:03:52Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bee2d4c
- Parents:
- 9097982f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/asm.S
r9097982f 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 … … 273 272 * 274 273 */ 275 #define INTERRUPT_ALIGN 256 276 277 .macro handler i n 274 275 .macro handler i 276 .global int_\i 277 int_\i: 278 278 .ifeq \i - 0x30 279 279 /* Syscall handler */ … … 472 472 473 473 .endif 474 475 .align INTERRUPT_ALIGN476 .if (\n - \i) - 1477 handler "(\i + 1)", \n478 .endif479 474 .endm 480 475 481 /* Keep in sync with pm.h! */ 482 #define IDT_ITEMS 64 483 484 .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 485 481 interrupt_handlers: 486 h_start: 487 handler 0 IDT_ITEMS488 h_end: 482 .irp cnt, LIST_0_63 483 handler \cnt 484 .endr 489 485 490 486 /** Print Unicode character to EGA display. … … 635 631 ret 636 632 637 .data638 .global interrupt_handler_size639 640 interrupt_handler_size: .long (h_end - h_start) / IDT_ITEMS
Note:
See TracChangeset
for help on using the changeset viewer.