📄 dvdl.ldp
字号:
/*
* History
* Terry,2004/2/6 05:38PM
*/
#include "set.h"
#include "user_init.h"
#include "load.h"
#include "memmap0.h"
/*
** FILE
** dvdL.ld
** DESCRIPTION
** linker script for dvd system (in little-endian mode)
**
** ****************
** EMU-type0
**
** ROM 88000000
** 00400000
** SDRAM 80000000
**
** ****************
** EMU-type1 & ASIC-type0
**
** ROM 88000000 (granuate A)
** 80000000 (granuate ABC)
** SDRAM 80000000
*/
/*
** this file is VERY IMPORTANT for all systems. please keep
** every thing simple here for cleaness.
*/
#include "input_lib.h"
#define TO080(y) (0x080000000+1024*(y))
#define TO180(y) (0x180000000+1024*(y))
#define K(y) (1024*(y))
//data ram,terry,2004/7/26 02:51PM
#define TO_DR(x,y) (0x0bfff0000+1024*(y)+x)
//stack pointer
#include "stack.ldp"
SECTIONS
{
/*===========================================================================
* SDRAM 1 ,code ,rom data
*=============================================================================*/
/*
* iop driver
*/
.drv_iop :
{
_text_drv_iop = .;
. = ALIGN(16);
*iop.o (.rodata)
} > sdram_drv_iop
/*
* iop standby driver
*/
.drv_iop_rst :
{
. = ALIGN(16);
*ioprom.o (.rodata)
} > sdram_iop_rst
/*
* mpeg driver
*/
.ramdrv1 :
{
_text_drv = .;
. = ALIGN(16);
*rwdk.o (.text*)
#ifndef UNLOAD_ROMCODE
#ifdef LOAD_MPEG
*mpegsys*.o (.text*)
*supdrv*.o (.text*) //terry,2004/2/4 04:22PM
#if !defined(BBK_DVD)&&!defined(NINTAUS_DVD) ||defined(NIN_612_4M) //terry,2003/12/17 06:18PM
*setup_ui1.o (.text*)
#endif
#endif
#endif
} > sdram_drv1
/*
* jpeg driver
*/
.ramdrv2 :
{
. = ALIGN(16);
#ifndef UNLOAD_ROMCODE
#ifdef LOAD_JPEG
*jpegtest.o (.rodata)
*jpegtest.o (.text*)
#endif
#endif
} > sdram_drv2
/*
* navigation
*/
.drv_dvd :
{
_text_drv_dvd = .;
#if !defined(UNLOAD_ROMCODE)
#ifdef LOAD_NAV
*nav.o (.text*)
*pgc.o (.text*)
*user_if.o (.text*)
*ncmd.o (.text*)
*ncmd_exe.o (.text*)
*vts.o (.text*)
*vmg.o (.text*)
// *preview.o (.rodata)//lihj
// *preview.o (.text*)
*psd.o (.rodata)
*psd.o (.text*)
*v11.o (.rodata)
*v11.o (.text*)
*svcd.o (.rodata)
*svcd.o (.text*)
*cdg.o (.rodata)
*cdg.o (.text*)
*gf2m_c.o (.text*)
*rs2420.o (.text*)
*rs42.o (.rodata)
*rs42.o (.text*)
*navif.o (.text*)
*book.o (.text*)
*srv0.o (.text*)
*srv1.o (.text*)
#if !defined(NINTAUS_DVD)&& !defined(HUAJIA_DVD)&& !defined(GBM_DVD)&& !defined(MINTON_DVD)||defined(NIN_612_4M)
*prvdrv.o (.text*)
*int_decerr.o (.text*)
*supdec*.o (.text*)
*slowback.o (.text*)
// *cd.o (.text*)
*cdfunc.o (.text*)
#if !defined(PMP_DVD)
*mainproc.o (.text*)
*sysmain2.o (.text*)
#endif //#if !defined(PMP_DVD)
*dvdpe.o (.text*)
// *audhw.o (.text*)//nono 2004-6-22 18:40 for WHEN JPEG PLAYING, setting SPDIF item will reset.
// *cderr.o (.text*)
*repeat.o (.text*)
//cannot reduce rom code,
*css-des.o (.text*)
*css-auth.o (.rodata)
*css-auth.o (.text*)
*dvdauth.o (.text*)
*dvdioctl.o (.text*)
#endif//!defined(NINTAUS_DVD)
#ifdef DVDRELEASE
*viddec.o (.rodata)
*int_fld.o (.text*)
*int_pend.o (.text*)
// *genint.o (.text*)//lihj
#endif
#endif
#endif
. = ALIGN(16);
} > sdram_dvd
/*
* boot-strap
*/
.boot_flash :
{
*boot_flashs.o (.text*)
*boot_flashs.o (.rodata)
*boot_flash.o (.text*)
*boot_flash.o (.rodata)
*boot_emuio.o (.text*)
*boot_emuio.o (.rodata)
*boot_uart.o (.text*)
*boot_uart.o (.rodata)
*boot_sio.o (.text*)
*boot_sio.o (.rodata)
. = ALIGN(16);
_text_rombin_start = .;
} > sdram_flash
.drv_cdrom :
{
_text_drv_cdrom = .;
#ifndef UNLOAD_ROMCODE
*flash.o (.text*)
*flash.o (.rodata)
#ifdef LOAD_CDROM
*ThumbNav.o (.rodata)
*ThumbNav.o (.text*)
*fsNAV.o (.rodata)
#ifndef PMP_DVD
*fsGUI.o (.text*)
*fsGUI.o (.rodata)
#endif
#ifndef SUPPORT_MP4_SUBTITLE
*fsNAV.o (.text*)
*fs_nav_upgrade.o (.text*)
*fs_nav_upgrade.o (.rodata)
#endif
*udf.o (.text*)
*udf.o (.rodata)
*fs9660.o (.text*)
*fs9660.o (.rodata)
*fsCDDA.o (.rodata)//nono 4-9-1 12:01 move from sdram_drv1
*fsCDDA.o (.text*)
*NESInit.o (.text*)
// *nesif.o (.text*)
// *nesif.o (.rodata)
*fsFile.o (.rodata)
*fsFile.o (.text*)
*fsGUIX.o (.text*)
#endif
#ifdef LOAD_AP
//nono 2004-10-10 13:20 move here from "drv_ap1".
#if 0//!defined(BBK_DVD)&&!defined(NINTAUS_DVD)||defined(NIN_612_4M) //terry,2003/12/17 06:18PM
*graph.o (.rodata)
*graph.o (.text*)
*atapi_if.o (.text*)
#endif
#endif//#ifdef LOAD_AP
#if defined(LOAD_AP_OTHER)&&!defined(DVD_AUDIO)&&!defined(DVD_ESP_2S)//nono 2004-10-16 16:23
*cderr.o (.text*)
#endif//LOAD_AP_OTHER
#endif
. = ALIGN(16);
} > sdram_cdrom
.drv_ap1 :
{
_text_drv_ap = .;
#ifndef UNLOAD_ROMCODE
#ifdef LOAD_AP
*ircmd.o (.rodata)
*ircmd.o (.text*)
*ir_parser.o (.rodata)
*ir_parser.o (.text*)
*ir_drv.o (.text*)
*disp.o (.rodata)
*disp.o (.text*)
*polling.o (.text*)
*sound_if.o (.text*)
#ifndef SUPPORT_MP4_SUBTITLE
*audif.o (.text*)
*audif.o (.rodata)
#endif
#ifndef SUPPORT_MIDI
*osd1.o (.text*)
#endif
#if !defined( ENLARGE_SDRAM_CS_AND_OSD_SIZE )
*vfd.o (.rodata)
*vfd.o (.text*)
#if !defined(NINTAUS_DVD)||defined(NIN_612_4M)
*setup.o (.rodata)
#endif//#if !defined(NINTAUS_DVD)
#if defined(SUPPORT_MP4)||defined(SUPPORT_ID3)||defined(SUPPORT_OSDID3) //linrc 2004-11-08 10:57
*fs_message_show.o (.rodata)
*fs_message_show.o (.text)
#endif
#if !defined(BBK_DVD)&&!defined(NINTAUS_DVD)||defined(NIN_612_4M) //terry,2003/12/17 06:18PM
*safe.o (.rodata)
*safe.o (.text*)
*prog.o (.rodata)
#endif
#endif
#endif
#ifdef LOAD_SERVO
*Servo.o (.text*)
*Servo.o (.rodata)
*DecUtil.o (.text*)
*DecUtil.o (.rodata)
*IdeMain.o (.text*)
*IdeMain.o (.rodata)
*DecInit.o (.text*)
*DecISR.o (.text*)
*DecISR.o (.rodata*)
*Atapicmd.o (.text*)
*Atapicmd.o (.rodata)
*DecUpdt.o (.text*)
*DecUpdt.o (.rodata)
*DSPCode.o (.text*)
*SUtil.o (.text*)
*Servoset.o (.text*)
*TimerISR.o (.text*)
*DecExUtil.o (.text*)
*DecExUtil.o (.rodata)
*ServoSet.o (.text*)
*ServoSet.o (.rodata*)
*SrvCom.o (.text*)
#endif
#ifdef LOAD_AP_OTHER //terry,2004/4/13 09:36PM
*avd.o (.text*)
*timer.o (.text*)
*ircode.o (.rodata)
*osdutil.o (.rodata)
*font_offset.o (.rodata)
*sound.o (.rodata)
*sysmain2.o (.rodata)
*estd.o (.text)
*supset.o (.text)
*cvdogt.o (.text)
*sup.o (.text)
*memcfg.o (.text)
*util.o (.text)
*nav_util.o (.text)
*read.o (.text)
*score.o (.text)
*kernel.o (.text)
*ninf.o (.text)
*_Xdivdi3.o (.text)
*setvideo.o (.text)
// *hwif.o (.text)//cause 8200 standby fail.2004-4-30 11:32
*cd.o (.text*)
#endif
#endif
. = ALIGN(16);
} > sdram_ap1
.drv_ap2 :
{
_text_drv_ap2 = .;
#ifndef UNLOAD_ROMCODE
#ifdef LOAD_AP
*setup.o (.text*)
*intdrv.o (.text*)
*prog.o (.text*)
#endif
#endif
. = ALIGN(16);
} > sdram_ap2
.drv_ap3 :
{
. = ALIGN(16);
#ifndef UNLOAD_ROMCODE
#ifdef LOAD_AP
/* *prog.o (.text*)*/
/* *sound.o (.text*)*/
#endif
#endif
} > sdram_ap3
.drv_srvdp :
{
_text_drv_srvdp = .;
#ifndef UNLOAD_ROMCODE
*DSPCode.o (.rodata)
#endif
} > sdram_srvdp
.drv_free :
{
_text_drv_free = .;
#ifndef UNLOAD_ROMCODE
#ifdef LOAD_AP
#ifndef SUPPORT_JPEG_MIC //terry,2004/1/7 07:12PM
#if !defined(PMP_DVD)&&!defined(BBK_DVD)&&!defined(NINTAUS_DVD)&&!defined(GBM_CARD_READER)||defined(NIN_612_4M) //nono 4-2-2 15:15
*osd1.o (.rodata)
#endif
*search.o (.text*)
*search.o (.rodata)
*macro.o (.text*)
*macro.o (.rodata)
*image.o (.text*)
*iop.o (.text*)
*cderr.o (.text*)
*cderr.o (.rodata)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -