2
0
mirror of https://github.com/xcat2/xNBA.git synced 2026-06-19 18:10:43 +00:00
Files
xNBA/src/config/defaults/linux.h
T
Piotr Jaroszyński a320085750 [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>
2010-08-19 12:35:28 +01:00

17 lines
246 B
C

#ifndef CONFIG_DEFAULTS_LINUX_H
#define CONFIG_DEFAULTS_LINUX_H
/** @file
*
* Configuration defaults for linux
*
*/
#define CONSOLE_LINUX
#define TIMER_LINUX
#define UACCESS_LINUX
#define IMAGE_SCRIPT
#endif /* CONFIG_DEFAULTS_LINUX_H */