Device-generation: Add __ASSEMBLER__ guards

This commit is contained in:
Kofi Doku Atuah
2019-03-20 10:36:32 +11:00
committed by Anna Lyons
parent 4895368ac5
commit 16f55f8e4b

View File

@@ -772,6 +772,8 @@ HEADER_TEMPLATE = """
{%- endif %}
{%- endfor %}
#ifndef __ASSEMBLER__
static const kernel_frame_t BOOT_RODATA kernel_devices[] = {
{% for reg in kernel %}{{ reg.get_macro_string() }}
{ /* {{ ' '.join(sorted(reg.names)) }} */
@@ -808,6 +810,8 @@ static const p_region_t BOOT_RODATA dev_p_regs[] = {
{%- endfor %}
};
#endif /* !__ASSEMBLER__ */
/* INTERRUPTS */
{%- for irq in interrupts %}
{%- if irq.macro %}