瀏覽代碼

[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 年之前
父節點
當前提交
992bbf309c
共有 1 個檔案被更改,包括 2 行新增21 行删除
  1. 2
    21
      src/arch/i386/include/virtaddr.h

+ 2
- 21
src/arch/i386/include/virtaddr.h 查看文件

@@ -19,9 +19,6 @@
19 19
 
20 20
 #ifndef ASSEMBLY
21 21
 
22
-#include "stdint.h"
23
-#include "string.h"
24
-
25 22
 #ifndef KEEP_IT_REAL
26 23
 
27 24
 /*
@@ -32,10 +29,6 @@
32 29
  *
33 30
  */
34 31
 
35
-/* C-callable function prototypes */
36
-
37
-extern void relocate_to ( uint32_t new_phys_addr );
38
-
39 32
 /* Variables in virtaddr.S */
40 33
 extern unsigned long virt_offset;
41 34
 
@@ -51,22 +44,10 @@ static inline void * phys_to_virt ( unsigned long phys_addr ) {
51 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 47
 #else /* KEEP_IT_REAL */
69 48
 
49
+#include <stdint.h>
50
+
70 51
 /*
71 52
  * With -DKEEP_IT_REAL, we are in 16-bit real mode with fixed link
72 53
  * addresses and a segmented memory model.  We have separate code and

Loading…
取消
儲存