Added copy_phys_to_phys
authorMichael Brown <mcb30@etherboot.org>
Tue, 17 May 2005 13:34:57 +0000 (13:34 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 17 May 2005 13:34:57 +0000 (13:34 +0000)
src/arch/i386/include/virtaddr.h

index 0662559..d48b6c6 100644 (file)
@@ -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 */
 
 /*