;CPACR is lacated at address 0xE000Ed88 LDR.W R0,=0xE000Ed88 ;Read CPACR LDR R1,[R0] ;Set bits 20-23 to enable CP10 and CP11 coprocessors ORR R1,R1,#(0xF << 20) ;Write back the modified value to the CPACR STR R1,[R0] ;wait for store to complete DSB ;reset pipeline now the FPU is enabled ISB
;CPACR is lacated at address 0xE000Ed88
LDR.W R0,=0xE000Ed88
;Read CPACR
LDR R1,[R0]
;Set bits 20-23 to enable CP10 and CP11 coprocessors
ORR R1,R1,#(0xF << 20)
;Write back the modified value to the CPACR
STR R1,[R0] ;wait for store to complete
DSB
;reset pipeline now the FPU is enabled
ISB
一周热门 更多>