diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-05-08 17:21:27 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-05-08 17:21:27 -0700 |
commit | ac7853a1bc5fcbee820a4f1472aa59eaf074e4e9 (patch) | |
tree | 9675526f3a7f40400e6db0ec6ad625d0d6f869c2 /pk/minit.c | |
parent | 33e738d643b360d05ffbeaf5449d2a9117f67125 (diff) | |
download | pk-ac7853a1bc5fcbee820a4f1472aa59eaf074e4e9.zip pk-ac7853a1bc5fcbee820a4f1472aa59eaf074e4e9.tar.gz pk-ac7853a1bc5fcbee820a4f1472aa59eaf074e4e9.tar.bz2 |
Initialize the mailbox on boot
This fixes a bug when running on HW.
Diffstat (limited to 'pk/minit.c')
-rw-r--r-- | pk/minit.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -66,8 +66,14 @@ static void fp_init() #endif } +static void mailbox_init() +{ + memset(MAILBOX(), 0, MAILBOX_SIZE); +} + void machine_init() { + mailbox_init(); file_init(); struct mainvars arg_buffer; |