gonzui


Format: Advanced Search

tkernel_2/config/src/sysdepend/tef_em1d/rominfo_ram.cbare sourcepermlink (0.00 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    T-Kernel 2.0 Software Package
    4:  *
    5:  *    Copyright 2011 by Ken Sakamura.
    6:  *    This software is distributed under the latest version of T-License 2.x.
    7:  *----------------------------------------------------------------------
    8:  *
    9:  *    Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17.
   10:  *    Modified by T-Engine Forum at 2013/03/02.
   11:  *    Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
   12:  *
   13:  *----------------------------------------------------------------------
   14:  */
   15: 
   16: /*
   17:  *      @(#)rominfo_ram.c (EM1D-512)
   18:  *
   19:  *      ROM information for RAM kernel
   20:  */
   21: 
   22: #include <basic.h>
   23: #include <sys/rominfo.h>
   24: 
   25: IMPORT UB SYSCONF[], DEVCONF[];
   26: IMPORT void START();
   27: 
   28: /* Kernel address */
   29: #define RI_KERNEL_START (FP)&START      /* Kernel start address */
   30: #define RI_SYSCONF      (UB*)SYSCONF /* SYSCONF top */
   31: #define RI_DEVCONF      (UB*)DEVCONF /* DEVCONF top */
   32: 
   33: /* User definition */
   34: #define RI_USERAREA_TOP (void*)0x40000000       /* RAM user area top */
   35: #define RI_USERINIT     (FP)NULL    /* User initialization program */
   36: #define RI_RESETINIT    (FP)NULL   /* Reset initialization program */
   37: 
   38: /* ROM disk */
   39: #define RI_RDSK_TYPE    (UW)0              /* ROM disk type */
   40: #define RI_RDSK_BLOCK   (UW)0             /* ROM disk block size */
   41: #define RI_RDSK_START   (UW)0             /* ROM disk start address */
   42: #define RI_RDSK_END     (UW)0               /* ROM disk end address */
   43: 
   44: 
   45: /* ROM information */
   46: RomInfo rominfo = {
   47:         RI_KERNEL_START,       /* Kernel startup address */
   48:         RI_SYSCONF,            /* SYSCONF top */
   49:         RI_DEVCONF,            /* DEVCONF top */
   50:         RI_USERAREA_TOP,       /* RAM user area top */
   51:         RI_USERINIT,           /* User initialization program address */
   52:         RI_RESETINIT,          /* Reset initialization program address */
   53:         {0},                   /* Reserved (always 0) */
   54: 
   55:         RI_RDSK_TYPE,          /* ROM disk type */
   56:         RI_RDSK_BLOCK,         /* ROM disk block size */
   57:         RI_RDSK_START,         /* ROM disk start address */
   58:         RI_RDSK_END,           /* ROM disk end address */
   59:         {0}                    /* Reserved (always 0) */
   60: };