Skip to content

Commit f17d98d

Browse files
committed
cortex-m-rt: Fix max_int_handlers on armv8m
Fixed interrupt count for Cortex-M23 (240) and Cortex-M33 (480) based on the technical reference manual. The original value of 496 referred to the entire vector table length, with exceptions length already included in the assert check.
1 parent b188019 commit f17d98d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cortex-m-rt/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ INCLUDE device.x"#
6868
println!("cargo:rustc-cfg=cortex_m");
6969
println!("cargo:rustc-cfg=armv8m");
7070
println!("cargo:rustc-cfg=armv8m_base");
71-
496
71+
240
7272
} else if target.starts_with("thumbv8m.main") {
7373
println!("cargo:rustc-cfg=cortex_m");
7474
println!("cargo:rustc-cfg=armv8m");
7575
println!("cargo:rustc-cfg=armv8m_main");
76-
496
76+
480
7777
} else {
7878
// Non ARM target. We assume you're just testing the syntax.
7979
// This value seems as good as any.

0 commit comments

Comments
 (0)