summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/include
diff options
context:
space:
mode:
authorMichael Brown2005-05-19 15:02:38 +0200
committerMichael Brown2005-05-19 15:02:38 +0200
commitdd475a9b8c02d27cf8f555bc56de72300c6750f0 (patch)
tree5d1f2bd4c0181965350bb77be8814640934664e5 /src/arch/i386/include
parentAdd image formats (didn't check in properly to gpxe for some reason) (diff)
downloadipxe-dd475a9b8c02d27cf8f555bc56de72300c6750f0.tar.gz
ipxe-dd475a9b8c02d27cf8f555bc56de72300c6750f0.tar.xz
ipxe-dd475a9b8c02d27cf8f555bc56de72300c6750f0.zip
Add a const to avoid a warning
Diffstat (limited to 'src/arch/i386/include')
-rw-r--r--src/arch/i386/include/virtaddr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/i386/include/virtaddr.h b/src/arch/i386/include/virtaddr.h
index d48b6c6c..4d248b0a 100644
--- 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 );
}