From 62c214f9b288025ca595598d0e6c4608b4986466 Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Sat, 1 Jun 2013 21:23:57 +0000 Subject: - remove an __mips_o32 block which'll never be used on openbsd - remove some defines intended for backward compat, but that are unused now. ok uebayasi@ --- sys/arch/octeon/include/octeonvar.h | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/sys/arch/octeon/include/octeonvar.h b/sys/arch/octeon/include/octeonvar.h index d107a8d9fe3..07248255c62 100644 --- a/sys/arch/octeon/include/octeonvar.h +++ b/sys/arch/octeon/include/octeonvar.h @@ -343,13 +343,6 @@ ffs64(uint64_t val) #define OCTEON_SYNCW __asm __volatile (".word 0x10f" : : ) #define OCTEON_SYNC OCTEON_SYNCCOMMON(sync) #define OCTEON_SYNCWS __asm __volatile (".word 0x14f" : : ) -/* XXX backward compatibility */ -#if 1 -#define OCT_SYNCIOBDMA OCTEON_SYNCIOBDMA -#define OCT_SYNCW OCTEON_SYNCW -#define OCT_SYNC OCTEON_SYNC -#define OCT_SYNCWS OCTEON_SYNCWS -#endif static inline uint64_t octeon_xkphys_read_8(paddr_t address) @@ -425,22 +418,6 @@ octeon_restore_status(uint32_t s) static inline uint64_t octeon_get_cycles(void) { -#if defined(__mips_o32) - uint32_t s, lo, hi; - - s = octeon_disable_interrupt((void *)0); - __asm __volatile ( - _ASM_PROLOGUE_MIPS64 - " dmfc0 %[lo], $9, 6 \n" - " add %[hi], %[lo], $0 \n" - " srl %[hi], 32 \n" - " sll %[lo], 32 \n" - " srl %[lo], 32 \n" - _ASM_EPILOGUE - : [lo]"=&r"(lo), [hi]"=&r"(hi)); - octeon_restore_status(s); - return ((uint64_t)hi << 32) + (uint64_t)lo; -#else uint64_t tmp; __asm __volatile ( @@ -449,7 +426,6 @@ octeon_get_cycles(void) _ASM_EPILOGUE : [tmp]"=&r"(tmp)); return tmp; -#endif } /* -------------------------------------------------------------------------- */ -- cgit v1.2.3