From 0ff80b477dcff0726ebdbed95e8a93971e59e82b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 8 Apr 2005 15:01:17 +0000 Subject: Merged mcb30-realmode-redesign back to HEAD --- src/arch/i386/include/io.h | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'src/arch/i386/include/io.h') diff --git a/src/arch/i386/include/io.h b/src/arch/i386/include/io.h index e351a0c1..5b6a6243 100644 --- a/src/arch/i386/include/io.h +++ b/src/arch/i386/include/io.h @@ -1,22 +1,8 @@ #ifndef ETHERBOOT_IO_H #define ETHERBOOT_IO_H - -/* Amount of relocation etherboot is experiencing */ -extern unsigned long virt_offset; - -/* Don't require identity mapped physical memory, - * osloader.c is the only valid user at the moment. - */ -static inline unsigned long virt_to_phys(volatile const void *virt_addr) -{ - return ((unsigned long)virt_addr) + virt_offset; -} - -static inline void *phys_to_virt(unsigned long phys_addr) -{ - return (void *)(phys_addr - virt_offset); -} +#include "compiler.h" +#include "virtaddr.h" /* virt_to_bus converts an addresss inside of etherboot [_start, _end] * into a memory access cards can use. -- cgit v1.2.3-55-g7522