2017-08-19 08:46:04 +02:00
|
|
|
#ifndef __LWP_STACK_H__
|
|
|
|
#define __LWP_STACK_H__
|
|
|
|
|
|
|
|
#include <gctypes.h>
|
|
|
|
#include <lwp_threads.h>
|
|
|
|
|
|
|
|
#define CPU_STACK_ALIGNMENT 8
|
|
|
|
#define CPU_MINIMUM_STACK_SIZE 1024*8
|
|
|
|
#define CPU_MINIMUM_STACK_FRAME_SIZE 16
|
|
|
|
#define CPU_MODES_INTERRUPT_MASK 0x00000001 /* interrupt level in mode */
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
u32 __lwp_stack_allocate(lwp_cntrl *,u32);
|
|
|
|
void __lwp_stack_free(lwp_cntrl *);
|
|
|
|
|
|
|
|
#ifdef LIBOGC_INTERNAL
|
|
|
|
#include <libogc/lwp_stack.inl>
|
|
|
|
#endif
|
2017-12-11 23:55:31 -08:00
|
|
|
|
2017-08-19 08:46:04 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|