1 #include <linux/linkage.h>
2 #include <linux/init.h>
6 #include <asm/contregs.h>
7 #include <asm/sun3-head.h>
11 ICACHE_ONLY = 0x00000009
12 CACHES_OFF = 0x00000008 | actually a clear and disable --m
13 #define MAS_STACK INT_STACK
16 SUN3_INVALID_PMEG = 255
17 .globl bootup_user_stack
18 .globl bootup_kernel_stack
21 .globl kernel_pmd_table
23 .global m68k_pgtable_cachemode
25 | todo: all these should be in bss!
26 swapper_pg_dir: .skip 0x2000
28 kernel_pmd_table: .skip 0x2000
31 .equ kernel_pg_dir,kernel_pmd_table
37 /* Firstly, disable interrupts and set up function codes. */
38 movew #PSL_HIGHIPL, %sr
39 moveq #FC_CONTROL, %d0
43 /* Make sure we're in context zero. */
47 /* map everything the bootloader left us into high memory, clean up the
50 lea (AC_SEGMAP+KERNBASE),%a1
54 cmpib #SUN3_INVALID_PMEG, %d1
62 /* Disable caches and jump to high code. */
63 moveq #ICACHE_ONLY,%d0 | Cache disabled until we're ready to enable it
64 movc %d0, %cacr | is this the right value? (yes --m)
67 /* Following code executes at high addresses (0xE000xxx). */
68 1: lea init_task,%curptr | get initial thread...
69 lea init_thread_union+THREAD_SIZE,%sp | ...and its stack.
71 /* Point MSP at an invalid page to trap if it's used. --m */
75 movsb %d0,(AC_SEGMAP+0x0)
90 | todo: remove next two. --m
93 m68k_pgtable_cachemode: