Searched refs:stack (Results 1 - 25 of 40) sorted by relevance

12

/macosx-10.5.8/xnu-1228.15.4/bsd/dev/i386/
H A Dsdt_x86.c51 sdt_invop(uintptr_t addr, uintptr_t *stack, uintptr_t eax) argument
65 if (stack <= stacktop)
66 stack0 = *stack++;
67 if (stack <= stacktop)
68 stack1 = *stack++;
69 if (stack <= stacktop)
70 stack2 = *stack++;
71 if (stack <= stacktop)
72 stack3 = *stack++;
73 if (stack <
[all...]
H A Dfbt_x86.c242 fbt_invop(uintptr_t addr, uintptr_t *stack, uintptr_t rval) argument
257 stack += 1; /* skip over the target's pushl'd %ebp */
259 if (stack <= stacktop)
260 CPU->cpu_dtrace_caller = *stack++;
261 if (stack <= stacktop)
262 stack0 = *stack++;
263 if (stack <= stacktop)
264 stack1 = *stack++;
265 if (stack <= stacktop)
266 stack2 = *stack
[all...]
H A Ddtrace_isa.c179 uintptr_t oldcontext = lwp->lwp_oldcontext; /* XXX signal stack crawl */
187 #if 0 /* XXX signal stack crawl */
209 #if 0 /* XXX signal stack crawl */
275 * If there's no user context we still need to zero the stack.
401 * If there's no user context we still need to zero the stack.
419 #if 0 /* XXX signal stack crawl */
454 #if 0 /* XXX signal stack crawl */
535 * Hop from interrupt stack to thread stack.
589 uintptr_t *stack; local
[all...]
H A Dfasttrap_isa.c236 user_addr_t stack; local
245 stack = regs64->isf.rsp + sizeof(uint64_t) * (argno - 6 + shift);
247 value = dtrace_fuword64(stack);
250 uint32_t *stack = (uint32_t *)regs32->uesp; local
252 value = dtrace_fuword32((user_addr_t)(unsigned long)&stack[argno + shift]);
766 user_addr_t stack = (user_addr_t)regs64->isf.rsp; local
775 fasttrap_fuword64_noerr(stack + (x * sizeof(uint64_t)), &argv[i]);
789 uint32_t *stack = (uint32_t *)regs32->uesp; local
794 fasttrap_fuword32_noerr((user_addr_t)(unsigned long)&stack[x], &argv[i]);
1016 uint32_t *stack local
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/
H A Dstack.c29 * Kernel stack management routines.
70 static unsigned int stack_new_count; /* total new stack allocations */
75 * The next field is at the base of the stack,
78 #define stack_next(stack) \
79 (*((vm_offset_t *)((stack) + KERNEL_STACK_SIZE) - 1))
87 panic("stack_init: stack size %d not a multiple of page size %d\n", KERNEL_STACK_SIZE, PAGE_SIZE);
95 * Allocate a stack for a thread, may
102 vm_offset_t stack; local
110 stack = stack_free_list;
111 if (stack !
160 vm_offset_t stack = machine_stack_detach(thread); local
168 stack_free_stack( vm_offset_t stack) argument
208 vm_offset_t stack; local
250 vm_offset_t stack; local
[all...]
H A Dthread.h168 vm_offset_t kernel_stack; /* current kernel stack */
169 vm_offset_t reserved_stack; /* reserved kernel stack */
437 vm_offset_t stack);
489 vm_offset_t stack);
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/
H A Dthread.h88 * It is also pushed onto the stack for exceptions in the kernel.
113 * as saved in a context-switch. It lives at the base of the stack.
202 * This structure lives at the high end of the kernel stack.
211 * On the kernel stack is:
212 * stack: ...
215 * stack+KERNEL_STACK_SIZE
218 #define STACK_IKS(stack) \
219 ((struct x86_kernel_state32 *)((stack) + KERNEL_STACK_SIZE) - 1)
220 #define STACK_IEL(stack) \
221 ((struct i386_exception_link *)STACK_IKS(stack)
[all...]
H A D_setjmp.s66 * by restoring registers from the stack,
80 movl %esp,16(%ecx) # save stack pointer of caller
H A Dtss.h70 uint32_t esp0; /* initial stack pointer ... */
72 uint32_t esp1; /* initial stack pointer ... */
74 uint32_t esp2; /* initial stack pointer ... */
84 uint32_t esp; /* current stack pointer */
90 uint32_t ss; /* current stack segment */
102 * Temporary stack used on kernel entry via the sysenter instruction.
104 * a single interrupt stack frame in case of single-stepping over the sysenter.
105 * Although this is defined as a 64-bit stack, the space is also used in
106 * 32-bit legacy mode. For 64-bit the stack is 16-byte aligned.
109 uint64_t stack[1 member in struct:sysenter_stack
[all...]
H A Dpcb.c442 * Save a pointer to the top of the "kernel" stack -
461 * For fast syscall, top of interrupt stack points to pcb stack
483 * Set pointer to PCB's interrupt stack frame in cpu data.
491 /* Interrupt stack is pcb */
495 * Top of temporary sysenter stack points to pcb stack.
522 * Set pointer to PCB's interrupt stack frame in cpu data.
528 /* Top of temporary sysenter stack points to pcb stack */
1967 vm_offset_t stack = thr_act->kernel_stack; local
2009 vm_offset_t stack; local
2027 machine_stack_attach( thread_t thread, vm_offset_t stack) argument
2056 vm_offset_t stack; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/
H A Dmisc_asm.s55 * General entry for all debuggers. This gets us onto the debug stack and
71 stw r0,FM_LR_SAVE(r1) ; Save return on current stack
73 lwz r9,PP_DEBSTACKPTR(r8) ; Get the debug stack
77 mr r9,r1 ; We are already on the stack, so use the current value
81 stw r1,FM_ARG0(r9) ; Save the old stack pointer as if it were the first arg
83 stw r0,PP_DEBSTACKPTR(r8) ; Mark debug stack as busy
93 addi r1,r1,FM_SIZE ; Pop off first stack frame
100 lwz r9,PP_DEBSTACK_TOP_SS(r8) ; Get the top of the stack
101 cmplw r1,r9 ; Have we hit the bottom of the debug stack?
102 lwz r1,FM_ARG0(r1) ; Get previous stack fram
[all...]
H A Dpcb.c242 * at the base of the kernel stack (see stack_attach()).
356 * context be pushed on the stack.
492 * detach and return a kernel stack from a thread
499 vm_offset_t stack; local
507 stack = thread->kernel_stack;
509 return(stack);
513 * attach a kernel stack to a thread and initialize it
515 * attaches a stack to a thread. if there is no save
518 * stack pointer, and a std kernel MSR. if the top
527 vm_offset_t stack)
525 machine_stack_attach( thread_t thread, vm_offset_t stack) argument
570 vm_offset_t stack; local
[all...]
H A Dlocks.h105 vm_offset_t stack[LCK_FRAMES_MAX]; member in struct:__anon941
173 vm_offset_t stack[LCK_FRAMES_MAX]; member in struct:__anon948
H A Dmcount.s50 stw r0,8(r1) ; Save lr on the stack
51 stwu r1,-64(r1) ; Get a stack frame
H A Dthread.h201 #define STACK_IKS(stack) \
202 ((vm_offset_t)(((vm_offset_t)stack)+KERNEL_STACK_SIZE)-FM_SIZE)
H A Dhw_exception.s73 * If pcb.ksp == 0 then the kernel stack is already busy,
74 * we make a stack frame
77 * its stack pointer.
79 * otherwise we make a stack frame and
80 * the kernel stack (setting pcb.ksp to 0)
83 * and pcb.ksp is set to the top of stack
86 /* TRAP_SPACE_NEEDED is the space assumed free on the kernel stack when
90 * may be much more). We're trying to catch kernel stack overflows :-)
104 lwz r1,PP_ISTACKPTR(r25) ; Get interrupt stack pointer
106 cmpwi cr0,r1,0 ; Are we on interrupt stack
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/ppc/
H A Dsdt_ppc.c51 sdt_invop(uintptr_t addr, uintptr_t *stack, uintptr_t eax) argument
60 ppc_saved_state_t *regs = (ppc_saved_state_t *)stack;
H A Dfbt_ppc.c210 fbt_invop(uintptr_t addr, uintptr_t *stack, uintptr_t rval) argument
219 ppc_saved_state_t *regs = (ppc_saved_state_t *)stack;
232 ppc_saved_state_t *regs = (ppc_saved_state_t *)stack;
463 * Probes encountered while we're on the interrupt stack are routed along
472 * Avoid weird stack voodoo in and under machine_stack_handoff et al
475 0 == strcmp(name, "getPerProc") || /* Called in machine_stack_handoff with weird stack state */
476 0 == strcmp(name, "fpu_save") || /* Called in machine_stack_handoff with weird stack state */
477 0 == strcmp(name, "vec_save") || /* Called in machine_stack_handoff with weird stack state */
478 0 == strcmp(name, "pmap_switch")) /* Called in machine_stack_handoff with weird stack state */
/macosx-10.5.8/xnu-1228.15.4/tools/
H A Dcred_dump_backtraces.c25 uint32_t stack[ MAX_STACK_DEPTH ]; member in struct:cred_backtrace
73 printf("%p ", btp->stack[ j ]);
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/dtrace/
H A Ddtrace_subr.c106 dtrace_invop(uintptr_t addr, uintptr_t *stack, uintptr_t eax) argument
112 if ((rval = hdlr->dtih_func(addr, stack, eax)) != 0)
/macosx-10.5.8/xnu-1228.15.4/libsa/i386/
H A Dsetjmp.s66 * by restoring registers from the stack,
83 movl %esp,16(%ecx) # save stack pointer of caller
/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/
H A DIODeviceTreeSupport.cpp92 OSArray * stack; local
151 stack = OSArray::withObjects( (const OSObject **) &parent, 1, 10 );
155 parent = (IORegistryEntry *)stack->getObject( stack->getCount() - 1);
157 stack->removeObject( stack->getCount() - 1);
167 stack->setObject( parent);
174 } while( stack->getCount()
177 stack->release();
H A DIOLib.cpp676 SInt32 stack; local
678 stack = (((SInt32) &stack) & (KERNEL_STACK_SIZE - 1));
680 return( stack );
H A DIORegistryEntry.cpp845 OSArray * stack; local
885 stack = OSArray::withCapacity( getDepth( plane ));
886 if( !stack)
894 stack->setObject( (OSObject *) entry );
899 index = stack->getCount();
910 entry = (IORegistryEntry *) stack->getObject((unsigned int) index );
940 stack->release();
/macosx-10.5.8/xnu-1228.15.4/iokit/bsddev/
H A DIOKitBSDInit.cpp229 IOService * stack; local
238 stack = IOService::waitForService(
240 if ( stack == 0 ) break;
261 stack->setProperties( dict );

Completed in 186 milliseconds

12