Changeset 86748ff in rtems


Ignore:
Timestamp:
10/24/00 21:50:37 (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
5b53d97
Parents:
fda47cd
Message:

2000-10-24 Alan Cudmore <alanc@…> and

Joel Sherrill <joel@…>

  • This is a major reworking of the mips64orion port to use gcc predefines as much as possible and a big push to multilib the mips port. The mips64orion port was copied/renamed to mips to be more like other GNU tools. Alan did most of the technical work of determining how to map old macro names used by the mips64orion port to standard compiler macro definitions. Joel did the merge with CVS magic to keep individual file history and did the BSP modifications. Details follow:
  • console/led.S: Switch from using <idtmon.h> to <asm.h>.
  • console/start.S: Switch from using <idtmon.h> to <asm.h>. Added define of PMON stacksize.
  • console/idtmem.S: Switch from using <idtmon.h> to <asm.h>. Also reworked conditionals to use gcc predefines.
  • console/idttlb.S: Ditto.
Location:
c/src/lib/libbsp/mips/p4000
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/mips/p4000/ChangeLog

    rfda47cd r86748ff  
     12000-10-24      Alan Cudmore <alanc@linuxstart.com> and
     2        Joel Sherrill <joel@OARcorp.com>
     3
     4        * This is a major reworking of the mips64orion port to use
     5        gcc predefines as much as possible and a big push to multilib
     6        the mips port.  The mips64orion port was copied/renamed to mips
     7        to be more like other GNU tools.  Alan did most of the technical
     8        work of determining how to map old macro names used by the mips64orion
     9        port to standard compiler macro definitions.  Joel did the merge
     10        with CVS magic to keep individual file history and did the BSP
     11        modifications. Details follow:
     12        * console/led.S: Switch from using <idtmon.h> to <asm.h>.
     13        * console/start.S: Switch from using <idtmon.h> to <asm.h>. Added
     14        define of PMON stacksize.
     15        * console/idtmem.S: Switch from using <idtmon.h> to <asm.h>.  Also
     16        reworked conditionals to use gcc predefines.
     17        * console/idttlb.S: Ditto.
     18
    1192000-09-04      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    220
  • c/src/lib/libbsp/mips/p4000/console/led.S

    rfda47cd r86748ff  
    44
    55#include <iregdef.h>
    6 #include <idtmon.h>
    76#include <idtcpu.h>
     7#include <asm.h>
    88
    99
  • c/src/lib/libbsp/mips/p4000/start/start.S

    rfda47cd r86748ff  
    3434#include <iregdef.h>
    3535#include <idtcpu.h>
    36 #include <idtmon.h>
     36#include <asm.h>
    3737
    3838
     
    213213
    214214
     215/*
     216 * P_STACKSIZE is the size of the Prom Stack.
     217 * the prom stack grows downward
     218 */
     219#define P_STACKSIZE     0x2000   /* sets stack size to 8k */
     220
    215221
    216222/**************************************************************************
  • c/src/lib/libbsp/mips/p4000/startup/idtmem.S

    rfda47cd r86748ff  
    4141#include <iregdef.h>
    4242#include <idtcpu.h>
    43 #include <idtmon.h>
     43#include <asm.h>
    4444
    4545        .data
     
    4949        .word   0               
    5050icache_size:
    51 #if defined(CPU_R3000)
     51#if __mips == 1
    5252        .word   MINCACHE       
    5353#endif
    54 #if defined(CPU_R4000)
     54#if __mips == 3
    5555        .word   0
    5656#endif
    5757
    58 #if defined(CPU_R4000)
     58#if __mips == 3
    5959        .data
    6060scache_size:
     
    7171                .text
    7272
    73 #if defined (CPU_R3000)
     73#if __mips == 1
    7474#define CONFIGFRM ((2*4)+4)     
    7575
     
    403403
    404404ENDFRAME(get_mem_conf)
    405 #endif /* defined CPU_R3000 */
    406 
    407 #if defined(CPU_R4000)
     405#endif /* __mips == 1 */
     406
     407#if __mips == 3
    408408#define LEAF(label)     FRAME(label,sp,0,ra)
    409409#define XLEAF(label) \
     
    923923ENDFRAME(get_mem_conf)
    924924
    925 #endif /* defined(CPU_R4000) */
     925#endif /* __mips == 3 */
    926926
    927927/*
  • c/src/lib/libbsp/mips/p4000/startup/idttlb.S

    rfda47cd r86748ff  
    3333#include <iregdef.h>
    3434#include <idtcpu.h>
    35 #include <idtmon.h>
     35#include <asm.h>
    3636
    3737
    3838        .text
    3939
    40 #if defined(CPU_R3000)
     40#if __mips == 1
    4141/*
    4242** ret_tlblo -- returns the 'entrylo' contents for the TLB
     
    6565ENDFRAME(ret_tlblo)
    6666#endif
    67 #if defined(CPU_R4000)
     67#if __mips == 3
    6868/*
    6969** ret_tlblo[01] -- returns the 'entrylo' contents for the TLB
     
    143143*/
    144144FRAME(ret_tlbhi,sp,0,ra)
    145 #if defined(CPU_R3000)
     145#if __mips == 1
    146146        .set    noreorder
    147147        mfc0    t0,C0_SR                # save sr
     
    162162        .set    reorder
    163163#endif
    164 #if defined(CPU_R4000)
     164#if __mips == 3
    165165        mfc0    t0,C0_SR                # save sr
    166166        mtc0    zero,C0_SR              # disable interrupts
     
    185185*/
    186186FRAME(ret_tlbpid,sp,0,ra)
    187 #if defined(CPU_R3000)
     187#if __mips == 1
    188188        .set    noreorder
    189189        mfc0    v0,C0_TLBHI             # fetch tlb high
     
    195195        .set    reorder
    196196#endif
    197 #if defined(CPU_R4000)
     197#if __mips == 3
    198198        mfc0    v0,C0_TLBHI     # to return value
    199199        nop
     
    215215*/
    216216FRAME(tlbprobe,sp,0,ra)
    217 #if defined(CPU_R3000)
     217#if __mips == 1
    218218        .set    noreorder
    219219        mfc0    t0,C0_SR                /* fetch status reg */
     
    241241        .set    reorder
    242242#endif
    243 #if defined(CPU_R4000)
     243#if __mips == 3
    244244        mfc0    t0,C0_SR                # save sr
    245245        mtc0    zero,C0_SR              # disable interrupts
     
    270270*/
    271271FRAME(resettlb,sp,0,ra)
    272 #if defined(CPU_R3000)
     272#if __mips == 1
    273273        .set    noreorder
    274274        mfc0    t0,C0_TLBHI             # fetch the current hi
     
    290290        .set    reorder
    291291#endif
    292 #if defined(CPU_R4000)
     292#if __mips == 3
    293293        li      t2,K0BASE&TLBHI_VPN2MASK
    294294        mfc0    t0,C0_TLBHI             # save current TLBHI
     
    312312ENDFRAME(resettlb)
    313313
    314 #if defined(CPU_R3000)
     314#if __mips == 1
    315315/*
    316316** Setup TLB entry
     
    341341        .set    reorder
    342342ENDFRAME(map_tlb)
    343  #endif
    344 #if defined(CPU_R4000)
     343#endif
     344#if __mips == 3
    345345/*
    346346** Setup R4000 TLB entry
Note: See TracChangeset for help on using the changeset viewer.