Browse Source

[i386] Remove obsolete functions from virtaddr.h

The copy_{to,from}_phys() functions were obsoleted long ago by
copy_{to,from}_user().

relocate_to() also disappeared some time ago.
tags/v0.9.6
Michael Brown 16 years ago
parent
commit
992bbf309c
1 changed files with 2 additions and 21 deletions
  1. 2
    21
      src/arch/i386/include/virtaddr.h

+ 2
- 21
src/arch/i386/include/virtaddr.h View File

19
 
19
 
20
 #ifndef ASSEMBLY
20
 #ifndef ASSEMBLY
21
 
21
 
22
-#include "stdint.h"
23
-#include "string.h"
24
-
25
 #ifndef KEEP_IT_REAL
22
 #ifndef KEEP_IT_REAL
26
 
23
 
27
 /*
24
 /*
32
  *
29
  *
33
  */
30
  */
34
 
31
 
35
-/* C-callable function prototypes */
36
-
37
-extern void relocate_to ( uint32_t new_phys_addr );
38
-
39
 /* Variables in virtaddr.S */
32
 /* Variables in virtaddr.S */
40
 extern unsigned long virt_offset;
33
 extern unsigned long virt_offset;
41
 
34
 
51
 	return ( void * ) ( phys_addr - virt_offset );
44
 	return ( void * ) ( phys_addr - virt_offset );
52
 }
45
 }
53
 
46
 
54
-static inline void copy_to_phys ( physaddr_t dest, const void *src,
55
-				  size_t len ) {
56
-	memcpy ( phys_to_virt ( dest ), src, len );
57
-}
58
-
59
-static inline void copy_from_phys ( void *dest, physaddr_t src, size_t len ) {
60
-	memcpy ( dest, phys_to_virt ( src ), len );
61
-}
62
-
63
-static inline void copy_phys_to_phys ( physaddr_t dest, physaddr_t src,
64
-				       size_t len ) {
65
-	memcpy ( phys_to_virt ( dest ), phys_to_virt ( src ), len );
66
-}
67
-
68
 #else /* KEEP_IT_REAL */
47
 #else /* KEEP_IT_REAL */
69
 
48
 
49
+#include <stdint.h>
50
+
70
 /*
51
 /*
71
  * With -DKEEP_IT_REAL, we are in 16-bit real mode with fixed link
52
  * With -DKEEP_IT_REAL, we are in 16-bit real mode with fixed link
72
  * addresses and a segmented memory model.  We have separate code and
53
  * addresses and a segmented memory model.  We have separate code and

Loading…
Cancel
Save