diff options
author | Andrew Waterman <waterman@s144.Millennium.Berkeley.EDU> | 2011-04-08 01:57:38 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@s144.Millennium.Berkeley.EDU> | 2011-04-08 02:11:57 -0700 |
commit | 666ae0c9e5355e578c2487b81f48b4b74cc16dda (patch) | |
tree | c8e5ddbb6cd1dfe2c4fe0e5995c57efaf65d4299 /pk/pk.h | |
parent | c6fef75003abf36c618b9fff4f64f3bda76af804 (diff) | |
download | riscv-pk-666ae0c9e5355e578c2487b81f48b4b74cc16dda.zip riscv-pk-666ae0c9e5355e578c2487b81f48b4b74cc16dda.tar.gz riscv-pk-666ae0c9e5355e578c2487b81f48b4b74cc16dda.tar.bz2 |
[pk,fesvr] pk now loads elfs itself
this allows it to detect 32b binaries
Diffstat (limited to 'pk/pk.h')
-rw-r--r-- | pk/pk.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -29,7 +29,7 @@ int emulate_fp(trapframe_t*); void init_fp(); void printk(const char* s, ...); -void init_tf(trapframe_t*, long pc, long sp); +void init_tf(trapframe_t*, long pc, long sp, int user64); void pop_tf(trapframe_t*); void dump_tf(trapframe_t*); @@ -42,6 +42,8 @@ void boot(); void sys_exit(int code) __attribute__((noreturn)); +long load_elf(const char* fn, int* user64); + static inline void advance_pc(trapframe_t* tf) { tf->epc += 4; |