Lines Matching defs:delta
38 * (load or store) at offset @delta from either the base of the stack or the
42 int consume_stack(unsigned long target_sp, unsigned long stack_high, int delta, enum access_type type)
48 return consume_stack(target_sp, stack_high, delta, type);
59 target = stack_high - delta + 1;
114 int child(unsigned int stack_used, int delta, enum access_type type)
120 assert(consume_stack(stack_high - stack_used, stack_high, delta, type) == 0);
122 printf("Access OK: %s delta %-7d used size 0x%06x stack high 0x%lx top_ptr %p top sp 0x%lx actual used 0x%lx\n",
123 type == LOAD ? "load" : "store", delta, stack_used, stack_high,
129 static int test_one(unsigned int stack_used, int delta, enum access_type type)
136 exit(child(stack_used, delta, type));
146 printf("Faulted: %s delta %-7d used size 0x%06x signal %d\n",
147 type == LOAD ? "load" : "store", delta, stack_used,
154 // so that the delta between the stack pointer and the target is large.
159 unsigned long delta;
162 for (delta = page_size; delta <= rlim_cur; delta += page_size)
163 assert(test_one(DEFAULT_SIZE, delta, type) == 0);