Home
last modified time | relevance | path

Searched refs:trap (Results 1 – 25 of 105) sorted by relevance

12345

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dfault.c97 if(trap && *trap) in sh_fault()
112 if(trap && *trap==0) in sh_fault()
115 if(!trap) in sh_fault()
173 if(trap) in sh_fault()
331 if(*trap) in sh_sigreset()
334 free(trap); in sh_sigreset()
349 if(trap=sh.st.trap[sig]) in sh_sigreset()
352 free(trap); in sh_sigreset()
377 free(trap); in sh_sigclear()
401 trap = shp->st.trap[SH_ERRTRAP]; in sh_chktrap()
[all …]
H A Dsubshell.c187 char *trap = shp->st.trapcom[0]; in sh_subfork() local
188 if(trap) in sh_subfork()
189 trap = strdup(trap); in sh_subfork()
201 if(trap) in sh_subfork()
202 free((void*)trap); in sh_subfork()
218 shp->st.trapcom[0] = trap; in sh_subfork()
579 shp->st.otrap = savst.trap; in sh_subshell()
637 char *trap=shp->st.trapcom[0]; in sh_subshell() local
640 sh_trap(trap,0); in sh_subshell()
641 free(trap); in sh_subshell()
H A Dxec.c829 if((trap=shp->st.trapcom[sig]) && *trap==0) in sh_coexec()
1257 if(trap=shp->st.trap[SH_DEBUGTRAP]) in sh_exec()
2336 if(trap=shp->st.trap[SH_DEBUGTRAP]) in sh_exec()
2501 if(trap=shp->st.trap[SH_DEBUGTRAP]) in sh_exec()
2539 if(trap=shp->st.trap[SH_DEBUGTRAP]) in sh_exec()
2859 if(trap=shp->st.trap[SH_DEBUGTRAP]) in sh_exec()
2870 if(trap) in sh_exec()
2893 if(trap) in sh_exec()
3474 if(trap) in sh_funscope()
3477 free(trap); in sh_funscope()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/pkgtrans/
H A Dmain.c55 static void trap(int signo);
97 func = signal(SIGINT, trap); in main()
100 (void) signal(SIGHUP, trap); in main()
101 (void) signal(SIGQUIT, trap); in main()
102 (void) signal(SIGTERM, trap); in main()
103 (void) signal(SIGPIPE, trap); in main()
104 (void) signal(SIGPWR, trap); in main()
129 trap(int signo) in trap() function
/illumos-gate/usr/src/uts/sun4v/ml/
H A Dwbuf.S54 ! a pagefault at the trap pc and a misaligned stack by generating
55 ! a user alignment trap.
60 ! g5 = mmu trap type, g6 = tag access reg (g5 != T_ALIGNMENT) or
80 set trap, %g1
86 ! but user_trap wants the trap %cwp
191 ! a user alignment trap.
216 set trap, %g1
222 ! but user_trap wants the trap %cwp
392 ! a user alignment trap.
405 set trap, %g1
[all …]
H A Dmach_locore.S131 .word HTRAP_TSIZE ! default hv trap buffer size
141 .word TRAP_TSIZE ! default trap buffer size
262 ! copy obp's breakpoint trap entry to obp_bpt
401 ! user trap
986 ! setup trap regs
998 nop ! no trap, use restore directly
1444 nop ! trap to ptl1_panic
1476 ! freeze the trap trace to disable the assertions. Otherwise,
H A Dtrap_table.S119 .global trap
122 set trap, %g1 ;\
153 .global trap
156 set trap, %g1 ;\
226 set trap, %g1 ;\
725 set trap, %g1 ;\
1388 set trap, %g1
1451 set trap, %g1
1587 set trap, %g1
1866 set trap, %g1
[all …]
/illumos-gate/usr/src/uts/sun4u/ml/
H A Dwbuf.S53 ! a pagefault at the trap pc and a misaligned stack by generating
54 ! a user alignment trap.
59 ! g5 = mmu trap type, g6 = tag access reg (g5 != T_ALIGNMENT) or
79 set trap, %g1
85 ! but user_trap wants the trap %cwp
188 ! a user alignment trap.
213 set trap, %g1
219 ! but user_trap wants the trap %cwp
330 ! a user alignment trap.
343 set trap, %g1
[all …]
H A Dmach_interrupt.S51 ! It could be a fast trap handler address (pc > KERNELBASE) at TL>0
100 ! Cross-trap request case
103 ! the arguments for the fast trap handler.
142 1: jmp %g5 ! call the fast trap handler
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dtrap.c105 char **trap = (shp->st.otrap?shp->st.otrap:shp->st.trap); in b_trap() local
114 if(arg=trap[sig]) in b_trap()
119 if(shp->st.trap[sig]) in b_trap()
120 free(shp->st.trap[sig]); in b_trap()
121 shp->st.trap[sig] = 0; in b_trap()
123 shp->st.trap[sig] = strdup(action); in b_trap()
126 if(shp->st.trap[sig]) in b_trap()
416 register char *trap,**trapcom; in sig_list() local
422 if(!(trap=trapcom[sig])) in sig_list()
426 sfprintf(sfstdout,trapfmt,sh_fmtq(trap),sname); in sig_list()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/pkgrm/
H A Dquit.c68 static void trap(int signo);
101 return (&trap); in quitGetTrapHandler()
302 trap(int signo) in trap() function
/illumos-gate/usr/src/cmd/svr4pkg/pkgadd/
H A Dquit.c75 static void trap(int signo);
108 return (&trap); in quitGetTrapHandler()
336 trap(int signo) in trap() function
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/
H A Dquit.c93 static void trap(int signo);
118 return (&trap); in quitGetTrapHandler()
307 trap(int signo) in trap() function
/illumos-gate/usr/src/cmd/troff/
H A Dn7.c96 trap = 0; in tbreak()
212 for (k = ls - 1; k > 0 && !trap; k--) in tbreak()
300 if (trap) in text()
329 if (!trap) in text()
352 if (trap) in nofill()
480 trap++;
537 trap = 0;
540 trap = control(mlist[j], 0);
547 trap = control(mlist[j], 0);
645 if (trap)
[all …]
/illumos-gate/usr/src/lib/libc/sparc/fp/
H A Dfpgetmask.S38 set 0x0f800000, %o4 ! mask of trap enable bits
42 srl %o0, 23, %o0 ! return trap enable value
H A Dfpsetmask.S47 set 0x0f800000, %o4 ! mask of trap enable bits
57 srl %o0, 23, %o0 ! return old trap enable value
/illumos-gate/usr/src/lib/libc/sparcv9/fp/
H A Dfpgetmask.S38 set 0x0f800000, %o4 ! mask of trap enable bits
42 srl %o0, 23, %o0 ! return trap enable value
H A Dfpsetmask.S47 set 0x0f800000, %o4 ! mask of trap enable bits
57 srl %o0, 23, %o0 ! return old trap enable value
/illumos-gate/usr/src/uts/i86pc/os/
H A Ddtrace_subr.c168 extern void trap(struct regs *, caddr_t, processorid_t); in dtrace_user_probe()
251 trap(rp, addr, cpuid); in dtrace_user_probe()
273 trap(rp, addr, cpuid); in dtrace_user_probe()
276 trap(rp, addr, cpuid); in dtrace_user_probe()
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Dquit.c83 static void trap(int signo);
115 return (&trap); in quitGetTrapHandler()
475 trap(int signo) in trap() function
/illumos-gate/usr/src/cmd/ast/libast/i386/FEATURE/
H A Dsignal154 "Trace trap",
155 "IOT trap",
156 "EMT trap",
/illumos-gate/usr/src/cmd/ast/libast/sparc/FEATURE/
H A Dsignal154 "Trace trap",
155 "IOT trap",
156 "EMT trap",
/illumos-gate/usr/src/cmd/ast/libast/sparcv9/FEATURE/
H A Dsignal154 "Trace trap",
155 "IOT trap",
156 "EMT trap",
/illumos-gate/usr/src/cmd/ast/libast/amd64/FEATURE/
H A Dsignal154 "Trace trap",
155 "IOT trap",
156 "EMT trap",
/illumos-gate/usr/src/uts/sun4u/cpu/
H A Dus3_cheetahplus_asm.S580 rdpr %tpc, %g2 ! VA that caused the IMMU trap
581 ldxa [MMU_TAG_ACCESS_EXT]%asi, %g3 ! read the trap VA page size
587 or %g4, %g3, %g3 ! 'or' in the trap context and
722 ldxa [MMU_SFAR]%asi, %g2 ! VA that caused the IMMU trap
723 ldxa [MMU_TAG_ACCESS_EXT]%asi, %g3 ! read the trap VA page sizes
727 set TAGREAD_CTX_MASK, %g5 ! 'or' in the trap context
773 rdpr %tl, %g6 ! read current trap level

12345