<re_irc>
< (@jannic:matrix.org)> I need some sleep now (should have gone to bed two hours ago) - feel free to copy from my branch if you want to continue.
<re_irc>
< (@dirbaio:matrix.org)> is there a reason for keeping _critical_section_acquire, _critical_section_release ?
<re_irc>
< (@dirbaio:matrix.org)> vs doing the thing in acquire, release directly
<re_irc>
< (@jannic:matrix.org)> : No - I just didn't touch the functions providing the public interface and directly edited the internal code. Can probably be inlined into "acquire"/"release" as well.
<re_irc>
< (@dirbaio:matrix.org)> thanks! wanted to make sure I wasn't missing anything
<re_irc>
< (@jannic:matrix.org)> I didn't try it out at all. But as it's rust, if "cargo check" works, it's probably fine :-)
<re_irc>
< (@jannic:matrix.org)> 🛏️
dc740 has quit [Remote host closed the connection]
explore has joined #rust-embedded
starblue has quit [Ping timeout: 260 seconds]
starblue has joined #rust-embedded
<re_irc>
<thebox> There seems to be great support for Cortex-M processors but I've seen very little in the way of Cortex-A. What I have seen for Cortex-A is the aarch64-cpu crate (formerly cortex-a), however, this crate is made for the armv8 architecture whereas my use case involves armv7 (the Cortex-A9). I have seen some mention that the Cortex-A has support for the Cortex-M instruction set. Does this mean that I could use the Cortex-M...
<re_irc>
... crates on a Cortex-A processor with modification to the linker script?
<re_irc>
< (@jamesmunns:beeper.com)> generally yes, the "cortex-m" instruction set is thumb2, which the armv7a (but not aarch64) support
<re_irc>
< (@jamesmunns:beeper.com)> well, actually, "use crates as-is" is sort of a problem if they use certain abstractions that assume that something like the NVIC (the interrupt controller for cortex-m) is present, as the cortex-a has a different interrupt controller
<re_irc>
< (@jamesmunns:beeper.com)> so like, you couldn't use "rtic", or "embassy" out of the box
<re_irc>
<thebox> Will a crate like cortex-m-rt work to get rust running on an armv7a processor?
<re_irc>
< (@jamesmunns:beeper.com)> it's a couple years old nowadays (and for the A7 instead of the A7), but might be a useful starting place
explore has quit [Quit: Connection closed for inactivity]
<re_irc>
< (@jamesmunns:beeper.com)> you'll likely need some more stuff than the typical cortex-m-rt, as you'll need to do things like bring up the DRAM
<re_irc>
<thebox> Ok, thank you
<re_irc>
< (@jamesmunns:beeper.com)> it's a couple years old nowadays (and for the A7 instead of the A9), but might be a useful starting place