Changeset bee2d4c in mainline for kernel/arch/ia32/src/asm.S


Ignore:
Timestamp:
2010-07-08T21:09:53Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
144185b, 5f83634, bd48f4c
Parents:
62b20f1 (diff), b808660 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:~jakub/helenos/upa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/asm.S

    r62b20f1 rbee2d4c  
    4444.global paging_on
    4545.global enable_l_apic_in_msr
    46 .global interrupt_handlers
    4746.global memsetb
    4847.global memsetw
     
    272271 * vectors starting at vector i.
    273272 *
    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
     277int_\i:
    281278        .ifeq \i - 0x30
    282279                /* Syscall handler */
     
    475472               
    476473        .endif
    477        
    478         .align INTERRUPT_ALIGN
    479         .if (\n - \i) - 1
    480                 handler "(\i + 1)", \n
    481         .endif
    482474.endm
    483475
    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
    488481interrupt_handlers:
    489         h_start:
    490                 handler 0 IDT_ITEMS
    491         h_end:
     482.irp cnt, LIST_0_63
     483        handler \cnt
     484.endr
    492485
    493486/** Print Unicode character to EGA display.
     
    638631        ret
    639632
    640 .data
    641 .global interrupt_handler_size
    642 
    643 interrupt_handler_size: .long (h_end - h_start) / IDT_ITEMS
Note: See TracChangeset for help on using the changeset viewer.