Searched refs:stack (Results 1 – 2 of 2) sorted by relevance
| /lib/uefi/ |
| A D | switch_stack.h | 26 size_t call_with_stack_asm(void *stack, const void *function, void *param1, 35 size_t call_with_stack(void *stack, Function &&fp, P1 &¶m1, P2 &¶m2, in call_with_stack() argument 38 stack, reinterpret_cast<const void *>(fp), in call_with_stack() 44 size_t call_with_stack(void *stack, Function &&fp, P1 &¶m1, P2 &¶m2, in call_with_stack() argument 46 return call_with_stack_asm(stack, reinterpret_cast<const void *>(fp), in call_with_stack() 54 size_t call_with_stack(void *stack, Function &&fp, P1 &¶m1, P2 &¶m2, in call_with_stack() argument 57 stack, reinterpret_cast<const void *>(fp), in call_with_stack() 63 size_t call_with_stack(void *stack, Function &&fp, P1 &¶m1, P2 &¶m2) { in call_with_stack() argument 64 return call_with_stack_asm(stack, reinterpret_cast<const void *>(fp), in call_with_stack() 71 size_t call_with_stack(void *stack, Function &&fp, P1 &¶m1) { in call_with_stack() argument [all …]
|
| A D | uefi.cpp | 151 auto stack = reinterpret_cast<char *>(alloc_page(kStackSize, 23)); in load_sections_and_execute() local 152 memset(stack, 0, kStackSize); in load_sections_and_execute() 154 free_pages(stack, kStackSize / PAGE_SIZE); in load_sections_and_execute() 155 stack = nullptr; in load_sections_and_execute() 157 printf("Calling kernel with stack [%p, %p]\n", stack, stack + kStackSize - 1); in load_sections_and_execute() 159 call_with_stack(stack + kStackSize, entry, image_base, &table)); in load_sections_and_execute()
|
Completed in 5 milliseconds