sysapp.h
1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#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