mem_reloc.h 1.52 KB
#ifndef __MEM_RELOC_H__
#define __MEM_RELOC_H__


#ifdef _WIN32

	// Empty defines for win32 platforms

#else

	#define __FLASH_BOOT_TEXT   __attribute__ ((section (".flash_boot_text")))

	#define __INTERNAL_RAM_TEXT __attribute__ ((section (".internal_ram_1_text")))

	#define __LIBKERNAL_RAM_TEXT __attribute__ ((section (".libkernel_text")))
	
// For placing specific variables into iphone_bss section
//	#define __IPHONE_BSS        __attribute__ ((section (".sdram_bss")))
	#define __IPHONE_BSS        __attribute__ ((section (".iphone_bss")))

//	#define __IPHONE_RAM_TEXT   __attribute__ ((section (".internal_ram_1_text")))
//	#define __IPHONE_RAM_TEXT   __attribute__ ((section (".iphone_ram_text")))

	#define __USBHOST_BSS       //__attribute__ ((section (".usbhost_bss")))
	#define __USBHOST_TEXT      //__attribute__ ((section (".internal_ram_1_text")))

	#define __USB_DEV_BSS       __attribute__ ((section (".usbDev_bss")))
	#define __US_DEV_TEXT       //__attribute__ ((section (".internal_ram_1_text")))

	#define __MTPHOST_BSS       __attribute__ ((section (".mtphost_bss")))

//	#define __CD_BSS
	#define __CD_BSS            __attribute__ ((section (".cd_bss")))

//	#define __USB_FS_BSS
	#define __USB_FS_BSS        //__attribute__ ((section (".usb_fs_bss")))

	#define __USB_FOLDER_BSS     __attribute__ ((section (".usb_folder_bss")))

	#define __USB_FS_DELETE_BSS   __attribute__ ((section (".usb_fs_delete_bss")))

	#define __UPGRADE_HW_SET_RODATA    __attribute__ ((section (".upgrade_hw_set_rodata")))
#endif

#endif //__MEM_RELOC_H__