aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/fs
diff options
context:
space:
mode:
authorMarvin Borner2020-04-29 00:39:24 +0200
committerMarvin Borner2020-04-29 00:39:24 +0200
commit50858d043cbd6f61cc091c6772f981ca2d6cca6b (patch)
tree82afcc2daf9c4b67d29832923283654913490d06 /src/kernel/fs
parent34c752f6fe4f71169172f1b3e46b1eddf69eba6e (diff)
Added basic exec calls for init and started libc
Diffstat (limited to 'src/kernel/fs')
-rw-r--r--src/kernel/fs/elf.c4
-rw-r--r--src/kernel/fs/elf.h2
-rw-r--r--src/kernel/fs/ext2.c2
-rw-r--r--src/kernel/fs/ext2.h2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/kernel/fs/elf.c b/src/kernel/fs/elf.c
index 9ca98f0..a4c78ba 100644
--- a/src/kernel/fs/elf.c
+++ b/src/kernel/fs/elf.c
@@ -40,7 +40,7 @@ struct process *elf_load(char *path)
}
struct process *proc = process_make_new();
- proc->name = "ROOT";
+ proc->name = path;
proc->registers.eip = header->entry;
paging_switch_directory(proc->cr3);
@@ -71,4 +71,4 @@ struct process *elf_load(char *path)
paging_switch_directory(paging_root_directory);
return proc;
-} \ No newline at end of file
+}
diff --git a/src/kernel/fs/elf.h b/src/kernel/fs/elf.h
index 8c7d38a..0fe435b 100644
--- a/src/kernel/fs/elf.h
+++ b/src/kernel/fs/elf.h
@@ -76,4 +76,4 @@ struct elf_program_header {
int is_elf(struct elf_header *header);
struct process *elf_load(char *path);
-#endif \ No newline at end of file
+#endif
diff --git a/src/kernel/fs/ext2.c b/src/kernel/fs/ext2.c
index 5fb0158..4e4f617 100644
--- a/src/kernel/fs/ext2.c
+++ b/src/kernel/fs/ext2.c
@@ -251,4 +251,4 @@ uint8_t *read_file(char *path)
warn("File not found");
return NULL;
}
-} \ No newline at end of file
+}
diff --git a/src/kernel/fs/ext2.h b/src/kernel/fs/ext2.h
index 88515a3..7fbe493 100644
--- a/src/kernel/fs/ext2.h
+++ b/src/kernel/fs/ext2.h
@@ -139,4 +139,4 @@ uint32_t ext2_look_up_path(char *path);
uint8_t *read_file(char *path);
-#endif \ No newline at end of file
+#endif