Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions libxenon/drivers/xb360/xb360.c
Original file line number Diff line number Diff line change
Expand Up @@ -660,3 +660,11 @@ unsigned int xenon_get_kv_offset()
return ret;
return 0;
}

unsigned int xenon_get_ram_size()
{
// 0xE1040000 is the host bridge register where HWINIT stores a little endian uint32
// representing the amount of memory (in bytes) installed on the system. CB_B looks
// here to determine whether or not to throw panic 0xAF (UNSUPPORTED_RAM_SIZE)
return __builtin_bswap32(*(unsigned int *)0xE1040000);
}
2 changes: 2 additions & 0 deletions libxenon/drivers/xb360/xb360.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ unsigned int xenon_get_DVE();
unsigned int xenon_get_PCIBridgeRevisionID();
unsigned int xenon_get_CPU_PVR();
unsigned int xenon_get_XenosID();
unsigned int xenon_get_ram_size();

int xenon_get_console_type(void);

int xenon_get_logical_nand_data(void* buf, unsigned int offset, unsigned int len);
Expand Down
Loading