Go to the documentation of this file.
27 #define PAGESIZE_BITS 12
28 #define PAGEMASK (PAGESIZE - 1)
33 #define page_count ((16*1024*1024 - 0x10000) / PAGESIZE)
36 #define page_phys_base 0x8c010000
42 #define THD_STACK_SIZE 32768
45 #define DEFAULT_VID_MODE DM_640x480
48 #define DEFAULT_PIXEL_MODE PM_RGB565
51 #define DEFAULT_SERIAL_BAUD 57600
54 #define DEFAULT_SERIAL_FIFO 1
57 #define ELF_SYM_PREFIX "_"
60 #define ELF_SYM_PREFIX_LEN 1
81 #define ARCH_EXIT_RETURN 1
82 #define ARCH_EXIT_MENU 2
83 #define ARCH_EXIT_REBOOT 3
140 void *
mm_sbrk(
unsigned long increment);
149 #define KOS_INIT_FLAGS(flags) uint32 __kos_init_flags = (flags)
157 #define KOS_INIT_ROMDISK(rd) void * __kos_romdisk = (rd)
163 #define KOS_INIT_ROMDISK_NONE NULL
171 #define INIT_DEFAULT \
172 (INIT_IRQ | INIT_THD_PREEMPT)
174 #define INIT_NONE 0x0000
175 #define INIT_IRQ 0x0001
176 #define INIT_THD_PREEMPT 0x0002
177 #define INIT_NET 0x0004
178 #define INIT_MALLOCSTATS 0x0008
179 #define INIT_QUIET 0x0010
182 #define INIT_OCRAM 0x10000
183 #define INIT_NO_DCLOAD 0x20000
260 #define arch_sleep() do { \
261 __asm__ __volatile__("sleep"); \
268 #define arch_get_ret_addr() ({ \
270 __asm__ __volatile__("sts pr,%0\n" \
285 #define arch_get_fptr() ({ \
287 __asm__ __volatile__("mov r14,%0\n" \
299 #define arch_fptr_ret_addr(fptr) (*((uint32*)fptr))
307 #define arch_fptr_next(fptr) (*((uint32*)(fptr+4)))
315 #define arch_valid_address(ptr) ((ptr_t)(ptr) >= 0x8c010000 && (ptr_t)(ptr) < 0x8d000000)