add arm64 support
- add arm64 dependent codes with GICv3 and SVE support - fix bugs based on architecture separation requests
This commit is contained in:
13
arch/arm64/kernel/proc-macros.S
Normal file
13
arch/arm64/kernel/proc-macros.S
Normal file
@@ -0,0 +1,13 @@
|
||||
/* proc-macros.S COPYRIGHT FUJITSU LIMITED 2015 */
|
||||
|
||||
#include <arch-memory.h>
|
||||
|
||||
/*
|
||||
* dcache_line_size - get the minimum D-cache line size from the CTR register.
|
||||
*/
|
||||
.macro dcache_line_size, reg, tmp
|
||||
mrs \tmp, ctr_el0 // read CTR
|
||||
ubfm \tmp, \tmp, #16, #19 // cache line size encoding
|
||||
mov \reg, #4 // bytes per word
|
||||
lsl \reg, \reg, \tmp // actual cache line size
|
||||
.endm
|
||||
Reference in New Issue
Block a user