0b1bfc4986
no particular reason for them to be implemented in assembler and having them in C allows easier extension as well as using more C macros and {d,i}tlb_slot_max rather than hard-coding magic (and actually spitfire-only) values. - Fix the compilation of pmap_print_tte(). - Change pmap_print_tlb() to use ldxa() rather than re-rolling it inline as well as TLB_DAR_SLOT and {d,i}tlb_slot_max rather than hardcoding magic (and actually spitfire-only) values. - While at it, suffix the above mentioned functions with "_sun4u" to underline they're architecture-specific. - Use __FBSDID and macros instead of magic values in locore.S. - Remove unused includes and smp_stack in locore.S.
43 lines
853 B
ArmAsm
43 lines
853 B
ArmAsm
/*-
|
|
* Initial implementation:
|
|
* Copyright (c) 2001 Robert Drehmel
|
|
* All rights reserved.
|
|
*
|
|
* As long as the above copyright statement and this notice remain
|
|
* unchanged, you can do what ever you want with this file.
|
|
*/
|
|
|
|
#include <machine/asm.h>
|
|
__FBSDID("$FreeBSD$");
|
|
|
|
#define LOCORE
|
|
|
|
#include <machine/frame.h>
|
|
#include <machine/fsr.h>
|
|
#include <machine/intr_machdep.h>
|
|
#include <machine/pstate.h>
|
|
|
|
#define PAGE_SIZE 8192
|
|
#define PAGE_SHIFT 13
|
|
|
|
#define STACK_SIZE (2 * PAGE_SIZE)
|
|
|
|
ENTRY(_start)
|
|
/* Limit interrupts. */
|
|
wrpr %g0, PIL_TICK - 1, %pil
|
|
|
|
/*
|
|
* PSTATE: privileged, interrupts enabled, floating point
|
|
* unit enabled
|
|
*/
|
|
wrpr %g0, PSTATE_PRIV | PSTATE_IE | PSTATE_PEF, %pstate
|
|
wr %g0, FPRS_FEF, %fprs
|
|
|
|
setx stack + STACK_SIZE - SPOFF - CCFSZ, %l7, %l6
|
|
mov %l6, %sp
|
|
call main
|
|
mov %o4, %o0
|
|
sir
|
|
|
|
.comm stack, STACK_SIZE, 32
|