diff options
author | Alexis211 <alexis211@gmail.com> | 2010-03-02 17:21:32 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2010-03-02 17:21:32 +0100 |
commit | 6266a24cd2f71a0bad0e55c1eedd480790868c0f (patch) | |
tree | cc0c8c9f36ffa29ee3a1aa3ebafaff05f654e442 /src/kernel/linker | |
parent | 3e1998280319e8060e797ca39b3b0b1bc766d569 (diff) | |
download | TCE-6266a24cd2f71a0bad0e55c1eedd480790868c0f.tar.gz TCE-6266a24cd2f71a0bad0e55c1eedd480790868c0f.zip |
old uncommited changes commited
Diffstat (limited to 'src/kernel/linker')
-rw-r--r-- | src/kernel/linker/elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/linker/elf.c b/src/kernel/linker/elf.c index 59f4bdd..bbf4906 100644 --- a/src/kernel/linker/elf.c +++ b/src/kernel/linker/elf.c @@ -21,7 +21,7 @@ thread_entry elf_load(uint8_t *data, struct process* process) { phdr = (struct elf_phdr*)((uint8_t*)(data + ehdr->e_phoff)); for (i = 0; i < ehdr->e_phnum; i++) { if (phdr[i].p_type == PT_LOAD) { - seg_map(simpleseg_make(phdr[i].p_vaddr, phdr[i].p_memsz, (phdr[i].p_flags & PF_W) != 0), process->pagedir); + seg_map(simpleseg_make(phdr[i].p_vaddr, phdr[i].p_memsz, (phdr[i].p_flags & PF_W) != 0), process->pagedir, 0); memcpy((uint8_t*)phdr[i].p_vaddr, data + phdr[i].p_offset, phdr[i].p_filesz); if (phdr[i].p_memsz > phdr[i].p_filesz) { memset((uint8_t*)phdr[i].p_vaddr + phdr[i].p_memsz, 0, phdr[i].p_memsz - phdr[i].p_filesz); |