1 #include <linux/linkage.h>
4 #include <asm/contregs.h>
5 #include <asm/sun3-head.h>
9 ICACHE_ONLY = 0x00000009
10 CACHES_OFF = 0x00000008 | actually a clear and disable --m
11 #define MAS_STACK INT_STACK
14 SUN3_INVALID_PMEG = 255
15 .globl SYMBOL_NAME(bootup_user_stack)
16 .globl SYMBOL_NAME(bootup_kernel_stack)
17 .globl SYMBOL_NAME(pg0)
18 .globl SYMBOL_NAME(swapper_pg_dir)
19 .globl SYMBOL_NAME(kernel_pmd_table)
20 .globl SYMBOL_NAME(availmem)
21 .global SYMBOL_NAME(m68k_pgtable_cachemode)
22 .global SYMBOL_NAME(kpt)
23 | todo: all these should be in bss!
24 SYMBOL_NAME(swapper_pg_dir): .skip 0x2000
25 SYMBOL_NAME(pg0): .skip 0x2000
26 SYMBOL_NAME(kernel_pmd_table): .skip 0x2000
28 .globl SYMBOL_NAME(kernel_pg_dir)
29 .equ SYMBOL_NAME(kernel_pg_dir),SYMBOL_NAME(kernel_pmd_table)
35 /* Firstly, disable interrupts and set up function codes. */
36 movew #PSL_HIGHIPL, %sr
37 moveq #FC_CONTROL, %d0
41 /* Make sure we're in context zero. */
45 /* map everything the bootloader left us into high memory, clean up the
48 lea (AC_SEGMAP+KERNBASE),%a1
52 cmpib #SUN3_INVALID_PMEG, %d1
60 /* Disable caches and jump to high code. */
61 moveq #ICACHE_ONLY,%d0 | Cache disabled until we're ready to enable it
62 movc %d0, %cacr | is this the right value? (yes --m)
65 /* Following code executes at high addresses (0xE000xxx). */
66 1: lea SYMBOL_NAME(init_task_union),%a2 | get initial thread...
67 lea %a2@(KTHREAD_SIZE),%sp | ...and its stack.
69 /* copy bootinfo records from the loader to _end */
70 lea SYMBOL_NAME(_end), %a1
72 /* number of longs to copy */
79 /* Point MSP at an invalid page to trap if it's used. --m */
83 movsb %d0,(AC_SEGMAP+0x0)
85 jbsr SYMBOL_NAME(sun3_init)
87 jbsr SYMBOL_NAME(base_trap_init)
89 jbsr SYMBOL_NAME(start_kernel)
94 SYMBOL_NAME_LABEL(kpt)
96 SYMBOL_NAME_LABEL(availmem)
98 | todo: remove next two. --m
99 SYMBOL_NAME_LABEL(is_medusa)
101 SYMBOL_NAME_LABEL(m68k_pgtable_cachemode)