@@ -730,77 +730,6 @@ macro_rules! restore_fpu_context {
730730 } ;
731731}
732732
733- /// This is for ARMv7 and ARMv8 systems with an FPU
734- ///
735- /// It just disables Thumb Exceptions and turns on the FPU
736- #[ cfg( all( armv7_or_higher, any( target_abi = "eabihf" , feature = "eabi-fpu" ) ) ) ]
737- #[ macro_export]
738- macro_rules! system_init {
739- ( ) => {
740- r#"
741- // Allow VFP coprocessor access
742- mrc p15, 0, r0, c1, c0, 2
743- orr r0, r0, #0xF00000
744- mcr p15, 0, r0, c1, c0, 2
745- // Enable VFP
746- mov r0, #0x40000000
747- vmsr fpexc, r0
748- // Clear Thumb Exception bit
749- mrc p15, 0, r0, c1, c0, 0
750- bic r0, #0x40000000
751- mcr p15, 0, r0, c1, c0, 0
752- "#
753- } ;
754- }
755-
756- /// This is for ARMv7 and ARMv8 systems without an FPU
757- ///
758- /// It just disables Thumb Exceptions
759- #[ cfg( all( armv7_or_higher, not( any( target_abi = "eabihf" , feature = "eabi-fpu" ) ) ) ) ]
760- #[ macro_export]
761- macro_rules! system_init {
762- ( ) => {
763- r#"
764- // Clear Thumb Exception bit
765- mrc p15, 0, r0, c1, c0, 0
766- bic r0, #0x40000000
767- mcr p15, 0, r0, c1, c0, 0
768- "#
769- } ;
770- }
771-
772- /// This is for ARMv6 and earlier systems with an FPU
773- ///
774- /// It enables the FPU
775- #[ cfg( all( armv6_or_lower, any( target_abi = "eabihf" , feature = "eabi-fpu" ) ) ) ]
776- #[ macro_export]
777- macro_rules! system_init {
778- ( ) => {
779- r#"
780- // Allow VFP coprocessor access
781- mrc p15, 0, r0, c1, c0, 2
782- orr r0, r0, #0xF00000
783- mcr p15, 0, r0, c1, c0, 2
784- // Enable VFP
785- mov r0, #0x40000000
786- vmsr fpexc, r0
787- "#
788- } ;
789- }
790-
791- /// This is for ARMv6 and earlier systems without an FPU
792- ///
793- /// It does nothing
794- #[ cfg( all( armv6_or_lower, not( any( target_abi = "eabihf" , feature = "eabi-fpu" ) ) ) ) ]
795- #[ macro_export]
796- macro_rules! system_init {
797- ( ) => {
798- r#"
799- // No system init required
800- "#
801- } ;
802- }
803-
804733// *****************************************************************************
805734// Functions
806735// *****************************************************************************
0 commit comments