Lines Matching refs:to

4  * The contents of this file are subject to the terms of the
23 * Use is subject to license terms.
60 ! REGOFF must add up to allow double word access to r_tstate.
71 * to act as a redzone during copyin/copyout type operations. One of
72 * the reasons the panic buffer is allocated in low memory to
74 * the fact that it is small enough to share pages with others).
156 * When an assertion in TRACE_PTR was failed, %pc is saved in trap_freeze_pc to
207 * directly from physical memory, so we need to get up into our proper
244 ! call krtld to link the world together
257 ! Stuff some memory cells related to numbers of windows.
271 ! save a pointer to obp's tba for later use by kmdb
278 ! copy obp's breakpoint trap entry to obp_bpt
318 sll %g2, CPTRSHIFT, %g2 ! convert cpuid to cpu[] offset
327 ! We do NOT need to bzero our BSS...boot has already done it for us.
328 ! Just need to reference edata so that we don't break /dev/ksyms
407 ! force tl=1, update %cwp, branch to correct handler
441 ! set pcontext to run kernel
459 set utl0, %g6 ! bounce to utl0
466 ! and %g6 is the label we want done to bounce to
498 nop ! yes, nop; to avoid anull
512 ! set trap regs to execute in kernel at %g6
527 ! prom trap switches the stack to 32-bit
542 ! is the trap PC in the range allocated to Open Firmware?
571 ! trap level to MAXTL-1 so that ptl1_panic() prints
608 ! call trap to do ast processing
619 ! call restore_wbuf to push wbuf windows to stack
638 ! switch to alternate globals, saving THREAD_REG in %l6
651 ! switch "other" windows back to "normal" windows.
654 add %l3, WSTATE_CLEAN_OFFSET, %l3 ! convert to "clean" wstate
658 ! set pcontext to scontext for user execution
673 ! PCONTEXT is set to run user code. If a trap happens in this
674 ! window, and the trap needs to be handled at TL=0, the handler
675 ! must make sure to set PCONTEXT to run kernel. A convenience
676 ! macro, RESET_USER_RTT_REGS(scr1, scr2, label) is available to
696 ! Restore to window we originally trapped in.
697 ! First attempt to restore from the watchpoint saved register window
715 ! Attempt to restore from the scond watchpoint saved register window
732 ! set %cleanwin to %canrestore
733 ! set %tstate to the correct %cwp
789 ! Attempt to preempt
806 ! must reset the PC and nPC back to the beginning to prevent missed
823 ! the PC and nPC back to the beginning to prevent missed wakeups.
843 ! switch to alternate globals
857 ! restore to window we originally trapped in
868 ! set %tstate to the correct %cwp
906 * really want to panic, but need the rearrangement of
932 * used to turn on/off the led.
986 * Flush all windows to memory, except for the one we entered in.
1039 * flush user windows to memory.
1060 sub %g2, 1, %g2 ! restore back to orig window
1072 * Used by setregs (exec) to clean out old user.
1073 * Used by sigcleanup to remove extraneous windows when returning from a
1093 ! Also, this sets up a nice underflow when first returning to the
1133 * These need to be defined somewhere to lint and there is no "hicore.s"...
1180 * and the trap level is greater than 0. ptl1_panic is responsible to save the
1181 * current CPU state, to restore the CPU state to normal, and to call panic.
1184 * In order to access the ptl1_state structure without causing traps, physical
1190 * ptl1_panic is a likely spot for stack overflows to wind up; thus, the current
1191 * stack may not be usable. In order to call panic reliably in such a state,
1193 * CPU_ALLOC_SIZE, which is defined to be MMU_PAGESIZE, is used to allocate the
1200 * %g1 reason to be called
1244 ! CPU state saving is skipped from the 2nd entry to ptl1_panic since we
1245 ! do not want to clobber the state from the original failure. panic()
1288 ! Pending interrupts is also cleared in order to avoid a recursive call
1289 ! to ptl1_panic in case the interrupt handler causes a panic.
1356 ! Proceed to go back to TL = 0.
1367 ! Set pcontext to run kernel.
1370 ! context register. This is to avoid changing nucleus page
1398 done ! go to -->-+ TL:1
1404 ! prepare to call panic()
1426 * ptl1_recurse() calls itself a number of times to either set up a known
1427 * stack or to cause a kernel stack overflow. It decrements the arguments
1429 * It's called by #ifdef PTL1_PANIC_DEBUG code in startup.c to set the
1430 * registers to a known state to facilitate debugging.
1449 * Initialize Out Registers to Known Values
1486 nop ! trap to ptl1_panic
1500 ta PTL1_DEBUG_TRAP; ! Trap Always to ptl1_panic()
1515 * Asm function to handle a cross trap to call ptl1_panic()
1538 ! freeze the trap trace to disable the assertions. Otherwise,
1539 ! ptl1_panic is likely to be repeatedly called from there.
1562 * set_kcontextreg() sets PCONTEXT to kctx
1609 ! switch to PCONTEXT=0
1643 ! switch to PCONTEXT=kcontexreg