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

Subversion Repositories ao68000

[/] [ao68000/] [trunk/] [tests/] [soc_for_linux_on_terasic_de2_70/] [software/] [linux-2.6.33.1-ao68000/] [arch/] [m68knommu/] [platform/] [ao68000/] [head-ram.S] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 alfik
#include 
2
 
3
        .global __main
4
        .global __rom_start
5
 
6
        .global _rambase
7
        .global _ramvec
8
        .global _ramstart
9
        .global _ramend
10
 
11
        .global splash_bits
12
        .global _start
13
        .global _stext
14
        .global _edata
15
 
16
        .text
17
 
18
_start:
19
_stext:
20
        movew   #0x2700, %sr            /* Exceptions off! */
21
 
22
        moveal  #(CONFIG_RAMBASE + CONFIG_RAMSIZE), %ssp
23
        moveal  #_sbss, %a0
24
        moveal  #_ebss, %a1
25
 
26
        /* Copy 0 to %a0 until %a0 >= %a1 */
27
L1:
28
        movel   #0, %a0@+
29
        cmpal   %a0, %a1
30
        bhi     L1
31
 
32
        /* Thread */
33
        lea     init_thread_union, %a0
34
        lea     PAGE_SIZE(%a0), %sp
35
 
36
lp:
37
        jsr     start_kernel
38
        jmp lp
39
_exit:
40
 
41
        jmp     _exit
42
 
43
__main:
44
        /* nothing */
45
        rts
46
 
47
        .data
48
 
49
/*
50
 *      Set up the usable of RAM stuff. Size of RAM is determined then
51
 *      an initial stack set up at the end.
52
 */
53
.align 4
54
_ramvec:
55
.long   0
56
_rambase:
57
.long   0
58
_ramstart:
59
.long   _ebss
60
_ramend:
61
.long   (CONFIG_RAMBASE + CONFIG_RAMSIZE)

powered by: WebSVN 2.1.0

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