1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <linux/linkage.h>
3 #include <linux/init.h>
7 #include <asm/contregs.h>
8 #include <asm/sun3-head.h>
12 ICACHE_ONLY = 0x00000009
13 CACHES_OFF = 0x00000008 | actually a clear and disable --m
14 #define MAS_STACK INT_STACK
17 SUN3_INVALID_PMEG = 255
18 .globl bootup_user_stack
19 .globl bootup_kernel_stack
22 .globl kernel_pmd_table
24 .global m68k_pgtable_cachemode
26 | todo: all these should be in bss!
27 swapper_pg_dir: .skip 0x2000
29 kernel_pmd_table: .skip 0x2000
32 .equ kernel_pg_dir,kernel_pmd_table
38 /* Firstly, disable interrupts and set up function codes. */
39 movew #PSL_HIGHIPL, %sr
40 moveq #FC_CONTROL, %d0
44 /* Make sure we're in context zero. */
48 /* map everything the bootloader left us into high memory, clean up the
51 lea (AC_SEGMAP+KERNBASE),%a1
55 cmpib #SUN3_INVALID_PMEG, %d1
63 /* Disable caches and jump to high code. */
64 moveq #ICACHE_ONLY,%d0 | Cache disabled until we're ready to enable it
65 movc %d0, %cacr | is this the right value? (yes --m)
68 /* Following code executes at high addresses (0xE000xxx). */
69 1: lea init_task,%curptr | get initial thread...
70 lea init_thread_union+THREAD_SIZE,%sp | ...and its stack.
72 /* Point MSP at an invalid page to trap if it's used. --m */
76 movsb %d0,(AC_SEGMAP+0x0)