summaryrefslogtreecommitdiff
path: root/src/kernel/linker/elf.c
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2010-02-09 12:44:06 +0100
committerAlexis211 <alexis211@gmail.com>2010-02-09 12:44:06 +0100
commit4886faa3dce410543eda2139221e03959e73a747 (patch)
treee74cedd7b8a89005c802ddd3ce38f7ab5b8c4fb4 /src/kernel/linker/elf.c
parent6a52d123672b7a00af6e22b4c138205be2042a94 (diff)
downloadTCE-4886faa3dce410543eda2139221e03959e73a747.tar.gz
TCE-4886faa3dce410543eda2139221e03959e73a747.zip
Added user mode support and monitor_writeDec
Diffstat (limited to 'src/kernel/linker/elf.c')
-rw-r--r--src/kernel/linker/elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/linker/elf.c b/src/kernel/linker/elf.c
index dc7481b..59f4bdd 100644
--- a/src/kernel/linker/elf.c
+++ b/src/kernel/linker/elf.c
@@ -31,10 +31,10 @@ thread_entry elf_load(uint8_t *data, struct process* process) {
return (thread_entry)ehdr->e_entry;
}
-struct process* elf_exec(uint8_t *data) {
+struct process* elf_exec(uint8_t *data, int privilege) {
if (elf_check(data)) return 0;
- struct process* p = process_new(0, 0, PL_DRIVER);
+ struct process* p = process_new(0, 0, privilege);
thread_entry e = elf_load(data, p);