⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dvdl.ldp

📁 Sunplus 8202S source code.
💻 LDP
📖 第 1 页 / 共 2 页
字号:
       *hostx.o        (.text*)
       *hostx.o        (.rodata)
       *dsp3_if.o      (.text*)
       *dsp3_if.o      (.rodata)
       *fs9660_util.o  (.text*)
       *fsNav_util.o   (.text*)
       *fsGUI_util.o   (.text*)
       *fsGUIShowFont.c (.text*)    // 2004/02/01 yltseng
       *framebuf*.o     (.text*)

       *sound.o        (.text*)
       *fs.o           (.text*)
       *fs.o           (.rodata)
       *vpp_728.o      (.text*)

            #ifdef DVDRELEASE

       *jpegeffect.o   (.rodata)
       *jpegeffect.o   (.text*)

       //*jpegeffect_help.o   (.rodata)
       //*jpegeffect_help.o   (.text*)

       *lbaif.o        (.rodata)
       *lbaif.o        (.text*)

       *supintr.o      (.text*)
       *viddec.o       (.text*)      

                #ifdef LOAD_MP4     // 2004/12/16 yltseng
        *viddec_mp4.o   (.text*)
                #endif
                
       *time.o         (.text*)
       *time.o         (.rodata)

       *vpp_728.o      (.rodata)
       *sp8200tv.o     (.text*)
       *sp8200tv.o     (.rodata)

                #ifdef SUPPORT_MJPEG
        *mjpeg.o	(.rodata)
        *mjpeg.o	(.text*)
                #endif

            #endif

        #endif

    #endif
    
#endif
    } > sdram_free

    .drv_mp4 :
    {
        _text_drv_mp4 = .;
#ifndef UNLOAD_ROMCODE
    #ifdef LOAD_MP4
        *mp4vid.o       (.text*)
        *mp4vid.o       (.rodata)
        *mp4vid.o       (.bss)
        *mp4vid.o       (COMMON)
        *mp4vid.o       (.sbss)
        *mp4vid.o       (.scommon)       
        *avi_if.o       (.text*)
        *avi_if.o       (.rodata)
    #endif
#endif
    } > sdram_mp4

    .drv_wma :
    {
        _text_drv_wma = .;
#ifndef UNLOAD_ROMCODE
#ifdef LOAD_WMA
       *asfheader.o    (.text*)
       *asfheader.o    (.rodata)
       *asfdata.o      (.text*)
       *asfdata.o      (.rodata)
       *asfheader.o	   (COMMON)
       *asfdata.o      (.scommon)
#endif
#endif
    } > sdram_wma


/*===========================================================================
// ROM 1
//===========================================================================*/
    /*
    ** .rom1: text image
    **
    ** this section keeps all the text-section rom image.
    ** the order of first few files is to ensure there will
    ** not be any cache trashing.  don't modify it unless
    ** you know what you are doing.
    **
    */
    .rom1 :
    {
#ifndef  LOAD_OTHER
        /* normal */
        MIPS/init0.o    (.text*)         /* boot code */

#ifndef DVDRELEASE
        *viddec.o   (.text*)
        *viddec.o   (.rodata)
        *intdrv.o   (.text*)        
        *int_fld.o      (.text*)
        *int_pend.o     (.text*)
        *genint.o       (.text*)
#endif
        
        
/*        *srv*.o         (.text*)*/
        *               (.text*)
        MIPS/crt0.o     (.text*)         /* c runtime code */
#else
        /* download all code to SDRAM */
        MIPS/init0.o    (.text*)         /* boot code            */
        MIPS/rominit.o  (.text*)         /* data/bss init code   */
        MIPS/crt0.o     (.text*)         /* c runtime code       */
        *reset.o        (.text*)         /* reset routine        */
        *sysmain.o      (.text*)         /* c main-routine       */
        *lexra.o        (.text*)        
        *dsp3_config.o  (.text*)
        *bitop.o        (.text*)
        *dtsrom.o       (.rodata)
        *intdrv.o       (.text*)      
        
        *emuio.o        (.text*)
        
        *uart0fifo.o    (.text*)        
        *other.o        (.text*)
        *sdram.o        (.text*)
        *sio.o          (.text*)
        *sio.o          (.rodata*)
        *uart1null.o     (.text*)
        
        *hwcpu*.o       (.text*)
        *crt0.o         (.rodata*)
        *init0.o        (.rodata*)        
#endif
        . = ALIGN(16);
    } > rom

