Rev 3129 | Rev 3155 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3129 | Rev 3131 | ||
---|---|---|---|
Line 52... | Line 52... | ||
52 | #include <fcntl.h> |
52 | #include <fcntl.h> |
53 | 53 | ||
54 | #include "elf.h" |
54 | #include "elf.h" |
55 | #include "pcb.h" |
55 | #include "pcb.h" |
56 | #include "elf_load.h" |
56 | #include "elf_load.h" |
- | 57 | #include "arch.h" |
|
57 | 58 | ||
58 | static char *error_codes[] = { |
59 | static char *error_codes[] = { |
59 | "no error", |
60 | "no error", |
60 | "invalid image", |
61 | "invalid image", |
61 | "address space error", |
62 | "address space error", |
Line 118... | Line 119... | ||
118 | * @param info Info structure filled earlier by elf_load_file() |
119 | * @param info Info structure filled earlier by elf_load_file() |
119 | */ |
120 | */ |
120 | void elf_run(elf_info_t *info) |
121 | void elf_run(elf_info_t *info) |
121 | { |
122 | { |
122 | printf("entry point: 0x%llx\n", info->entry); |
123 | printf("entry point: 0x%llx\n", info->entry); |
123 | (*info->entry)(); |
124 | //(*info->entry)(); |
- | 125 | program_run(info->entry); |
|
124 | 126 | ||
125 | /* not reached */ |
127 | /* not reached */ |
126 | } |
128 | } |
127 | 129 | ||
128 | /** Create the program control block (PCB). |
130 | /** Create the program control block (PCB). |