Rev 3772 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3772 | Rev 4347 | ||
|---|---|---|---|
| Line 36... | Line 36... | ||
| 36 | 36 | ||
| 37 | #include <stdio.h> |
37 | #include <stdio.h> |
| 38 | #include <unistd.h> |
38 | #include <unistd.h> |
| 39 | #include <fcntl.h> |
39 | #include <fcntl.h> |
| 40 | #include <loader/pcb.h> |
40 | #include <loader/pcb.h> |
| - | 41 | #include <console.h> |
|
| 41 | 42 | ||
| 42 | /* from librtld */ |
43 | /* from librtld */ |
| 43 | #include <rtld.h> |
44 | #include <rtld.h> |
| 44 | #include <dynamic.h> |
45 | #include <dynamic.h> |
| 45 | #include <elf_load.h> |
46 | #include <elf_load.h> |
| Line 104... | Line 105... | ||
| 104 | * Finally, run the main program. |
105 | * Finally, run the main program. |
| 105 | */ |
106 | */ |
| 106 | DPRINTF("Run program.. (at 0x%lx)\n", (uintptr_t)__pcb->entry); |
107 | DPRINTF("Run program.. (at 0x%lx)\n", (uintptr_t)__pcb->entry); |
| 107 | 108 | ||
| 108 | #ifndef RTLD_DEBUG |
109 | #ifndef RTLD_DEBUG |
| 109 | close_console(); |
110 | console_close(); |
| 110 | #endif |
111 | #endif |
| 111 | program_run(__pcb->entry, __pcb); |
112 | program_run(__pcb->entry, __pcb); |
| 112 | 113 | ||
| 113 | /* not reached */ |
114 | /* not reached */ |
| 114 | return 0; |
115 | return 0; |