/*===========================================================================
 SDRAM 2, global var.
===========================================================================*/
    /*
    ** .ram1: DATA section
    **
    ** this section is the virtual mapping of data-sections.
    ** data section is for initialized read/write variables.
    ** we have to store the initial value of these variables
    ** somewhere(.rom1_2).  during building the binary image
    ** we will dumping .ram1 content to .rom1_2
    **
    */
    .ram1 :
    {
        _data           = .;        /* beginning of data segment */
        *              (.data)
        _gp             = .;        /* $gp global pointer, _gp for crt0.S to load */
        *              (.sdata)
        *              (.lit8)
        *              (.lit4)
        *              (.lita)
        _edata      = .;            /* end of data area (to be copied from ROM) */
        .       = ALIGN(16);
    } > sdram_cs

/*===========================================================================
 ROM 2
===========================================================================*/

    /*
    ** .rom1_2: padding section for DATA initialization
    */
    .rom1_2 :
    {
        _data_ps = .;
        .       += SIZEOF(.ram1);
        _data_pe  = .;
        .       = ALIGN(16);
    } > rom


    /*
    ** .rom2: constant data
    */
    .rom2 :
    {
        /* CONSTANT DATA (read-only) */
#ifndef  LOAD_OTHER
        *               (.rdata)
        *               (.rodata)
#else
        /* only load these essential data to ROM */
        MIPS/rominit.o  (.rodata)
        MIPS/crt0.o     (.rodata)
        *reset.o        (.rodata)
        *sysmain.o      (.rodata)
        *lexra.o        (.rodata)
        //*memcfg.o       (.rodata)
        *dsp3_config.o  (.rodata)
        *bitop.o        (.rodata)
/*        MIPS/title.o    (.rodata)*/
#endif
        .               = ALIGN(16);
    } > rom


	.rom3 :
    {
        MIPS/title.o    (.rodata)
        .               = ALIGN(16);
    } > rom_title


/*===========================================================================
// SDRAM 3
//===========================================================================*/

    .ram_jpeg :
    {
        *jpegtest.o		(.bss)
        *jpegtest.o		(COMMON)
		*mjpeg.o	(.bss)
		*mjpeg.o	(COMMON)
		//*mjpeg.o	(.sbss)
		//*mjpeg.o	(.scommon)		
/*
        // These datas are moved to sdram_mp4 section
        *mp4vid.o		(.bss)
        *mp4vid.o		(COMMON)
        *mp4vid.o		(.sbss)
        *mp4vid.o		(.scommon)
*/
        //*asfheader.o  (COMMON)
        //*asfheader.o	(.scommon)
        //*asfdata.o    (.scommon)
        .       = ALIGN(16);
    } > sdram_jpeg


    .drv_other :
    {
        _text_other = .;
#ifdef  LOAD_OTHER
        *       (.text*)
        *       (.rodata)
#endif
        .       = ALIGN(16);
    } > sdram_other



    /*
    ** .ramf
    ** fast un-initialized variable storage.
    **
    */
    .ramF :
    {
        MIPS/databuf.o  (.bss)
        MIPS/databuf.o  (COMMON)
        .       = ALIGN(16);
    } > sdram_cs

    /*
    ** .ram2: un-initialized data
    */
    .ram2 :
    {
        _bstart     = .;
        *       (.sbss)
        *       (.scommon)
        *       (.bss)
        *       (COMMON)
        .       = ALIGN(16);
        _bend       = .;
    } > sdram_cs

    .rel :
    {
        *       (.rel.dyn)
    } > garbage


    _etext = ADDR(.rom1) + SIZEOF(.rom1) + SIZEOF(.rom2);  /* end of ROM image */
    _stextf = _etext + SIZEOF(.ram1);

    _tt_gb_size = SIZEOF(.ram1) + SIZEOF(.ram2) + SIZEOF(.ramF);


    .udf_buf :
    {
        _udf_work_buf = .;
        . += K(UDF_WORK_BUF_SIZE);
        _udf_work_buf_end = .;
    } > sdram_udfbuf


#if !defined( SDRAM_16Mb_Mode ) || !defined( SUPPORT_FILE_SYSTEM_MODE )		// 2004/06/12 yltseng
    #if !defined(FAT_FILE_MODE)&&!defined(FILE_MODE_WRITE)//liweihua 2004-10-20 17:25//sunzhh 2004-12-30
    _fs9660_buf     = TO080(FS9660YA);
#endif
#endif

#ifdef USE_NAV_BUF
    wb_buf          = TO080(N_NAVYA);
#endif

#ifndef SDRAM_16Mb_Mode
    decomp_fnTable  = TO080(COMP_OSD_FONT);
    osd_temp_buf    = TO080(OSD0_TEMP_YA);
#endif

/*===========================================================================
// STACK
//===========================================================================*/


    /*
    ** STACK location , 1.7K ,terry,2004/7/26 02:51PM
    */    
    _stkptr         = STK_PTR;
    _stkptr_dbg     = STK_DBG_PTR;

    _stkbtm         = STK_BTM_PTR;
    _stkbtm_dbg     = STK_DBG_BTM_PTR;
}



