Changes in kernel/arch/sparc32/src/trap_table.S [38ad239:208b5f5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc32/src/trap_table.S
r38ad239 r208b5f5 27 27 # 28 28 29 #include <abi/asmtool.h>30 29 #include <arch/trap.h> 31 30 #include <arch/regwin.h> 32 31 33 32 .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 34 44 35 45 .macro get_wim_number reg … … 208 218 .endm 209 219 210 FUNCTION_BEGIN(write_to_invalid) 220 write_to_invalid: 211 221 ! Write value 1 212 222 mov %o0, %g7 … … 226 236 retl 227 237 nop 228 FUNCTION_END(write_to_invalid) 229 230 FUNCTION_BEGIN(read_from_invalid) 238 239 read_from_invalid: 231 240 ! Read value 1 232 241 mov %o0, %g7 … … 246 255 retl 247 256 nop 248 FUNCTION_END(read_from_invalid) 249 250 SYMBOL(reset_trap) 257 258 reset_trap: 251 259 set 0x80000100, %l0 252 260 set 'r', %l1 … … 254 262 rett 255 263 256 SYMBOL(window_overflow_trap) 264 window_overflow_trap: 257 265 mov %g7, %l0 258 266 … … 385 393 rett %l2 386 394 387 SYMBOL(window_underflow_trap) 395 window_underflow_trap: 388 396 mov %g7, %l0 389 397 … … 471 479 rett %l2 472 480 473 FUNCTION_BEGIN(flush_windows) 481 flush_windows: 474 482 mov 7, %g1 475 483 1: … … 486 494 retl 487 495 nop 488 FUNCTION_END(flush_windows) 489 490 SYMBOL(preemptible_trap) 496 497 preemptible_trap: 491 498 /* Save %g7 */ 492 499 mov %g7, %l0 … … 663 670 rett %l2 664 671 665 SYMBOL(interrupt_trap) 672 interrupt_trap: 666 673 /* Save %g7 */ 667 674 mov %g7, %l0 … … 837 844 rett %l2 838 845 839 SYMBOL(syscall_trap) 846 syscall_trap: 840 847 /* Save %g7 */ 841 848 mov %g7, %l0 … … 1044 1051 1045 1052 .align TRAP_TABLE_SIZE 1046 SYMBOL(trap_table) 1053 trap_table: 1047 1054 STRAP(0x0, reset_trap) 1048 1055 TRAP(0x1, instruction_access_exception)
Note:
See TracChangeset
for help on using the changeset viewer.