MOS Source Code
|
A stack that grows down. More...
Classes | |
struct | downwards_stack_t |
Macros | |
#define | stack_push_val(stack, val) |
#define | stack_pop_val(stack, val) |
Functions | |
MOSAPI void | stack_init (downwards_stack_t *stack, void *mem_region_bottom, size_t size) |
MOSAPI void | stack_deinit (downwards_stack_t *stack) |
MOSAPI void * | stack_grow (downwards_stack_t *stack, size_t size) |
MOSAPI void * | stack_push (downwards_stack_t *stack, const void *data, size_t size) |
MOSAPI void | stack_pop (downwards_stack_t *stack, size_t size, void *data) |
A stack that grows down.
#define stack_push_val | ( | stack, | |
val ) |
Definition at line 26 of file stack.h.
Referenced by elf_setup_main_thread(), and platform_jump_to_signal_handler().
#define stack_pop_val | ( | stack, | |
val ) |
Definition at line 35 of file stack.h.
Referenced by platform_restore_from_signal_handler().
MOSAPI void stack_init | ( | downwards_stack_t * | stack, |
void * | mem_region_bottom, | ||
size_t | size ) |
Definition at line 8 of file stack.c.
Referenced by __mos_test_wrapped_test_stack_init_deinit(), __mos_test_wrapped_test_stack_push_pop_stack(), process_do_execveat(), process_do_fork(), and thread_new().
MOSAPI void stack_deinit | ( | downwards_stack_t * | stack | ) |
Definition at line 17 of file stack.c.
Referenced by __mos_test_wrapped_test_stack_init_deinit(), and __mos_test_wrapped_test_stack_push_pop_stack().
MOSAPI void * stack_grow | ( | downwards_stack_t * | stack, |
size_t | size ) |
MOSAPI void * stack_push | ( | downwards_stack_t * | stack, |
const void * | data, | ||
size_t | size ) |
Definition at line 32 of file stack.c.
Referenced by __mos_test_wrapped_test_stack_push_pop_stack(), and elf_setup_main_thread().
MOSAPI void stack_pop | ( | downwards_stack_t * | stack, |
size_t | size, | ||
void * | data ) |
Definition at line 43 of file stack.c.
Referenced by __mos_test_wrapped_test_stack_push_pop_stack().