summaryrefslogtreecommitdiffstats
path: root/src/arch
diff options
context:
space:
mode:
authorMichael Brown2005-05-17 15:34:57 +0200
committerMichael Brown2005-05-17 15:34:57 +0200
commit479fb900a11c2867c6cdc37a6c3f044ba375e201 (patch)
tree0436502cea3e8f28d965bebb7b69780dc0686534 /src/arch
parentAdded "image" directory (diff)
downloadipxe-479fb900a11c2867c6cdc37a6c3f044ba375e201.tar.gz
ipxe-479fb900a11c2867c6cdc37a6c3f044ba375e201.tar.xz
ipxe-479fb900a11c2867c6cdc37a6c3f044ba375e201.zip
Added copy_phys_to_phys
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/i386/include/virtaddr.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/i386/include/virtaddr.h b/src/arch/i386/include/virtaddr.h
index 06625591..d48b6c6c 100644
--- a/src/arch/i386/include/virtaddr.h
+++ b/src/arch/i386/include/virtaddr.h
@@ -54,6 +54,11 @@ static inline void copy_from_phys ( void *dest, physaddr_t src, size_t len ) {
memcpy ( dest, phys_to_virt ( src ), len );
}
+static inline void copy_phys_to_phys ( physaddr_t dest, physaddr_t src,
+ size_t len ) {
+ memcpy ( phys_to_virt ( dest ), phys_to_virt ( src ), len );
+}
+
#else /* KEEP_IT_REAL */
/*