From 8231af9d8d759ae89c8214ca2410b0feab9dfb8c Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 22 Nov 2024 07:58:15 +0100 Subject: Add basic parsing for underlying ELF executables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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à --- usr/src/foo.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/src/foo.S') diff --git a/usr/src/foo.S b/usr/src/foo.S index 57e82a1..c26b550 100644 --- a/usr/src/foo.S +++ b/usr/src/foo.S @@ -2,8 +2,8 @@ .text _start: - li a0, 1 - la a1, foo + li a7, 1 + la a0, foo ecall .Loop: j .Loop -- cgit v1.2.3