Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.

Feature gate all architecture specific code in zinc crate #305

Closed
wants to merge 1 commit into from

Conversation

mcoffin
Copy link
Contributor

@mcoffin mcoffin commented Jun 1, 2015

Closes #303

@mcoffin
Copy link
Contributor Author

mcoffin commented Jun 1, 2015

Closing because discussion in #303 is heading towards a different solution.

@mcoffin mcoffin closed this Jun 1, 2015
@bharrisau
Copy link
Contributor

There are a few asm! instructions in support.rs, irq.rs, lock.rs and sched.rs. Also some NOPs in examples and drivers that need to be replaces with calls to Zinc intrinsics.

I'm not sure of the best way to handle the instrinsics. Maybe define a trait for them, and use a feature #cfg to import the right impl?

  • nop
  • bkpt
  • change stack, manipulate stack pointer
  • enable/disable irqs
  • provide a lock primitive
  • wfi instruction

@mcoffin mcoffin deleted the fix-303-native-build branch June 3, 2015 01:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor zinc crate to support native build
2 participants