diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-04-06 10:47:48 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-04-06 10:47:48 -0700 |
commit | 0eface07b9c2a565b2fcf95fff3fc755811bfb4e (patch) | |
tree | 888bdd1529c68381a3074f6b677d7dc13bfaaf32 /pk | |
parent | 10e9fa36090a73a9416012ebbf36eec5512e37c1 (diff) | |
download | riscv-pk-0eface07b9c2a565b2fcf95fff3fc755811bfb4e.zip riscv-pk-0eface07b9c2a565b2fcf95fff3fc755811bfb4e.tar.gz riscv-pk-0eface07b9c2a565b2fcf95fff3fc755811bfb4e.tar.bz2 |
Use panic, not die, to terminate elf loader
Diffstat (limited to 'pk')
-rw-r--r-- | pk/elf.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,6 +1,7 @@ // See LICENSE for license details. #include "mmap.h" +#include "pk.h" #include "mtrap.h" #include "boot.h" #include "bits.h" @@ -69,5 +70,5 @@ void load_elf(const char* fn, elf_info* info) return; fail: - die("couldn't open ELF program: %s!", fn); + panic("couldn't open ELF program: %s!", fn); } |