Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Unify & feature gate Xtensa asm #27

Closed
wants to merge 6 commits into from
Closed

Unify & feature gate Xtensa asm #27

wants to merge 6 commits into from

Conversation

MabezDev
Copy link
Member

@MabezDev MabezDev commented Sep 28, 2021

This is a WIP fleshing out of an idea we discussed a few meetings back, using the CPU features to manipulate what code is generated. As it stands, there is support for conditionally compiling {save|restore}_context, along with the Context structure. It should hopefully close #26.

It should hopefully be possible to remove the lx106 specific code (for the esp8266), but this might be a bit more tricky; see below.

Questions

  • How to handle the vector table & exception handlers?
    • The number will vary depending on the silicon.
    • Is there ISA defined ordering of the vector table, i.e Will DebugExceptionVector always come before NMIExceptionVector or is this how Espressif chose to layout the table in their chips?
  • How to handle features (internal timers, interrupt levels, etc) that are not possible to find from the CPU features?

cc: @jessebraham @igrr

@MabezDev MabezDev closed this Dec 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Xtensa LX7
1 participant