diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-12-16 12:30:30 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-12-16 12:30:30 +0000 |
| commit | 2c3bc75da6008afa7cacc1045954cef7e3d8740f (patch) | |
| tree | 47661322d49d3e38717e2fc3f38e920c222138f7 /embassy-executor/src/arch/cortex_m.rs | |
| parent | 99ad61cecf4fe098feeced5524d3e60625137457 (diff) | |
| parent | e1c00613288024623f7fde61f65c4c40c9a5381a (diff) | |
Merge pull request #3593 from bugadani/refactor
Rework time-driver contract.
Diffstat (limited to 'embassy-executor/src/arch/cortex_m.rs')
| -rw-r--r-- | embassy-executor/src/arch/cortex_m.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/embassy-executor/src/arch/cortex_m.rs b/embassy-executor/src/arch/cortex_m.rs index 0c2af88a6..5c517e0a2 100644 --- a/embassy-executor/src/arch/cortex_m.rs +++ b/embassy-executor/src/arch/cortex_m.rs | |||
| @@ -98,9 +98,6 @@ mod thread { | |||
| 98 | /// | 98 | /// |
| 99 | /// This function never returns. | 99 | /// This function never returns. |
| 100 | pub fn run(&'static mut self, init: impl FnOnce(Spawner)) -> ! { | 100 | pub fn run(&'static mut self, init: impl FnOnce(Spawner)) -> ! { |
| 101 | unsafe { | ||
| 102 | self.inner.initialize(); | ||
| 103 | } | ||
| 104 | init(self.inner.spawner()); | 101 | init(self.inner.spawner()); |
| 105 | 102 | ||
| 106 | loop { | 103 | loop { |
| @@ -210,9 +207,6 @@ mod interrupt { | |||
| 210 | } | 207 | } |
| 211 | 208 | ||
| 212 | let executor = unsafe { (&*self.executor.get()).assume_init_ref() }; | 209 | let executor = unsafe { (&*self.executor.get()).assume_init_ref() }; |
| 213 | unsafe { | ||
| 214 | executor.initialize(); | ||
| 215 | } | ||
| 216 | 210 | ||
| 217 | unsafe { NVIC::unmask(irq) } | 211 | unsafe { NVIC::unmask(irq) } |
| 218 | 212 | ||
