Changeset f798178 in mainline for uspace/srv
- Timestamp:
- 2011-04-30T13:44:28Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4ddbea7
- Parents:
- a71d2630 (diff), 3f461ecf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- uspace/srv/loader
- Files:
-
- 17 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/loader/Makefile
ra71d2630 rf798178 36 36 -include $(COMMON_MAKEFILE) 37 37 -include $(CONFIG_MAKEFILE) 38 -include arch/$(UARCH)/Makefile.inc39 38 40 LINKER_SCRIPT = arch/$(UARCH)/_link.ld 41 EXTRA_CLEAN = $(LINKER_SCRIPT) 39 LINKER_SCRIPT = $(LIBC_PREFIX)/arch/$(UARCH)/_link-loader.ld 42 40 43 41 EXTRA_CFLAGS = -Iinclude -I../../lib/c/rtld/include … … 55 53 56 54 include $(USPACE_PREFIX)/Makefile.common 57 58 $(LINKER_SCRIPT): $(LINKER_SCRIPT).in59 $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@ -
uspace/srv/loader/elf_load.c
ra71d2630 rf798178 2 2 * Copyright (c) 2006 Sergey Bondari 3 3 * Copyright (c) 2006 Jakub Jermar 4 * Copyright (c) 20 08Jiri Svoboda4 * Copyright (c) 2011 Jiri Svoboda 5 5 * All rights reserved. 6 6 * … … 53 53 #include <smc.h> 54 54 #include <loader/pcb.h> 55 #include <entry_point.h> 55 56 56 57 #include "elf.h" 57 58 #include "elf_load.h" 58 #include "arch.h"59 59 60 60 #define DPRINTF(...) -
uspace/srv/loader/main.c
ra71d2630 rf798178 55 55 #include <macros.h> 56 56 #include <loader/pcb.h> 57 #include <entry_point.h> 57 58 #include <errno.h> 58 59 #include <async.h> … … 71 72 #define DPRINTF(...) 72 73 73 void program_run(void *entry, pcb_t *pcb);74 74 static int ldr_load_dyn_linked(elf_info_t *p_info); 75 75 … … 394 394 async_answer_0(rid, EOK); 395 395 DPRINTF("Jump to entry point at %p\n", pcb.entry); 396 program_run(prog_info.entry, &pcb);396 entry_point_jmp(prog_info.entry, &pcb); 397 397 398 398 /* Not reached */
Note:
See TracChangeset
for help on using the changeset viewer.