diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2024-04-08 20:09:19 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2024-04-08 20:09:19 +0000 |
commit | a16e2c831fcd78a589fb6f28cc427b781f4cadad (patch) | |
tree | 99f857cd4d46be1d700b3bc1b935471471ee22e6 /sys | |
parent | 0e9f4ea905700047763675a51fb22c0a08b07c7f (diff) |
Stop redeclaring ENTRY, the <machine/asm.h> flavour is as good as we need it.
While there, replace inlined NENTRY by actual use of that macro.
ok kettenis@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/sparc64/locore.s | 54 |
1 files changed, 7 insertions, 47 deletions
diff --git a/sys/arch/sparc64/sparc64/locore.s b/sys/arch/sparc64/sparc64/locore.s index 79992af2234..1ff66746066 100644 --- a/sys/arch/sparc64/sparc64/locore.s +++ b/sys/arch/sparc64/sparc64/locore.s @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.s,v 1.221 2024/04/08 20:08:19 miod Exp $ */ +/* $OpenBSD: locore.s,v 1.222 2024/04/08 20:09:18 miod Exp $ */ /* $NetBSD: locore.s,v 1.137 2001/08/13 06:10:10 jdolecek Exp $ */ /* @@ -3924,10 +3924,7 @@ END(cpu_mp_startup) * OpenFirmware entry point */ .align 8 - .globl openfirmware - .proc 1 - FTYPE(openfirmware) -openfirmware: +NENTRY(openfirmware) sethi %hi(romp), %o4 ldx [%o4+%lo(romp)], %o4 save %sp, -CC64FSZ, %sp @@ -3967,10 +3964,7 @@ END(openfirmware) * */ .align 8 - .globl sp_tlb_flush_pte - .proc 1 - FTYPE(sp_tlb_flush_pte) -sp_tlb_flush_pte: +NENTRY(sp_tlb_flush_pte) #ifdef HORRID_III_HACK rdpr %pstate, %o5 andn %o5, PSTATE_IE, %o4 @@ -4022,10 +4016,7 @@ END(sp_tlb_flush_pte) * */ .align 8 - .globl sp_tlb_flush_ctx - .proc 1 - FTYPE(sp_tlb_flush_ctx) -sp_tlb_flush_ctx: +NENTRY(sp_tlb_flush_ctx) #ifdef HORRID_III_HACK rdpr %pstate, %o5 andn %o5, PSTATE_IE, %o4 @@ -4074,11 +4065,7 @@ END(sp_tlb_flush_ctx) * */ .align 8 - .globl us_dcache_flush_page - .proc 1 - FTYPE(us_dcache_flush_page) -us_dcache_flush_page: - +NENTRY(us_dcache_flush_page) mov -1, %o1 ! Generate mask for tag: bits [29..2] srlx %o0, 13-2, %o2 ! Tag is VA bits <40:13> in bits <29:2> clr %o4 @@ -4114,10 +4101,7 @@ dlflush2: END(us_dcache_flush_page) .align 8 - .globl us3_dcache_flush_page - .proc 1 - FTYPE(us3_dcache_flush_page) -us3_dcache_flush_page: +NENTRY(us3_dcache_flush_page) ldxa [%g0] ASI_MCCR, %o1 btst MCCR_DCACHE_EN, %o1 bz,pn %icc, 1f @@ -4149,10 +4133,7 @@ END(no_dcache_flush_page) * */ .align 8 - .globl cache_flush_virt - .proc 1 - FTYPE(cache_flush_virt) -cache_flush_virt: +NENTRY(cache_flush_virt) brz,pn %o1, 2f ! What? nothing to clear? add %o0, %o1, %o2 mov 0x1ff, %o3 @@ -4311,27 +4292,6 @@ sigfillsiz: /* * Primitives */ -#ifdef ENTRY -#undef ENTRY -#endif /* ENTRY */ - -#ifdef GPROF - .globl _mcount -#define ENTRY(x) \ - .globl x; x: ; \ - .data; \ - .align 8; \ -0: .uaword 0; .uaword 0; \ - .text; \ - save %sp, -CC64FSZ, %sp; \ - sethi %hi(0b), %o0; \ - call _mcount; \ - or %o0, %lo(0b), %o0; \ - restore -#else /* GPROF */ -#define ENTRY(x) .globl x; x: -#endif /* GPROF */ -#define ALTENTRY(x) .globl x; x: /* * getfp() - get stack frame pointer |