OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [uclinux/] [uClinux-2.0.x/] [arch/] [i960/] [kernel/] [mon960-head.S] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/* mon960 head.S code: should be extremely simple, since mon960 takes care
2
   of almost all our requirements for us.  We're at ipl 31 (highest),
3
   interrupts are off, we have a C stack frame set up for us, etc.
4
   This is modelled after the alpha head.S  (excerpt below), which
5
   actually does some other cruft before calling start_kernel, but without
6
   knowning the alpha instruction set I can't tell for sure what's
7
   happening.
8
 
9
   For now I'll stick with just a call, as it seems to work in other
10
   places.
11
 
12
alpha head.S:
13
__start:
14
        br      $27,1f
15
1:      ldgp    $29,0($27)
16
        lda     $27,start_kernel
17
        jsr     $26,($27),start_kernel
18
        halt
19
        .end __start
20
*/
21
 
22
 
23
#define __ASSEMBLY__
24
#include 
25
 
26
        .align 4
27
        .globl _stext
28
        .globl __start
29
        .ent __start
30
 
31
_stext:
32
__start:
33
        call start_kernel
34
        halt
35
        .end __start

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.