mirror of
https://github.com/drasko/codezero.git
synced 2026-04-07 12:39:03 +02:00
Kernel updates since December 2009
This commit is contained in:
@@ -6,7 +6,20 @@
|
||||
* Copyright (C) 2007 Bahadir Balban
|
||||
*/
|
||||
|
||||
#define read(val, address) val = *((volatile unsigned int *) address)
|
||||
#define write(val, address) *((volatile unsigned int *) address) = val
|
||||
#if defined (__KERNEL__)
|
||||
|
||||
#include INC_GLUE(memlayout.h)
|
||||
|
||||
#define read(address) *((volatile unsigned int *) (address))
|
||||
#define write(val, address) *((volatile unsigned int *) (address)) = val
|
||||
|
||||
#endif /* ends __KERNEL__ */
|
||||
|
||||
/*
|
||||
* Generic uart virtual address until a file-based console access
|
||||
* is available for userspace
|
||||
*/
|
||||
#define USERSPACE_CONSOLE_VBASE 0xF9800000
|
||||
|
||||
|
||||
#endif /* __ARM_IO_H__ */
|
||||
|
||||
Reference in New Issue
Block a user