Changeset 6eabb6e6 in mainline for kernel/arch/sparc64/src/trap/trap_table.S
- Timestamp:
- 2006-09-13T13:16:30Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 34d9469e
- Parents:
- 9a5b556
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/trap/trap_table.S
r9a5b556 r6eabb6e6 83 83 PREEMPTIBLE_HANDLER privileged_opcode 84 84 85 /* TT = 0x20, TL = 0, fb_disabled handler */ 86 .org trap_table + TT_FP_DISABLED*ENTRY_SIZE 87 .global fb_disabled_tl0 88 fp_disabled_tl0: 89 PREEMPTIBLE_HANDLER fp_disabled 90 85 91 /* TT = 0x24, TL = 0, clean_window handler */ 86 92 .org trap_table + TT_CLEAN_WINDOW*ENTRY_SIZE 87 .global clean_window_ handler_tl088 clean_window_ handler_tl0:93 .global clean_window_tl0 94 clean_window_tl0: 89 95 CLEAN_WINDOW_HANDLER 90 96 … … 490 496 /* TT = 0x24, TL > 0, clean_window handler */ 491 497 .org trap_table + (TT_CLEAN_WINDOW+512)*ENTRY_SIZE 492 .global clean_window_ handler_tl1493 clean_window_ handler_tl1:498 .global clean_window_tl1 499 clean_window_tl1: 494 500 CLEAN_WINDOW_HANDLER 495 501 … … 689 695 690 696 wrpr %g0, 0, %tl 691 wrpr %g0, PSTATE_PRIV_BIT , %pstate697 wrpr %g0, PSTATE_PRIV_BIT | PSTATE_PEF_BIT, %pstate 692 698 SAVE_GLOBALS 693 699 … … 706 712 707 713 RESTORE_GLOBALS 714 rdpr %pstate, %l1 ! we must preserve the PEF bit 708 715 wrpr %g0, PSTATE_AG_BIT | PSTATE_PRIV_BIT, %pstate 709 716 wrpr %g0, 1, %tl … … 717 724 718 725 /* 726 * Copy PSTATE.PEF to the in-register copy of TSTATE. 727 */ 728 and %l1, PSTATE_PEF_BIT, %l1 729 sllx %l1, TSTATE_PSTATE_SHIFT, %l1 730 sethi %hi(TSTATE_PEF_BIT), %g4 731 andn %g1, %g4, %g1 732 or %g1, %l1, %g1 733 734 /* 719 735 * Restore TSTATE, TPC and TNPC from saved copies. 720 736 */ … … 722 738 wrpr %g2, 0, %tpc 723 739 wrpr %g3, 0, %tnpc 740 724 741 725 742 /*
Note:
See TracChangeset
for help on using the changeset viewer.