Changeset 168ba07 in rtems


Ignore:
Timestamp:
Jul 6, 2000, 8:36:48 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
79ef2d8
Parents:
55e4dcf3
Message:

Patch from Eric Valette <valette@…> and Yacine El Kolli
<elkolli@…> to add support for the mbx860_005b.

Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/sapi/include/confdefs.h

    r55e4dcf3 r168ba07  
    992992    (CONFIGURE_MAXIMUM_ADA_TASKS == 0) &&  \
    993993    (CONFIGURE_MAXIMUM_ITRON_TASKS == 0)
    994 #error "CONFIGURATION ERROR: No tasks or threads configured!!
     994#error "CONFIGURATION ERROR: No tasks or threads configured!!"
    995995#endif
    996996
     
    10031003    !defined(CONFIGURE_POSIX_INIT_THREAD_TABLE) && \
    10041004    !defined(CONFIGURE_ITRON_INIT_TASK_TABLE)
    1005 #error "CONFIGURATION ERROR: No initialization tasks or threads configured!!
     1005#error "CONFIGURATION ERROR: No initialization tasks or threads configured!!"
    10061006#endif
    10071007
  • c/src/lib/libbsp/powerpc/mbx8xx/startup/imbx8xx.c

    r55e4dcf3 r168ba07  
    275275#if ( defined(mbx821_001) || defined(mbx821_001b) || defined(mbx860_001b) )
    276276  m8xx.plprcr = 0x5F500000;
    277 #else
     277#elif ( defined(mbx860_005b) )
     278  /* Set the multiplication factor to 0 and clear the timer interrupt status*/
     279  m8xx.plprcr = 0x00005000;
     280#elif ( defined(mbx860_001) || \
     281        defined(mbx860_002) || \
     282        defined(mbx860_003) || \
     283        defined(mbx860_004) || \
     284        defined(mbx860_005) || \
     285        defined(mbx860_002b) || \
     286        defined(mbx860_003b) || \
     287        defined(mbx860_004b) || \
     288        defined(mbx860_006b) || \
     289        defined(mbx821_002) || \
     290        defined(mbx821_003) || \
     291        defined(mbx821_004) || \
     292        defined(mbx821_005) || \
     293        defined(mbx821_002b) || \
     294        defined(mbx821_003b) || \
     295        defined(mbx821_004b) || \
     296        defined(mbx821_005b) )
     297        defined(mbx821_006b) )
    278298  m8xx.plprcr = 0x4C400000;
     299#else
     300#error "MBX board not defined" 
    279301#endif
    280302  /* Unlock the timebase and decrementer registers. */
    281303  m8xx.tbk = M8xx_UNLOCK_KEY;
    282        
    283304  /*
    284305   * Initialize decrementer register to a large value to
     
    459480   * m8xx.memc[1]._br = 0x00000081;
    460481   */
    461   m8xx.memc[1]._or = M8xx_MEMC_OR_4M | M8xx_MEMC_OR_ATM(0) |
    462                 M8xx_MEMC_OR_ACS_QRTR | M8xx_MEMC_OR_SCY(0);
     482#if ( defined(mbx860_001b) )
     483    m8xx.memc[1]._or = M8xx_MEMC_OR_2M | M8xx_MEMC_OR_ATM(0) |
     484    M8xx_MEMC_OR_ACS_QRTR | M8xx_MEMC_OR_SCY(0);
     485#elif ( defined(mbx860_002b) || \
     486         defined(mbx860_003b) || \
     487         defined(mbx821_001b) || \
     488         defined(mbx821_002b) || \
     489         defined(mbx821_003b) || \
     490         defined(mbx860_001)  || \
     491         defined(mbx860_002)  || \
     492         defined(mbx860_003)  || \
     493         defined(mbx821_001)  || \
     494         defined(mbx821_002)  || \
     495         defined(mbx821_003) )
     496    m8xx.memc[1]._or = M8xx_MEMC_OR_4M | M8xx_MEMC_OR_ATM(0) |
     497    M8xx_MEMC_OR_ACS_QRTR | M8xx_MEMC_OR_SCY(0);
     498#elif ( defined(mbx860_004) || \
     499        defined(mbx860_005) || \
     500        defined(mbx860_004b) || \
     501        defined(mbx860_005b) || \
     502        defined(mbx860_006b) || \
     503        defined(mbx821_004) || \
     504        defined(mbx821_005) || \
     505        defined(mbx821_004b) || \
     506        defined(mbx821_005b) || \
     507        defined(mbx821_006b) )
     508    m8xx.memc[1]._or = M8xx_MEMC_OR_16M | M8xx_MEMC_OR_ATM(0) |
     509      M8xx_MEMC_OR_ACS_QRTR | M8xx_MEMC_OR_SCY(0);
     510#else
     511#error "MBX board not defined"
     512#endif
    463513  m8xx.memc[1]._br = M8xx_BR_BA(0x00000000) | M8xx_BR_AT(0) | M8xx_BR_PS32 |
    464514                M8xx_BR_MS_UPMA | M8xx_MEMC_BR_V;
  • c/src/lib/libbsp/powerpc/mbx8xx/startup/mmutlbtab.c

    r55e4dcf3 r168ba07  
    3232 */
    3333MMU_TLB_table_t MMU_TLB_table[] = {
    34         /*
     34#if ( defined(mbx860_001b) )
     35  /*
     36         * DRAM: CS1, Start address 0x00000000, 2M,
     37         *      ASID=0x0, APG=0x0, not guarded memory, copyback data cache policy,
     38         *      R/W,X for all, no ASID comparison, not cache-inhibited.
     39         *      Last 512K block is cache-inhibited, but not guarded for use by EPPCBug.
     40         * EPN          TWC     RPN
     41         */
     42  { 0x00000200, 0x05,   0x000009FD },   /* DRAM - PS=512K */
     43  { 0x00080200, 0x05,   0x000809FD },   /* DRAM - PS=512K */
     44  { 0x00100200, 0x05,   0x001009FD },   /* DRAM - PS=512K */
     45  { 0x00180200, 0x05,   0x001809FF },   /* DRAM - PS=512K, cache-inhibited */
     46#elif ( defined(mbx860_002b) || \
     47         defined(mbx860_003b) || \
     48         defined(mbx821_001b) || \
     49         defined(mbx821_002b) || \
     50         defined(mbx821_003b) || \
     51         defined(mbx860_001)  || \
     52         defined(mbx860_002)  || \
     53         defined(mbx860_003)  || \
     54         defined(mbx821_001)  || \
     55         defined(mbx821_002)  || \
     56         defined(mbx821_003) )
     57  /*
    3558         * DRAM: CS1, Start address 0x00000000, 4M,
    3659         *      ASID=0x0, APG=0x0, not guarded memory, copyback data cache policy,
     
    3962         * EPN          TWC     RPN
    4063         */
    41         { 0x00000200,   0x05,   0x000009FD },   /* DRAM - PS=512K */
    42         { 0x00080200,   0x05,   0x000809FD },   /* DRAM - PS=512K */
    43         { 0x00100200,   0x05,   0x001009FD },   /* DRAM - PS=512K */
    44         { 0x00180200,   0x05,   0x001809FD },   /* DRAM - PS=512K */
    45         { 0x00200200,   0x05,   0x002009FD },   /* DRAM - PS=512K */
    46         { 0x00280200,   0x05,   0x002809FD },   /* DRAM - PS=512K */
    47         { 0x00300200,   0x05,   0x003009FD },   /* DRAM - PS=512K */
    48         { 0x00380200,   0x05,   0x003809FF },   /* DRAM - PS=512K, cache-inhibited */
     64  { 0x00000200, 0x05,   0x000009FD },   /* DRAM - PS=512K */
     65  { 0x00080200, 0x05,   0x000809FD },   /* DRAM - PS=512K */
     66  { 0x00100200, 0x05,   0x001009FD },   /* DRAM - PS=512K */
     67  { 0x00180200, 0x05,   0x001809FD },   /* DRAM - PS=512K */
     68  { 0x00200200, 0x05,   0x002009FD },   /* DRAM - PS=512K */
     69  { 0x00280200, 0x05,   0x002809FD },   /* DRAM - PS=512K */
     70  { 0x00300200, 0x05,   0x003009FD },   /* DRAM - PS=512K */
     71  { 0x00380200, 0x05,   0x003809FF },   /* DRAM - PS=512K, cache-inhibited */
     72#elif ( defined(mbx860_004) || \
     73        defined(mbx860_005) || \
     74        defined(mbx860_004b) || \
     75        defined(mbx860_005b) || \
     76        defined(mbx860_006b) || \
     77        defined(mbx821_004) || \
     78        defined(mbx821_005) || \
     79        defined(mbx821_004b) || \
     80        defined(mbx821_005b) || \
     81        defined(mbx821_006b) )
     82  /*
     83         * DRAM: CS1, Start address 0x00000000, 16M,
     84         *      ASID=0x0, APG=0x0, not guarded memory, copyback data cache policy,
     85         *      R/W,X for all, no ASID comparison, not cache-inhibited.
     86         * EPN          TWC     RPN
     87         */
     88        { 0x00000200,   0x0D,   0x000009FD },   /* DRAM - PS=8M */
     89        { 0x00800200,   0x0D,   0x008009FD },   /* DRAM - PS=8M */
     90#else
     91#error "MBX board not defined"
     92#endif
    4993        /*
    5094         *
  • cpukit/sapi/include/confdefs.h

    r55e4dcf3 r168ba07  
    992992    (CONFIGURE_MAXIMUM_ADA_TASKS == 0) &&  \
    993993    (CONFIGURE_MAXIMUM_ITRON_TASKS == 0)
    994 #error "CONFIGURATION ERROR: No tasks or threads configured!!
     994#error "CONFIGURATION ERROR: No tasks or threads configured!!"
    995995#endif
    996996
     
    10031003    !defined(CONFIGURE_POSIX_INIT_THREAD_TABLE) && \
    10041004    !defined(CONFIGURE_ITRON_INIT_TASK_TABLE)
    1005 #error "CONFIGURATION ERROR: No initialization tasks or threads configured!!
     1005#error "CONFIGURATION ERROR: No initialization tasks or threads configured!!"
    10061006#endif
    10071007
  • make/custom/mbx8xx.cfg

    r55e4dcf3 r168ba07  
    182182else
    183183define make-exe
    184         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
    185             $(LINK_OBJS) $(LINK_LIBS)
     184        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) $(MBX8xx_LDFLAGS) \
     185            -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
    186186        $(NM) -g -n $@ > $(basename $@).nm
    187187        $(STRIP) -o $(basename $@) $@
Note: See TracChangeset for help on using the changeset viewer.