sysapp.h 1003 Bytes
#ifndef __SYSAPP_HDR__
#define __SYSAPP_HDR__

#define STACKSIZE 32768

#define MAX_SYSAPP_SIZE 0x100000
#define ROM_HEADER_SIZE 4096

#define DRAM_TARGET   (RESERVED_SEGMENT_ADDR)
#define GUNZIP_TARGET (RESERVED_SEGMENT_ADDR + MAX_SYSAPP_SIZE) 

#define CODE_SEGMENT_ADDR       0x80002000
#define RESERVED_SEGMENT_ADDR   0x80200000
#define RESERVED_SEGMENT_SIZE   2*MAX_SYSAPP_SIZE

#define SA1_SEGMENT_START       CODE_SEGMENT_ADDR
#define SA1_SEGMENT_END         (RESERVED_SEGMENT_ADDR + RESERVED_SEGMENT_SIZE)

/* Error codes from the viewer/status.h - used in uiBbidCheck */
#define VW_OK                            0
#define VW_ERR_FATAL                    -1
#define VW_ERR_FS                       -2
#define VW_ERR_ID_MISMATCH              -3

/*
 * 8 bytes into rom is load address (as kseg0/1, not physical)
 */
#define N64_ROM_LOADADDR_OFFSET 8

/*
 * debug print support
 */
#undef PRINTF

#ifdef USB_PRINTF
#define	PRINTF	osSyncPrintf
#else
#define	PRINTF(format, args...)
#endif

#endif