2
#define MEM_END 0x00800000 /* Memory size 8Mb */
22
* Set up the usable of RAM stuff
40
/* disable all interrupts */
51
* Determine end of RAM
60
* Move ROM filesystem above bss :-)
63
moveal #_sbss, %a0 /* romfs at the start of bss */
64
moveal #_ebss, %a1 /* Set up destination */
65
movel %a0, %a2 /* Copy of bss start */
67
movel 8(%a0), %d1 /* Get size of ROMFS */
68
addql #8, %d1 /* Allow for rounding */
69
andl #0xfffffffc, %d1 /* Whole words */
71
addl %d1, %a0 /* Copy from end */
72
addl %d1, %a1 /* Copy from end */
73
movel %a1, _ramstart /* Set start of ram */
76
movel -(%a0), %d0 /* Copy dword */
78
cmpl %a0, %a2 /* Check if at end */
84
* Initialize BSS segment to 0
90
/* Copy 0 to %a0 until %a0 == %a1 */
100
* Load the current task pointer and stack
103
lea init_thread_union, %a0
122
moveb %d7, 0xfffff907
124
movew 0xfffff906, %d7