Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc32/src/trap_table.S

    r38ad239 r208b5f5  
    2727#
    2828
    29 #include <abi/asmtool.h>
    3029#include <arch/trap.h>
    3130#include <arch/regwin.h>
    3231
    3332.text
     33
     34.global trap_table
     35.global reset_trap
     36.global preemptible_trap
     37.global interrupt_trap
     38.global syscall_trap
     39.global window_overflow_trap
     40.global window_underflow_trap
     41.global write_to_invalid
     42.global read_from_invalid
     43.global flush_windows
    3444
    3545.macro get_wim_number reg
     
    208218.endm
    209219
    210 FUNCTION_BEGIN(write_to_invalid)
     220write_to_invalid:
    211221        ! Write value 1
    212222        mov %o0, %g7
     
    226236        retl
    227237        nop
    228 FUNCTION_END(write_to_invalid)
    229 
    230 FUNCTION_BEGIN(read_from_invalid)
     238
     239read_from_invalid:
    231240        ! Read value 1
    232241        mov %o0, %g7
     
    246255        retl
    247256        nop
    248 FUNCTION_END(read_from_invalid)
    249 
    250 SYMBOL(reset_trap)
     257
     258reset_trap:
    251259        set 0x80000100, %l0
    252260        set 'r', %l1
     
    254262        rett
    255263
    256 SYMBOL(window_overflow_trap)
     264window_overflow_trap:
    257265        mov %g7, %l0
    258266       
     
    385393                rett %l2
    386394
    387 SYMBOL(window_underflow_trap)
     395window_underflow_trap:
    388396        mov %g7, %l0
    389397       
     
    471479                rett %l2
    472480
    473 FUNCTION_BEGIN(flush_windows)
     481flush_windows:
    474482        mov 7, %g1
    475483        1:
     
    486494        retl
    487495        nop
    488 FUNCTION_END(flush_windows)
    489 
    490 SYMBOL(preemptible_trap)
     496
     497preemptible_trap:
    491498        /* Save %g7 */
    492499        mov %g7, %l0
     
    663670                rett %l2
    664671
    665 SYMBOL(interrupt_trap)
     672interrupt_trap:
    666673        /* Save %g7 */
    667674        mov %g7, %l0
     
    837844                rett %l2
    838845
    839 SYMBOL(syscall_trap)
     846syscall_trap:
    840847        /* Save %g7 */
    841848        mov %g7, %l0
     
    10441051
    10451052.align TRAP_TABLE_SIZE
    1046 SYMBOL(trap_table)
     1053trap_table:
    10471054        STRAP(0x0, reset_trap)
    10481055        TRAP(0x1, instruction_access_exception)
Note: See TracChangeset for help on using the changeset viewer.