Skip to content

Commit

Permalink
temp: Remove static from kernel_device_frames
Browse files Browse the repository at this point in the history
This symbol is possibly optimised out by the compiler because it is
static and usually only has a few entries. The seL4CP tool depends on
this symbol existing in the ELF.

The real solution is to have `c_header.py` or another script that
generates the array to also export the kernel device frames in a
format that is easily readable by external tools.
  • Loading branch information
Ivan-Velickovic committed Jun 16, 2023
1 parent 216320c commit 4542369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/hardware/outputs/c_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
{% endfor %}
{% if len(kernel_regions) > 0 %}
static const kernel_frame_t BOOT_RODATA kernel_device_frames[] = {
const kernel_frame_t BOOT_RODATA kernel_device_frames[] = {
{% for group in kernel_regions %}
{% if group.has_macro() %}
{{ group.get_macro() }}
Expand Down

0 comments on commit 4542369

Please sign in to comment.