/darwin-on-arm/xnu/osfmk/conf/ |
H A D | Makefile.x86_64 | 14 hibernate_restore.o_CFLAGS_ADD += -fno-stack-protector 15 hibernate_bootstrap.o_CFLAGS_ADD += -fno-stack-protector
|
H A D | Makefile.i386 | 13 hibernate_restore.o_CFLAGS_ADD += -fno-stack-protector
|
/darwin-on-arm/xnu/bsd/dev/i386/ |
H A D | sdt_x86.c | 52 sdt_invop(uintptr_t addr, uintptr_t *stack, uintptr_t eax) argument 66 if (stack <= stacktop) 67 stack0 = *stack++; 68 if (stack <= stacktop) 69 stack1 = *stack++; 70 if (stack <= stacktop) 71 stack2 = *stack++; 72 if (stack <= stacktop) 73 stack3 = *stack++; 74 if (stack < 88 sdt_invop(uintptr_t addr, uintptr_t *stack, uintptr_t eax) argument 122 uintptr_t *stack; local [all...] |
H A D | dtrace_isa.c | 270 uintptr_t oldcontext = lwp->lwp_oldcontext; /* XXX signal stack crawl */ 278 #if 0 /* XXX signal stack crawl */ 300 #if 0 /* XXX signal stack crawl */ 350 * The return value indicates if we've modified the stack. 367 * add the current pc as a missing top of stack, 369 * current stack pointer address since the call 382 * We might have a top of stack override, in which case we just 395 * If the missing top of stack has been filled out, then 403 * stack whether or not it was passed in. This 404 * ensures the stack coun 745 uintptr_t *stack; local [all...] |
H A D | fbt_x86.c | 498 fbt_invop(uintptr_t addr, uintptr_t *stack, uintptr_t rval) argument 513 stack += 1; /* skip over the target's pushl'd %ebp */ 515 if (stack <= stacktop) 516 CPU->cpu_dtrace_caller = *stack++; 517 if (stack <= stacktop) 518 stack0 = *stack++; 519 if (stack <= stacktop) 520 stack1 = *stack++; 521 if (stack <= stacktop) 522 stack2 = *stack [all...] |
H A D | fasttrap_isa.c | 239 user_addr_t stack; local 248 stack = regs64->isf.rsp + sizeof(uint64_t) * (argno - 6 + shift); 250 value = dtrace_fuword64(stack); 253 uint32_t *stack = (uint32_t *)(uintptr_t)(regs32->uesp); local 255 value = dtrace_fuword32((user_addr_t)(unsigned long)&stack[argno + shift]); 733 * Provide a hint to the stack trace functions to add the 734 * following pc to the top of the stack since it's missing 787 user_addr_t stack = (user_addr_t)regs64->isf.rsp; local 796 fasttrap_fuword64_noerr(stack + (x * sizeof(uint64_t)), &argv[i]); 810 uint32_t *stack local 1037 uint32_t *stack = (uint32_t *)(uintptr_t)(regs32->uesp); local [all...] |
/darwin-on-arm/xnu/iokit/conf/ |
H A D | Makefile.i386 | 11 IOHibernateRestoreKernel.o_CFLAGS_ADD += -fno-stack-protector
|
H A D | Makefile.x86_64 | 11 IOHibernateRestoreKernel.o_CFLAGS_ADD += -fno-stack-protector
|
/darwin-on-arm/xnu/osfmk/kern/ |
H A D | stack.c | 29 * Kernel stack management routines. 74 static unsigned int stack_new_count; /* total new stack allocations */ 132 * The next field is at the base of the stack, 135 #define stack_next(stack) \ 136 (*((vm_offset_t *)((stack) + kernel_stack_size) - 1)) 170 panic("stack_init: stack size %p not a multiple of page size %d\n", 180 * Allocate a stack for a thread, may 187 vm_offset_t stack; local 194 stack = stack_free_list; 195 if (stack ! 261 vm_offset_t stack = machine_stack_detach(thread); local 281 stack_free_stack( vm_offset_t stack) argument 321 vm_offset_t stack; local 365 vm_offset_t stack; local [all...] |
/darwin-on-arm/xnu/osfmk/arm/ |
H A D | pcb.c | 71 wait_result_t wresult, vm_offset_t stack); 214 vm_offset_t stack; local 227 stack = machine_stack_detach(old); 228 new->kernel_stack = stack; 230 uint32_t *kstack = (uint32_t *) STACK_IKS(stack); 236 if (stack == old->reserved_stack) { 239 new->reserved_stack = stack; 244 * because old stack is already initialized. 284 * Attach a stack to a thread and populate its members. 286 void machine_stack_attach(thread_t thread, vm_offset_t stack) argument 311 vm_offset_t stack; local [all...] |
H A D | thread.h | 51 * Kernel stack stuff. 55 #define STACK_IKS(stack) \ 56 ((vm_offset_t)(((vm_offset_t)stack)+KERNEL_STACK_SIZE)-FP_SIZE)
|
/darwin-on-arm/xnu/osfmk/arm64/ |
H A D | thread_initialize.c | 195 vm_offset_t stack; local 208 stack = machine_stack_detach(old); 209 new->kernel_stack = stack; 211 uint64_t *kstack = (uint64_t*)STACK_IKS(stack); 217 if (stack == old->reserved_stack) { 220 new->reserved_stack = stack; 225 * because old stack is already initialized. 265 * Attach a stack to a thread and populate its members. 267 void machine_stack_attach(thread_t thread, vm_offset_t stack) argument 269 assert(stack ! 297 vm_offset_t stack; local [all...] |
/darwin-on-arm/xnu/tools/ |
H A D | cred_dump_backtraces.c | 25 uint32_t stack[ MAX_STACK_DEPTH ]; member in struct:cred_backtrace 73 printf("%p ", btp->stack[ j ]);
|
/darwin-on-arm/xnu/bsd/dev/dtrace/ |
H A D | dtrace_subr.c | 107 dtrace_invop(uintptr_t addr, uintptr_t *stack, uintptr_t eax) argument 113 if ((rval = hdlr->dtih_func(addr, stack, eax)) != 0)
|
H A D | systrace.c | 1127 syscall_arg_t *stack = (syscall_arg_t *)NULL; local 1132 stack = (syscall_arg_t *)uthread->t_dtrace_syscall_args; 1134 if (!stack) 1139 val = (uint64_t)*(stack+argno); 1150 syscall_arg_t *stack = (syscall_arg_t *)NULL; local 1155 stack = (syscall_arg_t *)uthread->t_dtrace_syscall_args; 1157 if (!stack) 1162 val = (uint64_t)*(stack+argno);
|
/darwin-on-arm/xnu/osfmk/i386/ |
H A D | thread.h | 89 * as saved in a context-switch. It lives at the base of the stack. 186 * On the kernel stack is: 187 * stack: ... 189 * stack+kernel_stack_size 192 #define STACK_IKS(stack) \ 193 ((struct x86_kernel_state *)((stack) + kernel_stack_size) - 1) 196 * Return the current stack depth including x86_kernel_state
|
H A D | _setjmp.s | 66 * by restoring registers from the stack, 80 movl %esp,16(%ecx) # save stack pointer of caller
|
H A D | tss.h | 70 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 D | pcb.c | 489 * Monitor the stack depth and report new max, 848 * Code and stack selectors have already been 885 /* Check pc and stack are canonical addresses */ 919 * Code and stack selectors have already been 1842 vm_offset_t stack = thr_act->kernel_stack; local 1845 (long)stack, STACK_IKS(stack)->k_eip, STACK_IKS(stack)->k_ebx, 1846 STACK_IKS(stack)->k_esp, thr_act->machine.iss); 1876 * detach and return a kernel stack fro 1882 vm_offset_t stack; local 1900 machine_stack_attach( thread_t thread, vm_offset_t stack) argument 1935 vm_offset_t stack; local [all...] |
H A D | mp_desc.c | 160 * The i386 needs an interrupt stack to keep the PCB stack from being 162 * than any thread`s kernel stack. 166 * First cpu`s interrupt stack. 219 * separate since each processor needs its own kernel stack, 455 * Note that the sysenter stack uses empty space above the ktss 478 * Also, a transient stack for the fast sysenter path. The top of 575 * Set the double-fault stack as IST1 in the 64-bit TSS 629 /* Set (zeroed) double-fault stack as IST1 */ 643 /* Require that the top of the sysenter stack i 1079 vm_offset_t stack; local [all...] |
/darwin-on-arm/xnu/iokit/Kernel/ |
H A D | IODeviceTreeSupport.cpp | 94 OSArray * stack; local 152 stack = OSArray::withObjects( (const OSObject **) &parent, 1, 10 ); 156 parent = (IORegistryEntry *)stack->getObject( stack->getCount() - 1); 158 stack->removeObject( stack->getCount() - 1); 168 stack->setObject( parent); 175 } while( stack->getCount() 178 stack->release();
|
H A D | IORegistryEntry.cpp | 886 OSArray * stack; local 926 stack = OSArray::withCapacity( getDepth( plane )); 927 if( !stack) 935 stack->setObject( (OSObject *) entry ); 940 index = stack->getCount(); 951 entry = (IORegistryEntry *) stack->getObject((unsigned int) index ); 981 stack->release();
|
/darwin-on-arm/xnu/iokit/bsddev/ |
H A D | IOKitBSDInit.cpp | 221 IOService * stack; local 230 stack = IOService::waitForService( 232 if ( stack == 0 ) break; 253 stack->setProperties( dict );
|
/darwin-on-arm/xnu/libkern/kmod/ |
H A D | Makefile.kmod | 21 # -fno-stack-protector is necessary for the kernel, but not for kexts 22 CFLAGS_KMOD = $(filter-out -O0 -O1 -O2 -O3 -O4 -Os -Oz -freorder-blocks -flto -fno-stack-protector,$(CFLAGS)) \
|
/darwin-on-arm/xnu/bsd/kern/ |
H A D | kern_exec.c | 317 * first argument to execve() stored on the user stack. 382 * state so that the interpreter can be saved onto the stack. 945 /* Set the stack */ 953 /* Adjust the stack */ 1715 * Allocate a big chunk for locals instead of using stack since these 2244 * TODO: Dynamic linker header address on stack is copied via suword() 2286 * TODO: Dynamic linker header address on stack is copied via suword() 2303 /* Allocate a big chunk for locals instead of using stack since these 2452 * on a preinitialized stack frame. 2455 * int * a pointer to the stack offse 2534 user_addr_t stack; local [all...] |