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 /usr/src/bar.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 'usr/src/bar.S')
| -rw-r--r-- | usr/src/bar.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/bar.S b/usr/src/bar.S index 09c68e3..ee86b3e 100644 --- a/usr/src/bar.S +++ b/usr/src/bar.S @@ -2,8 +2,8 @@ .text _start: - li a0, 1 - la a1, bar + li a7, 1 + la a0, bar ecall .Loop: j .Loop |
