revert between 56095 -> 55830 in arch
[AROS.git] / arch / m68k-mac / boot / entrycode.S
blobe23d4183e699aee5cfcfa8148f507912a11d8ad8
1         .section entrycodes,"aw",@progbits
3         // For the following structur have a look at the POSE source
4         // code SrcShared/Palm/Platform/Core/System/IncsPrv/MemoryPrv.h
6         .globl initial_ssp
7 initial_ssp:
8         .dc.l  0x100000                 // initial value for SSP
9 //      .dc.l  hardware_reset_init_1  // where the startup code is at.
11         .globl hardware_reset_init_1
12         .section .text
13         .align 4 
14 hardware_reset_init_1:
15         move.l #((_end)+0x10000),%sp
16         move.l #0,%a0
17         move.l #0,%d0
18 myloop:
19         move.l %d0,%a0
20         add.l #0xf9000e00,%a0
21         move.l #0x00000000,(%a0)
22         add.l #8,%d0
23         cmpil #0x500,%d0
24         bles myloop
25         jmp main_init
27         .globl software_reset
28         .align 4 
30 software_reset:
31         lea    initial_ssp,%a0
32         move.l (%a0),%ssp
33 //      move.w (_end)+0x1000,%sp
34         jmp    main_init