MEMORY
{
    garbage   : org = 0x00000000, l = 1m
    bootrom   : org = 0xbfc00000, l = 512k    /* Un-cached ROM boot       */
    rom       : org = 0x88000000, l = 1024k   /* cached ROM image in ROM  */
	rom_title :	org = 0x88000000+987*1024, l = 37k

    /*
    * reference memmap0b.txt
    */
#ifdef USE_C_IOP
    sdram_drv_iop : org = 0x080400000, l = 64k                               /* 0000 */
    sdram_iop_rst : org = 0x180400000, l = 64k                               /* 0000 */
#else
    sdram_drv_iop : org = 0x080000000, l = 2k                               /* 0000 */
    sdram_iop_rst : org = 0x180000000, l = 2k                               /* 0000 */
#endif
    sdram_cs      : org = TO080(SDRAM_CS_ST),		l = K(SDRAM_CS_SZ)    /* 0007 */
//#ifdef SDRAM_16Mb_Mode
//  #ifdef MEMCFG_MOVE_OSDSUP
//     sdram_jpeg    : org = 0x080000000 + 87*1024,l =  8k	/* AUDYA=85, 36-34=2, 85+2=87 */
//  #else
//    sdram_jpeg    : org = 0x080000000 +  102*1024,l =  8k
//  #endif
//#else
    sdram_jpeg    : org = TO080(JPEG_CODE_YA),		l = K(JPEG_CODE_SIZE)      /* 3422 */
//#endif
    sdram_flash   : org = TO180(100),				l = 10k                    /* 0100 */
//#ifdef SDRAM_16Mb_Mode
    sdram_drv1    : org = TO080(DRV1N2_ST),			l = K(DRV1_2_CODESIZE) /* PCM_YA=51 */
    sdram_drv2    : org = TO180(DRV1N2_ST),			l = K(DRV1_2_CODESIZE) /* PCM_YA=51 */
//#else
//    sdram_drv1    : org = 0x080000000+1024*DRV1N2_ST, l = 1024*DRV1_2_CODESIZE   /* 2530 */
//    sdram_drv2    : org = 0x180000000+1024*DRV1N2_ST, l = 1024*DRV1_2_CODESIZE   /* 2530 */
//#endif
    sdram_ap2     : org = TO080(AP2N3_ST),			l = K(AP2_CODESIZE)      /* 2566 */
    sdram_ap3     : org = TO180(AP2N3_ST),			l = K(AP3_CODESIZE)      /* 2566 */
    sdram_ap1     : org = TO080(AP1_ST),			l = K(AP_CODESIZE)         /* 2598 */
    sdram_udfbuf  : org = TO080(A_UDF_WORK_BUF),	l = K(UDF_WORK_BUF_SIZE)       /* 2744 */

//#ifdef SDRAM_16Mb_Mode
    sdram_srvdp   : org = TO080(A_SERVO_YA),		l = K(SERVO_SIZE)      /* 2028 */
    sdram_cdrom   : org = TO080(CDROM_CODE_YA),		l = K(CDROM_CODE_SIZE)      /* 1968 */
    sdram_dvd     : org = TO080(DVD_NAV_CODE),		l =K(DVD_CODE_SIZE) /* 3770 */
//#else
//    sdram_srvdp   : org = TO080(A_SERVO_YA), l = K(SERVO_SIZE)                      /* 2744 */
//    sdram_cdrom   : org = TO080(CDROM_CODE_YA), l = K(CDROM_CODE_SIZE)      /* 3430 */
//    sdram_dvd     : org = TO080(DVD_NAV_CODE), l = K(DVD_CODE_SIZE)         /* 3770 */
//#endif

    sdram_mp4     : org = TO080(A_MP4_CODE_YA),		l = K(MP4_CODE_SIZE)
    sdram_wma     : org = TO080(A_WMA_CODE_YA),		l = K(WMA_CODE_SIZE)

#ifdef DVDRELEASE
    #ifdef SDRAM_16Mb_Mode
    sdram_free    : org = TO080(FREE_CODE_YA),		l = K(FREE_CODESIZE+1)       /* 4022 */
    #else
    sdram_free    : org = TO080(FREE_CODE_YA),		l = K(FREE_CODESIZE+2)       /* 4022 */
    #endif
#else
    sdram_free    : org = TO080(FREE_CODE_YA),		l = K(FREE_CODESIZE)       /* 4022 */
#endif
    sdram_other   : org = 0x180700000, l = 1024k                            /* 7168 */
}


ENTRY(__romstart)


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -