diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2010-07-08 17:42:40 -0500 |
---|---|---|
committer | Patrick Williams <iawillia@us.ibm.com> | 2010-07-08 17:42:40 -0500 |
commit | 204c3d248426c2ba0b332c05994d67a80f49f958 (patch) | |
tree | d0bbf0ca1b17349458cc938fd08846fa1c74e2ff /src/sys | |
parent | 2c2101232adf2b134cf408f05f00a21dc5b8b0f3 (diff) | |
download | talos-hostboot-204c3d248426c2ba0b332c05994d67a80f49f958.tar.gz talos-hostboot-204c3d248426c2ba0b332c05994d67a80f49f958.zip |
MMIO mapping support and syscalls.
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/init/init_main.C | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sys/init/init_main.C b/src/sys/init/init_main.C index 91c30bee4..4be986ba7 100644 --- a/src/sys/init/init_main.C +++ b/src/sys/init/init_main.C @@ -3,6 +3,7 @@ #include <sys/task.h> #include <sys/mutex.h> #include <sys/msg.h> +#include <sys/mmio.h> mutex_t global_mutex; @@ -24,7 +25,10 @@ void init_main(void* unused) printk("Bringing up VFS..."); task_create(&vfs_main, NULL); task_yield(); // TODO... add a barrier to ensure VFS is fully up. - + + uint64_t* mmio_addr = (uint64_t*) mmio_map((void*)0x800000000, 1); + printk("MMIO Access %llx\n", *mmio_addr); + global_mutex = mutex_create(); msg_q_t msgq = msg_q_create(); |