diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-11-24 23:27:13 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-11-24 23:27:13 +0100 |
| commit | f4986dab75fa612f4f3d525187cd04c029d9bc6b (patch) | |
| tree | c70dd8bd8bd420578bf0a2af01e23ecec89bea0c /include | |
| parent | 1e81d5c0e4503c86f60ee21da76694ac0693a2e3 (diff) | |
| download | fbos-f4986dab75fa612f4f3d525187cd04c029d9bc6b.tar.gz fbos-f4986dab75fa612f4f3d525187cd04c029d9bc6b.zip | |
Accept tasks as a parameter on initrd extraction
This allows this functionality to be properly extracted for unit tests.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/fbos/init.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 <fbos/compiler.h> +#include <fbos/sched.h> // 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); |
