Skip to content

Commit

Permalink
capdl-loader-app: adapt to sel4muslcsys change
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Heider <[email protected]>
  • Loading branch information
Axel Heider committed Nov 14, 2023
1 parent 8192156 commit 3f601ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions capdl-loader-app/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <string.h>
#include <stdint.h>
#include <inttypes.h>
#include <muslcsys/sys_morecore.h>
#include <sel4platsupport/platsupport.h>
#include <cpio/cpio.h>
#include <simple-default/simple-default.h>
Expand Down Expand Up @@ -2117,15 +2118,14 @@ static void init_system(CDL_Model *spec)
* for stdin, stdout, and stderr. The heap pool base address and size is
* expected to be page aligned.
*/
extern char *morecore_area;
extern size_t morecore_size;
static char ALIGN(PAGE_SIZE_4K) debug_libc_morecore_area[PAGE_SIZE_4K];

static void CONSTRUCTOR(MUSLCSYS_WITH_VSYSCALL_PRIORITY) init_bootinfo(void)
{
/* Init memory area for musl. */
morecore_area = debug_libc_morecore_area;
morecore_size = sizeof(debug_libc_morecore_area);
sel4muslcsys_setup_morecore_region(
debug_libc_morecore_area,
sizeof(debug_libc_morecore_area));

/* Allow us to print via seL4_Debug_PutChar. */
platsupport_serial_setup_bootinfo_failsafe();
Expand Down

0 comments on commit 3f601ea

Please sign in to comment.