Skip to content

Add #[entry], #[irq] and #[exception(...)] macros. #33

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

Merged
merged 13 commits into from
May 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
// override the default setting (`cargo check --all-targets`) which produces the following error
// "can't find crate for `test`" when the default compilation target is a no_std target
// with these changes RA will call `cargo check --bins` on save
"rust-analyzer.check.allTargets": false,
"rust-analyzer.check.extraArgs": ["--bins"],
"rust-analyzer.checkOnSave": true,
}
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ members = [
"cortex-ar",
"cortex-r-rt",
"cortex-a-rt",
"cortex-ar-rt-macros",
]
resolver = "2"
1 change: 1 addition & 0 deletions cortex-a-rt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ version = "0.1.0"

[dependencies]
cortex-ar = {version = "0.1.0", path = "../cortex-ar"}
cortex-ar-rt-macros = { path = "../cortex-ar-rt-macros", version = "=0.1.0" }

[features]
# Enable the FPU on start-up, even on a soft-float EABI target
Expand Down
24 changes: 12 additions & 12 deletions cortex-a-rt/link.x
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,18 @@ ASSERT(_irq_stack_size % 8 == 0, "ERROR(cortex-r-rt): size of IRQ stack is not 8
ASSERT(_fiq_stack_size % 8 == 0, "ERROR(cortex-r-rt): size of FIQ stack is not 8-byte aligned");

/* Weak aliases for ASM default handlers */
PROVIDE(_start =_default_start);
PROVIDE(_asm_undefined_handler =_asm_default_undefined_handler);
PROVIDE(_asm_svc_handler =_asm_default_svc_handler);
PROVIDE(_asm_prefetch_handler =_asm_default_prefetch_handler);
PROVIDE(_asm_abort_handler =_asm_default_abort_handler);
PROVIDE(_asm_irq_handler =_asm_default_irq_handler);
PROVIDE(_asm_fiq_handler =_asm_default_fiq_handler);
PROVIDE(_start = _default_start);
PROVIDE(_asm_undefined_handler = _asm_default_undefined_handler);
PROVIDE(_asm_svc_handler = _asm_default_svc_handler);
PROVIDE(_asm_prefetch_abort_handler = _asm_default_prefetch_abort_handler);
PROVIDE(_asm_data_abort_handler = _asm_default_data_abort_handler);
PROVIDE(_asm_irq_handler = _asm_default_irq_handler);
PROVIDE(_asm_fiq_handler = _asm_default_fiq_handler);

/* Weak aliases for C default handlers */
PROVIDE(_undefined_handler =_default_handler);
PROVIDE(_svc_handler =_default_handler);
PROVIDE(_prefetch_handler =_default_handler);
PROVIDE(_abort_handler =_default_handler);
PROVIDE(_irq_handler =_default_handler);
PROVIDE(_undefined_handler = _default_handler);
PROVIDE(_svc_handler = _default_handler);
PROVIDE(_prefetch_abort_handler = _default_handler);
PROVIDE(_data_abort_handler = _default_handler);
PROVIDE(_irq_handler = _default_handler);
/* There is no default C-language FIQ handler */
Loading