diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-11-22 07:58:15 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-11-22 07:58:15 +0100 |
| commit | 8231af9d8d759ae89c8214ca2410b0feab9dfb8c (patch) | |
| tree | f679c721ad1dd3daa5830da6c10425d2d3b699ab /kernel/head.S | |
| parent | 40ffc517e20c381ce8fdb3a881726a26a52e35db (diff) | |
| download | fbos-8231af9d8d759ae89c8214ca2410b0feab9dfb8c.tar.gz fbos-8231af9d8d759ae89c8214ca2410b0feab9dfb8c.zip | |
Add basic parsing for underlying ELF executables
The given initrd is a CPIO archive of multiple ELF executables. We are
already able to parse the CPIO archive to detect where each file is
located, this commit adds the mapping for each ELF executable to the
corresponding task_struct.
Note that this is still heavily under construction, since we cannot
simply jump into the entry point of an executable as we have not yet
setup the proper layout from performing context switches.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'kernel/head.S')
| -rw-r--r-- | kernel/head.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/head.S b/kernel/head.S index de7852b..9018a8e 100644 --- a/kernel/head.S +++ b/kernel/head.S @@ -43,8 +43,8 @@ _start: csrw sscratch, 0 // Point tp and sp to the init task. - la tp, init_task - la sp, init_task + THREAD_SIZE + la tp, tasks + la sp, tasks + THREAD_SIZE // The `start_kernel` function requires an argument to be passed, which is // the pointer to the `fdt` blob. The bootloader puts this on the `a1` |
