summaryrefslogtreecommitdiff
path: root/startup/startup.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-11-07 16:15:17 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-11-21 05:55:40 +0100
commit41eda58f8bfa602f7aa82157b5d1bd3c6ec30466 (patch)
tree3801095bf04d29ed3f25769d5895c277f2834a10 /startup/startup.c
parent8bee9fcf5fc9e47e1aac0a670cc8d5e3fba8a7dd (diff)
startup: also open `console' for reading
* startup/startup.c (main): Also open `console' for reading.
Diffstat (limited to 'startup/startup.c')
-rw-r--r--startup/startup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/startup/startup.c b/startup/startup.c
index ff58270a..e1770752 100644
--- a/startup/startup.c
+++ b/startup/startup.c
@@ -557,7 +557,7 @@ main (int argc, char **argv, char **envp)
master device ports, and the console. */
if (task_get_bootstrap_port (mach_task_self (), &bootport)
|| fsys_getpriv (bootport, &host_priv, &device_master, &fstask)
- || device_open (device_master, D_WRITE, "console", &consdev))
+ || device_open (device_master, D_READ|D_WRITE, "console", &consdev))
crash_mach ();
wire_task_self ();