http://git.etherboot.org
/
people
/
xl0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2930fe8
)
Add a const to avoid a warning
author
Michael Brown
<mcb30@etherboot.org>
Thu, 19 May 2005 13:02:38 +0000
(13:02 +0000)
committer
Michael Brown
<mcb30@etherboot.org>
Thu, 19 May 2005 13:02:38 +0000
(13:02 +0000)
src/arch/i386/include/virtaddr.h
patch
|
blob
|
history
diff --git
a/src/arch/i386/include/virtaddr.h
b/src/arch/i386/include/virtaddr.h
index
d48b6c6
..
4d248b0
100644
(file)
--- a/
src/arch/i386/include/virtaddr.h
+++ b/
src/arch/i386/include/virtaddr.h
@@
-46,7
+46,8
@@
static inline void * phys_to_virt ( unsigned long phys_addr ) {
return ( void * ) ( phys_addr - virt_offset );
}
-static inline void copy_to_phys ( physaddr_t dest, void *src, size_t len ) {
+static inline void copy_to_phys ( physaddr_t dest, const void *src,
+ size_t len ) {
memcpy ( phys_to_virt ( dest ), src, len );
}