From f4986dab75fa612f4f3d525187cd04c029d9bc6b Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sun, 24 Nov 2024 23:27:13 +0100 Subject: Accept tasks as a parameter on initrd extraction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows this functionality to be properly extracted for unit tests. Signed-off-by: Miquel Sabaté Solà --- include/fbos/init.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/fbos/init.h b/include/fbos/init.h index 711d2cf..f0f1dce 100644 --- a/include/fbos/init.h +++ b/include/fbos/init.h @@ -2,6 +2,7 @@ #define __FBOS_INIT_H #include +#include // Tracks the amount of seconds that have elapsed since activating timer // interrupts. @@ -11,7 +12,8 @@ extern uint64_t seconds_elapsed; // Extract the executables from the initrd that is located at `base_addr` and // has the given `size`. -void extract_initrd(const unsigned char *const base_addr, uint64_t size); +void extract_initrd(const unsigned char *const base_addr, uint64_t size, + struct task_struct tasks[4]); // Setup the interrupt vectors and the SBI timer. void setup_interrupts(void); -- cgit v1.2.3