#
# SC Memory Map
#
# Defined here because these values are shared by the makefiles as
# well as the header files.
#

#
# Name of this file for dependency rules
#
SC_ADDR_MAP = $(ROOT)/usr/include/make/SCaddrs

#
# -------------------------------------------------------
# SC segments in SDRAM start at the top of MEM0 space and
# grow downward
# -------------------------------------------------------
#
# Note that in the SDRAM area, the segment alignment is specified
# as 16KB, so the minimum size is typically 48KB (Text+Data+BSS)
#
# 16 bytes for IPC area
MK_IPC_START=0x09fffff0

# 128KB for Legacy State Saving
MK_LEGACY_SDRAM_STATE=0x09fe0000

# 64KB for Audio RM
MK_AUD_START=0x09fd0000

# 320KB for FS BSS
MK_FS_BSS_START=0x09f80000
# 
# 64KB for USB RM
MK_USB_START=0x09f70000

# 640KB for VN + VNG
MK_VN_START=0x09ed0000

# Eticket Services BSS start (32K)
MK_ET_BSS_START=0x09ec8000

# Media File Library needs 96KB because of segment rounding
MK_MDFILE_START=0x09eb0000

# 1MB for Shared Area
# XXX little less than 1MB for transition to avoid overlap with
# XXX old viewer
# MK_SHARED_START=0x09db0000
# MK_SHARED_SIZE=0x100000
MK_SHARED_START=0x09dc0000
MK_SHARED_SIZE=0xf0000

# GBA viewer start (2MB below Shared Area)
MK_VIEWER_START=0x09bb0000

# 128KB for NC DevMon (shell) process
#
# This disappears in production version.
#
# Put it lower than strictly necessary to avoid collision
# with previous location of the viewer at 0x09ba0000 to make
# the upgrade a bit safer.
# 
MK_DEVMON_START=0x09b80000

#
# NC apps start (not GBA App)
MK_APP_START=0x09000000
#
# Boot1 buffer to load boot2 from the flash
MK_BOOT2_LOAD=0x08f00000
#
# ------------
# DA locations
# ------------
#
# Boot1 copies itself to here to avoid conflict with the SK
MK_BOOT1_START=0x00028000
MK_BOOT1_END=0x00030000
#
# 32KB for Legacy State Saving
MK_LEGACY_DA_STATE=0x00028000
#
# 1KB for USB packet buffers in DA space
MK_USB_BUF_START=0x00027c00
#
# 46KB for Eticket Services RM
MK_ET_START=0x0001c000
#
# 28KB for FS code and data
MK_FS_START=0x00015400
#
# 84KB for SK at the bottom of DA space (exception vector table)
MK_SK_START=0x00000000
