From c3aa832bc3ee3e3ee1f9fa9d2edbf776abf5ce92 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Fri, 8 Feb 2019 19:01:13 +0200 Subject: arch/x86: Drop some ROMCC remains MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I62da8d0461774db8256e82deae0d5fe075f3faed Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/31293 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- src/arch/x86/include/arch/io.h | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'src/arch') diff --git a/src/arch/x86/include/arch/io.h b/src/arch/x86/include/arch/io.h index 4050a4798a..f62dc6cf96 100644 --- a/src/arch/x86/include/arch/io.h +++ b/src/arch/x86/include/arch/io.h @@ -203,35 +203,6 @@ static __always_inline void write64(volatile void *addr, } #endif -/* Conflicts with definition in lib.h */ -#if defined(__ROMCC__) -static inline int log2(u32 value) -{ - unsigned int r = 0; - __asm__ volatile ( - "bsrl %1, %0\n\t" - "jnz 1f\n\t" - "movl $-1, %0\n\t" - "1:\n\t" - : "=r" (r) : "r" (value)); - return r; - -} - -static inline int __ffs(u32 value) -{ - unsigned int r = 0; - __asm__ volatile ( - "bsfl %1, %0\n\t" - "jnz 1f\n\t" - "movl $-1, %0\n\t" - "1:\n\t" - : "=r" (r) : "r" (value)); - return r; - -} -#endif - #ifdef __SIMPLE_DEVICE__ #define PCI_DEV(SEGBUS, DEV, FN) ( \ -- cgit v1.2.3