1 #include <linux/linkage.h>
5 #include <asm/contregs.h>
6 #include <asm/sun3-head.h>
10 ICACHE_ONLY = 0x00000009
11 CACHES_OFF = 0x00000008 | actually a clear and disable --m
12 #define MAS_STACK INT_STACK
15 SUN3_INVALID_PMEG = 255
16 .globl bootup_user_stack
17 .globl bootup_kernel_stack
20 .globl kernel_pmd_table
22 .global m68k_pgtable_cachemode
24 | todo: all these should be in bss!
25 swapper_pg_dir: .skip 0x2000
27 kernel_pmd_table: .skip 0x2000
30 .equ kernel_pg_dir,kernel_pmd_table
36 /* Firstly, disable interrupts and set up function codes. */
37 movew #PSL_HIGHIPL, %sr
38 moveq #FC_CONTROL, %d0
42 /* Make sure we're in context zero. */
46 /* map everything the bootloader left us into high memory, clean up the
49 lea (AC_SEGMAP+KERNBASE),%a1
53 cmpib #SUN3_INVALID_PMEG, %d1
61 /* Disable caches and jump to high code. */
62 moveq #ICACHE_ONLY,%d0 | Cache disabled until we're ready to enable it
63 movc %d0, %cacr | is this the right value? (yes --m)
66 /* Following code executes at high addresses (0xE000xxx). */
67 1: lea init_task,%curptr | get initial thread...
68 lea init_thread_union+THREAD_SIZE,%sp | ...and its stack.
70 /* Point MSP at an invalid page to trap if it's used. --m */
74 movsb %d0,(AC_SEGMAP+0x0)
89 | todo: remove next two. --m
92 m68k_pgtable_cachemode: