- add arm64 dependent codes with GICv3 and SVE support - fix bugs based on architecture separation requests
14 lines
378 B
ArmAsm
14 lines
378 B
ArmAsm
/* 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
|