Changeset 36848ce in rtems


Ignore:
Timestamp:
04/27/98 14:19:54 (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
21c1513
Parents:
cf59d56b
Message:

Clean up patch from Ralf Corsepius.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/start/sh/start.s

    rcf59d56b r36848ce  
    3333        mov.l   end_k,r1
    3434        mov     #0,r2
    35 start_l:
     350:
    3636        mov.l   r2,@r0
    3737        add     #4,r0
    3838        cmp/ge  r0,r1
    39         bt      start_l
     39        bt      0b
    4040
    4141        ! copy the vector table from rom to ram
    42         mov.l   vects_k,r7      ! vectab
    43         mov     #0,r2           ! address of boot vector table
    44         mov     #0,r3           | number of bytes copied
    45         mov.w   vects_size,r6   ! size of entries in vectab
    46 0:
    47         mov.l   @r2+,r1
    48         mov.l   r1,@r7
    49         add     #4,r7
    50         add     #1,r3
    51         cmp/hi  r6,r3
    52         bf      0b
     42        mov.l   vects_k,r0      ! vectab
     43        mov     #0,r1           ! address of boot vector table
     44        mov     #0,r2           | number of bytes copied
     45        mov.w   vects_size,r3   ! size of entries in vectab
     461:
     47        mov.l   @r1+,r4
     48        mov.l   r4,@r0
     49        add     #4,r0
     50        add     #1,r2
     51        cmp/hi  r3,r2
     52        bf      1b
    5353
    54         mov.l   vects_k,r8      ! update vbr to point to vectab
    55         ldc     r8,vbr
     54        mov.l   vects_k,r0      ! update vbr to point to vectab
     55        ldc     r0,vbr
    5656
    5757        ! call the mainline     
     
    7171        .align 2
    7272stack_k:
    73         .long   _stack 
     73        .long   SYM(stack)     
    7474edata_k:
    75         .long   _edata
     75        .long   SYM(edata)
    7676end_k:
    77         .long   _end
     77        .long   SYM(end)
    7878main_k:
    79         .long   _boot_card
     79        .long   SYM(boot_card)
    8080exit_k:
    81         .long   _exit
     81        .long   SYM(exit)
    8282
    8383vects_k:
    84         .long   _vectab
     84        .long   SYM(vectab)
    8585vects_size:
    8686        .word   255
     
    9191        .section .stack
    9292#endif
    93 _stack: .long   0xdeaddead
     93SYM(stack):
     94        .long   0xdeaddead
Note: See TracChangeset for help on using the changeset viewer.