Skip to content
Snippets Groups Projects
Commit 9e7379fc authored by Edward Pierzchalski's avatar Edward Pierzchalski
Browse files

RISCV: avoid unsized arrays.

The C parser will fail to process an array variable if it isn't
eventually given a size. `trap_entry` is the symbol for an ASM
function that we don't explicitly call from C anyway, so we only need
the symbol to contain the relevant pointer value.
parent ea365a85
No related branches found
No related tags found
No related merge requests found
......@@ -178,8 +178,10 @@ BOOT_CODE static void init_irqs(cap_t root_cnode_cap)
write_slot(SLOT_PTR(pptr_of_cap(root_cnode_cap), seL4_CapIRQControl), cap_irq_control_cap_new());
}
/* ASM symbol for the CPU initialisation trap. */
extern char trap_entry[1];
/* This and only this function initialises the CPU. It does NOT initialise any kernel state. */
extern char trap_entry[];
BOOT_CODE static void init_cpu(void)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment