Commit aed79199 authored by Lucas Russo's avatar Lucas Russo

include/sm_io_mod_dispatch.h: align linker structure to 16 bytes

Not sure why, but anything less than that
causes segmentation fault on accessing
the structure.

This should be related to alignment issues.
parent 8af2d016
......@@ -18,7 +18,7 @@ typedef struct {
uint32_t id;
const char *name;
const smio_bootstrap_ops_t *bootstrap_ops;
} smio_mod_dispatch_t;
} __attribute__ ((aligned (16))) smio_mod_dispatch_t;
/*
* WARNING! Using SMIO_MOD_DECLARE requires .smio_mod_dispatch section in linker script
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment