Browse Source

Added copy_phys_to_phys

tags/v0.9.3
Michael Brown 19 years ago
parent
commit
479fb900a1
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/arch/i386/include/virtaddr.h

+ 5
- 0
src/arch/i386/include/virtaddr.h View File

@@ -54,6 +54,11 @@ static inline void copy_from_phys ( void *dest, physaddr_t src, size_t len ) {
54 54
 	memcpy ( dest, phys_to_virt ( src ), len );
55 55
 }
56 56
 
57
+static inline void copy_phys_to_phys ( physaddr_t dest, physaddr_t src,
58
+				       size_t len ) {
59
+	memcpy ( phys_to_virt ( dest ), phys_to_virt ( src ), len );
60
+}
61
+
57 62
 #else /* KEEP_IT_REAL */
58 63
 
59 64
 /*

Loading…
Cancel
Save