aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorPiotr Jaroszyński <p.jaroszynski@gmail.com>2010-05-26 18:55:06 +0200
committerMichael Brown <mcb30@ipxe.org>2010-08-19 12:35:28 +0100
commita320085750c421782e64c266c4c3f66a408a35e1 (patch)
tree8bcf417e7a2a7c443ca8aaae0280f75c395787a2 /src/config
parent01a4c244db92d0906abc0da2092fc36c73574d1b (diff)
downloadipxe-a320085750c421782e64c266c4c3f66a408a35e1.zip
ipxe-a320085750c421782e64c266c4c3f66a408a35e1.tar.gz
ipxe-a320085750c421782e64c266c4c3f66a408a35e1.tar.bz2
[linux] Add uaccess
Add user access API for linux. On linux userspace virtual == user == phys addresses. Physical addresses also being the same is wrong, but there is no general way of converting userspace addresses to physical as what appears to be contiguous in userspace is physically fragmented. Currently only the DMA memory is special-cased, but its conversion to bus addresses is done in phys_to_bus. This is known to break virtio as it is passing phys addresses to the virtual device. Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/config')
-rw-r--r--src/config/defaults/linux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config/defaults/linux.h b/src/config/defaults/linux.h
index 67f53a3..7f180b5 100644
--- a/src/config/defaults/linux.h
+++ b/src/config/defaults/linux.h
@@ -9,6 +9,7 @@
#define CONSOLE_LINUX
#define TIMER_LINUX
+#define UACCESS_LINUX
#define IMAGE_SCRIPT