Lines Matching +defs:stack +defs:limit
143 * limit: limit of the segment
150 setsegment(struct mem_segment_descriptor *sd, uint32_t base, size_t limit,
153 sd->sd_lolimit = (int)limit;
158 sd->sd_hilimit = (int)limit >> 16;
437 * Creates the boot stack page in the guest address space. When using a real
438 * bootloader, the stack will be prepared using the following format before
439 * transitioning to kernel start, so vmd(8) needs to mimic the same stack
440 * layout. The stack content is pushed to the guest phys RAM at address
441 * STACK_PAGE. The bootloader operates in 32 bit mode; each stack entry is
459 * size of the stack
464 uint32_t stack[1024];
467 memset(&stack, 0, sizeof(stack));
470 stack[--loc] = BOOTARGS_PAGE;
471 stack[--loc] = bootargsz;
472 stack[--loc] = 0; /* biosbasemem */
473 stack[--loc] = 0; /* biosextmem */
474 stack[--loc] = end;
475 stack[--loc] = 0x0e;
476 stack[--loc] = MAKEBOOTDEV(0x4, 0, 0, 0, 0); /* bootdev: sd0a */
477 stack[--loc] = 0;
479 write_mem(STACK_PAGE, &stack, PAGE_SIZE);