Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM Cortex directories naming #138

Closed
RICCIARDI-Adrien opened this issue Oct 10, 2023 · 10 comments
Closed

ARM Cortex directories naming #138

RICCIARDI-Adrien opened this issue Oct 10, 2023 · 10 comments

Comments

@RICCIARDI-Adrien
Copy link
Contributor

Hi,

In the Trampoline machines directory, there is the cortex directory that seems to be dedicated to microcontroller Cortex-M versions, then there is the cortex-a directory for the Cortex-A7, and there is also the arm directory for the pre-Cortex architectures, like ARM9.

Maybe it would make more sense to rename the cortex directory to cortex-m, so it is easier understand ?

A second question : if someone wants to add a Cortex-R port, are you OK to create a dedicated cortex-r directory or do you prefer to share an existing directory ?

@jlbirccyn
Copy link
Member

Hello Adrien,

cortex could be rename cortex-m provided templates are changed accordingly.

For Cortex-R (that I know little about) It depends if the sc_handler and interrupt routine code are (or would be) different or not. I see that the -R supports both ARM and thumb, and I assume cross-calls. Therefore, it depends on whether the sc_handler is written in thumb or ARM. To be discussed.

@RICCIARDI-Adrien
Copy link
Contributor Author

Hello Jean-Luc,

Thanks for the quick reply.

What is the simple machine ? It seems to provide the same Cortex-M architectures than the current cortex directory ?

@jlbirccyn
Copy link
Member

simple was used in a lab where students implemented a simple context switch (if you look, the sc_handler is missing). As of last year, the lab has been ported to the Raspberry Pi Pico and simple is no longer used, nor will it be in the future. It will therefore be removed. simple has not been put on a branch to make it easier for students who are not very familiar with Git to set up the lab.

@RICCIARDI-Adrien
Copy link
Contributor Author

OK, do you want to remove the simple machine and examples yourself or do you prefer a pull request ?
And same question for the cortex directories, do you want to rename them or do you prefer a pull request ?

@RICCIARDI-Adrien
Copy link
Contributor Author

I have now the answer for the simple architecture !
Are the following directories also part of the simple architecture ?

  • examples/simple/
  • goil/templates/linker/gnu_ld/simple/
  • goil/templates/config/simple/

@jlbirccyn
Copy link
Member

jlbirccyn commented Oct 10, 2023

Yes,

I just pushed the removing of these directories

For the name change of cortex to cortex-m, I welcome a pull-request.

@RICCIARDI-Adrien
Copy link
Contributor Author

Got it for the cortex-m.

Do you want to keep the examples/simple/ directory ?

@jlbirccyn
Copy link
Member

I just deleted it.

RICCIARDI-Adrien added a commit to RICCIARDI-Adrien/trampoline that referenced this issue Oct 25, 2023
…herency.

See issue TrampolineRTOS#138 for more details.

Signed-off-by: Adrien Ricciardi <aricciardi@baylibre.com>
RICCIARDI-Adrien added a commit to RICCIARDI-Adrien/trampoline that referenced this issue Oct 25, 2023
…herency.

See issue TrampolineRTOS#138 for more details.

Signed-off-by: Adrien Ricciardi <aricciardi@baylibre.com>
@RICCIARDI-Adrien
Copy link
Contributor Author

The pull request renaming cortex into cortex-m is here : #145.

RICCIARDI-Adrien added a commit to RICCIARDI-Adrien/trampoline that referenced this issue Oct 26, 2023
…herency.

See issue TrampolineRTOS#138 for more details.

Signed-off-by: Adrien Ricciardi <aricciardi@baylibre.com>
@RICCIARDI-Adrien
Copy link
Contributor Author

The pull request renaming cortex-a into cortex-a-r is here : #147.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants