diff options
| author | Michael Brown | 2005-05-17 15:34:57 +0200 |
|---|---|---|
| committer | Michael Brown | 2005-05-17 15:34:57 +0200 |
| commit | 479fb900a11c2867c6cdc37a6c3f044ba375e201 (patch) | |
| tree | 0436502cea3e8f28d965bebb7b69780dc0686534 | |
| parent | Added "image" directory (diff) | |
| download | ipxe-479fb900a11c2867c6cdc37a6c3f044ba375e201.tar.gz ipxe-479fb900a11c2867c6cdc37a6c3f044ba375e201.tar.xz ipxe-479fb900a11c2867c6cdc37a6c3f044ba375e201.zip | |
Added copy_phys_to_phys
| -rw-r--r-- | src/arch/i386/include/virtaddr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/i386/include/virtaddr.h b/src/arch/i386/include/virtaddr.h index 066255916..d48b6c6cd 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 */ /* |
