Home
last modified time | relevance | path

Searched refs:stack (Results 1 – 25 of 216) sorted by relevance

123456789

/linux-2.4.37.9/arch/cris/kernel/
Dtraps.c32 void show_trace(unsigned long * stack) in show_trace() argument
44 while (((long) stack & (THREAD_SIZE-1)) != 0) { in show_trace()
45 if (__get_user (addr, stack)) { in show_trace()
49 printk ("Failing address 0x%lx\n", (unsigned long)stack); in show_trace()
52 stack++; in show_trace()
99 unsigned long *stack, addr; in show_stack() local
110 stack = sp; in show_stack()
112 printk("\nStack from %08lx:\n ", (unsigned long)stack); in show_stack()
114 if (((long) stack & (THREAD_SIZE-1)) == 0) in show_stack()
118 if (__get_user (addr, stack)) { in show_stack()
[all …]
/linux-2.4.37.9/arch/x86_64/kernel/
Dtraps.c152 unsigned long *in_exception_stack(int cpu, unsigned long stack) in in_exception_stack() argument
158 if (stack >= init_tss[cpu].ist[k] && stack <= end) in in_exception_stack()
164 void show_trace(unsigned long *stack) in show_trace() argument
174 estack_end = in_exception_stack(cpu, (unsigned long)stack); in show_trace()
176 while (stack < estack_end) { in show_trace()
177 addr = *stack++; in show_trace()
189 stack = (unsigned long *) estack_end[-2]; in show_trace()
196 if (stack >= irqstack && stack < irqstack_end) { in show_trace()
197 while (stack < irqstack_end) { in show_trace()
198 addr = *stack++; in show_trace()
[all …]
Dptrace.c52 unsigned char *stack; in get_stack_long() local
54 stack = (unsigned char *)task->thread.rsp0; in get_stack_long()
55 stack += offset; in get_stack_long()
56 return (*((unsigned long *)stack)); in get_stack_long()
68 unsigned char * stack; in put_stack_long() local
70 stack = (unsigned char *) task->thread.rsp0; in put_stack_long()
71 stack += offset; in put_stack_long()
72 *(unsigned long *) stack = data; in put_stack_long()
/linux-2.4.37.9/fs/jfs/
Djfs_btree.h121 struct btframe stack[MAXTREEHEIGHT]; member
125 (btstack)->top = (btstack)->stack
128 ( (btstack)->top == &((btstack)->stack[MAXTREEHEIGHT-1]))
139 ( (btstack)->top == (btstack)->stack ? NULL : --(btstack)->top )
142 ( (btstack)->top == (btstack)->stack ? NULL : (btstack)->top )
150 (long long)btstack->stack[i].bn, in BT_STACK_DUMP()
151 btstack->stack[i].index); in BT_STACK_DUMP()
/linux-2.4.37.9/arch/s390x/kernel/
Dentry.S64 jz 1f # skip stack setup save
66 jnz 0f # from user -> load kernel stack
67 lg %r14,__LC_ASYNC_STACK # are we already on the async. stack ?
71 lg %r15,__LC_ASYNC_STACK # load async. stack
78 nill %r15,0xfff8 # align stack pointer to 8
79 stmg %r0,%r14,SP_R0(%r15) # store gprs 0-14 to kernel stack
81 mvc SP_R14(16,%r15),__LC_SAVE_AREA # move R15 to stack
84 mvc SP_PSW(16,%r15),\psworg # move user PSW to stack
Dtraps.c112 void show_trace(unsigned long * stack) in show_trace() argument
117 if (!stack) in show_trace()
118 stack = (unsigned long*)&stack; in show_trace()
121 low_addr = ((unsigned long) stack) & PSW_ADDR_MASK; in show_trace()
154 unsigned long *stack; in show_stack() local
163 stack = sp; in show_stack()
165 if (((addr_t) stack & (THREAD_SIZE-1)) == 0) in show_stack()
169 printk("%016lx ", *stack++); in show_stack()
/linux-2.4.37.9/arch/s390/kernel/
Dentry.S77 bz BASED(1f) # skip stack setup save
79 bnz BASED(0f) # from user -> load kernel stack
80 l %r14,__LC_ASYNC_STACK # are we already on the async stack ?
84 l %r15,__LC_ASYNC_STACK # load async. stack
91 n %r15,BASED(.Lc0xfffffff8) # align stack pointer to 8
92 stm %r0,%r12,SP_R0(%r15) # store gprs 0-12 to kernel stack
94 mvc SP_R13(12,%r15),__LC_SAVE_AREA # move R13-R15 to stack
97 mvc SP_PSW(8,%r15),\psworg # move user PSW to stack
/linux-2.4.37.9/include/asm-arm/proc-armv/
Dprocessor.h50 unsigned long *stack = (unsigned long *)sp; \
59 regs->ARM_r2 = stack[2]; /* r2 (envp) */ \
60 regs->ARM_r1 = stack[1]; /* r1 (argv) */ \
61 regs->ARM_r0 = stack[0]; /* r0 (argc) */ \
/linux-2.4.37.9/arch/m68k/ifpsp060/
Dilsp.doc86 subq.l &0x8,%sp # make room for result on stack
87 pea (%sp) # pass: result addr on stack
88 mov.l %d0,-(%sp) # pass: multiplicand on stack
89 mov.l _multiplier,-(%sp) # pass: multiplier on stack
91 add.l &0xc,%sp # clear arguments from stack
100 subq.l &0x8,%sp # make room for result on stack
101 pea (%sp) # pass: result addr on stack
102 mov.l %d0,-(%sp) # pass: dividend hi on stack
103 mov.l %d1,-(%sp) # pass: dividend hi on stack
104 mov.l _divisor,-(%sp) # pass: divisor on stack
[all …]
Dfskeleton.S72 | for enabled overflow conditions. The exception stack frame is an overflow
73 | stack frame. The FP state frame holds the EXCEPTIONAL OPERAND.
91 | for enabled underflow conditions. The exception stack frame is an underflow
92 | stack frame. The FP state frame holds the EXCEPTIONAL OPERAND.
109 | for enabled operand error exceptions. The exception stack frame is an operand error
110 | stack frame. The FP state frame holds the source operand of the faulting
128 | for enabled signalling NaN exceptions. The exception stack frame is a signalling NaN
129 | stack frame. The FP state frame holds the source operand of the faulting
147 | for enabled divide-by-zero exceptions. The exception stack frame is a divide-by-zero
148 | stack frame. The FP state frame holds the source operand of the faulting
[all …]
/linux-2.4.37.9/arch/sh64/kernel/
Dptrace.c50 unsigned char *stack; in get_stack_long() local
52 stack = (unsigned char *)(task->thread.kregs); in get_stack_long()
53 stack += offset; in get_stack_long()
54 return (*((int *)stack)); in get_stack_long()
91 unsigned char *stack; in put_stack_long() local
93 stack = (unsigned char *)(task->thread.kregs); in put_stack_long()
94 stack += offset; in put_stack_long()
95 *(unsigned long *) stack = data; in put_stack_long()
/linux-2.4.37.9/include/asm-arm/proc-armo/
Dprocessor.h64 unsigned long *stack = (unsigned long *)sp; \
69 regs->ARM_r2 = stack[2]; /* r2 (envp) */ \
70 regs->ARM_r1 = stack[1]; /* r1 (argv) */ \
71 regs->ARM_r0 = stack[0]; /* r0 (argc) */ \
/linux-2.4.37.9/arch/arm/lib/
Dbacktrace.S15 @ fp is 0 or stack frame
116 #define stack r6 macro
118 .Ldumpstm: stmfd sp!, {instr, reg, stack, r7, lr}
119 mov stack, r0
131 ldr r2, [stack], #-4
140 mov r0, stack
141 LOADREGS(fd, sp!, {instr, reg, stack, r7, pc})
/linux-2.4.37.9/arch/sh/kernel/
Dptrace.c40 unsigned char *stack; in get_stack_long() local
42 stack = (unsigned char *)task + THREAD_SIZE - sizeof(struct pt_regs); in get_stack_long()
43 stack += offset; in get_stack_long()
44 return (*((int *)stack)); in get_stack_long()
53 unsigned char *stack; in put_stack_long() local
55 stack = (unsigned char *)task + THREAD_SIZE - sizeof(struct pt_regs); in put_stack_long()
56 stack += offset; in put_stack_long()
57 *(unsigned long *) stack = data; in put_stack_long()
Dtraps.c610 unsigned long *stack, addr; in show_task() local
627 stack = sp; in show_task()
631 while (((long)stack & (THREAD_SIZE - 1))) { in show_task()
632 if (__get_user(addr, stack)) { in show_task()
633 printk("Failing address 0x%lx\n", *stack); in show_task()
636 stack++; in show_task()
/linux-2.4.37.9/arch/i386/kernel/
Dptrace.c49 unsigned char *stack; in get_stack_long() local
51 stack = (unsigned char *)task->thread.esp0; in get_stack_long()
52 stack += offset; in get_stack_long()
53 return (*((int *)stack)); in get_stack_long()
65 unsigned char * stack; in put_stack_long() local
67 stack = (unsigned char *) task->thread.esp0; in put_stack_long()
68 stack += offset; in put_stack_long()
69 *(unsigned long *) stack = data; in put_stack_long()
Dtraps.c134 void show_trace(unsigned long * stack) in show_trace() argument
139 if (!stack) in show_trace()
140 stack = (unsigned long*)&stack; in show_trace()
144 while (((long) stack & (THREAD_SIZE-1)) != 0) { in show_trace()
145 addr = *stack++; in show_trace()
168 unsigned long *stack; in show_stack() local
177 stack = esp; in show_stack()
179 if (((long) stack & (THREAD_SIZE-1)) == 0) in show_stack()
183 printk("%08lx ", *stack++); in show_stack()
/linux-2.4.37.9/arch/arm/mach-sa1100/
Dsleep.S35 stmfd sp!, {r4 - r12, lr} @ save registers on stack
43 @ store them plus current virtual stack ptr on stack
47 @ preserve phys address of stack
180 ldr r0, sleep_save_sp @ stack phys addr
182 ldmfd r0, {r4 - r7, sp} @ CP regs + virt stack ptr
205 .word 0 @ preserve stack phys ptr here
/linux-2.4.37.9/fs/ntfs/
Ddir.c34 static inline int ntfs_is_top(ntfs_u64 stack) in ntfs_is_top() argument
36 return stack == 14; in ntfs_is_top()
39 static int ntfs_pop(ntfs_u64 *stack) in ntfs_pop() argument
44 switch (width[*stack & 15]) { in ntfs_pop()
46 res = (int)((*stack & 15) >> 1); in ntfs_pop()
47 *stack >>= 4; in ntfs_pop()
50 res = (int)(((*stack & 63) >> 2) + 7); in ntfs_pop()
51 *stack >>= 6; in ntfs_pop()
54 res = (int)(((*stack & 255) >> 3) + 23); in ntfs_pop()
55 *stack >>= 8; in ntfs_pop()
[all …]
/linux-2.4.37.9/arch/x86_64/ia32/
Dptrace32.c33 case offsetof(struct user32, regs.l): stack[offsetof(struct pt_regs, q)/8] = val; break
38 __u64 *stack = (__u64 *)(child->thread.rsp0 - sizeof(struct pt_regs)); in putreg32() local
58 stack[offsetof(struct pt_regs, ss)/8] = val & 0xffff; in putreg32()
62 stack[offsetof(struct pt_regs, cs)/8] = val & 0xffff; in putreg32()
77 __u64 *flags = &stack[offsetof(struct pt_regs, eflags)/8]; in putreg32()
117 case offsetof(struct user32, regs.l): *val = stack[offsetof(struct pt_regs, q)/8]; break
121 __u64 *stack = (__u64 *)(child->thread.rsp0 - sizeof(struct pt_regs)); in getreg32() local
/linux-2.4.37.9/Documentation/x86_64/
Dmm.txt4 o top of userspace stack located at address 0x0000007fffffffff
29 as the top of the userspace stack to allow the stack to grow as
47 Once the 512 Gigabytes limit will be removed the kernel stack will
91 fragmentation, and failing to allocate the kernel stack is a minor
101 The kernel stack will be at first allocated with an order 2 allocation
102 (16k) (the utilization of the stack for a 64bit platform really
112 recalculating the task_struct pointer starting from the stack
118 stack. task_struct can be a slab allocation or a
119 PAGE_SIZEd allocation, and the kernel stack can then be
127 per-irq stack that could allow us to remove the irq handler
[all …]
/linux-2.4.37.9/arch/parisc/kernel/
Dtraps.c94 void show_trace(unsigned long * stack) in show_trace() argument
100 startstack = (unsigned long *)((unsigned long)stack & ~(THREAD_SIZE - 1)); in show_trace()
103 while (stack >= startstack) { in show_trace()
104 addr = *stack--; in show_trace()
122 unsigned long *stack; in show_stack() local
132 stack = sp; in show_stack()
134 printk(KERN_CRIT " " RFMT ": ", (unsigned long) stack); in show_stack()
136 if (((long) stack & (THREAD_SIZE-1)) == 0) in show_stack()
140 (unsigned long) stack); in show_stack()
141 printk(RFMT " ", *stack--); in show_stack()
/linux-2.4.37.9/net/ipv4/
Dinetpeer.c159 stackptr = stack; \
191 static void peer_avl_rebalance(struct inet_peer **stack[], in peer_avl_rebalance() argument
197 while (stackend > stack) { in peer_avl_rebalance()
273 peer_avl_rebalance(stack, stackptr); \
290 struct inet_peer **stack[PEER_MAXDEPTH]; in unlink_from_pool() local
316 peer_avl_rebalance(stack, stackptr); in unlink_from_pool()
374 struct inet_peer **stack[PEER_MAXDEPTH], ***stackptr; in inet_getpeer() local
/linux-2.4.37.9/arch/alpha/kernel/
Dirq_smp.c36 unsigned long *stack; in show()
51 stack = (unsigned long *) &str; in show()
53 unsigned long x = *++stack; in show()
/linux-2.4.37.9/arch/ppc64/xmon/
Dxmon.c936 unsigned long stack[3]; in backtrace() local
957 sp = stack[0], framecount++) { in backtrace()
958 if (mread(sp, stack, sizeof(stack)) != sizeof(stack)) in backtrace()
962 stack[2] = lr; /* fake out the first saved lr. It may not be saved yet. */ in backtrace()
966 printf("%.16lx %.16lx", sp, stack[2]); in backtrace()
970 if ((stack[2] == (unsigned long)ret_from_except && in backtrace()
972 || (stack[2] == (unsigned long)ret_from_syscall_1 && in backtrace()
975 || stack[2] == (unsigned) &ret_from_syscall_2 in backtrace()
976 || stack[2] == (unsigned) &do_signal_ret in backtrace()
999 if (mread(sp, stack, sizeof(stack)) != sizeof(stack)) in backtrace()
[all …]

123456789