Rev 2965 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2965 | Rev 2968 | ||
---|---|---|---|
Line 37... | Line 37... | ||
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 | 40 | ||
41 | #include <rtld.h> |
41 | #include <rtld.h> |
- | 42 | #include <dynamic.h> |
|
42 | #include "../../app/iloader/pcb.h" |
43 | #include "../../app/iloader/pcb.h" |
43 | 44 | ||
44 | static void kputint(unsigned i) |
45 | static void kputint(unsigned i) |
45 | { |
46 | { |
46 | unsigned dummy; |
47 | unsigned dummy; |
Line 83... | Line 84... | ||
83 | void _rtld_main(void) |
84 | void _rtld_main(void) |
84 | { |
85 | { |
85 | // test_func(); |
86 | // test_func(); |
86 | 87 | ||
87 | pcb_t *pcb; |
88 | pcb_t *pcb; |
- | 89 | static dyn_info_t dyn_info; |
|
88 | 90 | ||
89 | printf("Hello, world! (from rtld)\n"); |
91 | printf("Hello, world! (from rtld)\n"); |
90 | getchar(); |
92 | getchar(); |
91 | printf("Run program..\n"); |
93 | printf("Run program..\n"); |
92 | 94 | ||
93 | pcb = (pcb_t *)PCB_ADDRESS; |
95 | pcb = (pcb_t *)PCB_ADDRESS; |
- | 96 | dynamic_parse(pcb->dynamic, 0, &dyn_info); |
|
94 | pcb->entry(); |
97 | pcb->entry(); |
95 | } |
98 | } |
96 | 99 | ||
97 | /** @} |
100 | /** @} |
98 | */ |
101 | */ |