pureikyubu/Docs/RE/lomem.txt
ogamespec c21147ccff Cumulative changes all around project, regarding Stage 1
Docs: New TODO moved to EMU, old renamed to old_todo
Docs: Old coding style is deprecated (old_style.txt)
Docs: Removed mention about CubeDocumented and fixed old emails
RE: boot.s, proved first asm line (lis instruction parameter)
RE: Added PAL and NTSC Boot and IPL IDA files
RE: Some work on NTSC IPL (identified many lib calls, including OS, GX)
RE: Added EXI Bootrom descrambler by segher
RE: GXInit
RE: Internal GX lib structures (GXPrivate.h)
RE: More details on lomem (OS versions)
RE: OSInit and OS.c
RE: OSAlloc (heap allocator)
RE: Very first code of Metrowerk runtime (__start.c)
Docs: Added copy of http://gcdev.narod.ru
Source\Utils: Command processor (Cmd.c)
Source\Utils: File wrapper
Source\Utils: Gekko disasm cleaned up and ported to plain C
Source\Utils: Double-linked lists
Source\Utils: Ported old Profiler code
Source\Utils: String utils
2015-09-04 19:45:10 +03:00

75 lines
3.2 KiB
Text

==========
OS LoMem
==========
based on Titanik's gcinfos1.txt
0x80000000 + 256 bytes - OS low memory area (lomem)
80000000 4 DiskID : GameName
80000004 2 DiskID : Company
80000006 1 DiskID : Disk number
80000007 1 DiskID : Game version
80000008 1 DiskID : Streaming 0 = audio streaming off
80000009 1 DiskID : StreamBufSize
8000000a 20 padding(0)
80000020 4 Magic word (boot method : bootrom/JTAG) 'DISEASE' hehe
80000024 4 Version
80000028 4 Physical Memory Size (in bytes, usually 0x1800000)
8000002C 4 Console type
00000001 = Retail1 (OS_CONSOLE_RETAIL1)
00000002 = Retail2 (OS_CONSOLE_RETAIL2)
00000003 = Retail3 (OS_CONSOLE_RETAIL3)
00000004 = Retail4 (OS_CONSOLE_RETAIL4)
1XXXXXXX = Devkits and emulators (OS_CONSOLE_DEVELOPMENT)
10000000 = Mac emulator (OS_CONSOLE_EMULATOR)
10000001 = PC emulator (OS_CONSOLE_PC_EMULATOR)
10000002 = "Arthur" (OS_CONSOLE_ARTHUR), test board
10000003 = "Minnow" (OS_CONSOLE_MINNOW), test board
10000004 = Devkit1 (OS_CONSOLE_DEVHW1)
10000005 = Devkit2 (OS_CONSOLE_DEVHW2)
10000006 = Devkit3 (OS_CONSOLE_DEVHW3)
10000007 = Devkit4 (OS_CONSOLE_DEVHW4)
80000030 4 ArenaLo
80000034 4 ArenaHi
80000038 4 FST Location in ram
8000003C 4 FST Max Length
800000C0 4 Current OS context (physical address)
800000C4 4 Previous OS interrupt mask
800000C8 4 OS interrupt mask
800000CC 4 TV Mode
0 = NTSC
1 = PAL
2 = DEBUG
3 = DEBUG PAL
4 = MPAL (Brasil)
5 = PAL60
800000D0 4 ARAM size (internal + expansion) in bytes
800000D4 4 Current OS context
800000D8 4 Default OS thread
800000DC 8 Active threads queue
+0 pointer to head thread
+4 pointer to tail thread
800000E4 4 Current OS thread
800000F0 4 Simulated Memory Size (in bytes)
800000F4 4 Pad Spec (?)
800000F8 4 Bus clock fixed value (162000000 Hz)
u32 __OSBusClock AT_ADDRESS(OS_BASE_CACHED | 0x00F8);
800000FC 4 Core clock fixed value (486000000 Hz)
u32 __OSCoreClock AT_ADDRESS(OS_BASE_CACHED | 0x00FC);
0x80003000 - Secondary OS low memory area
-------------------------------------------------------------------------------
org -- ogamespec@gmail.com
3 Sep 2015