- 追加された行はこの色です。
- 削除された行はこの色です。
*参照元 [#t94eda76]
#backlinks
*説明 [#u20353a6]
-パス: [[linux-4.4.1/arch/arm64/mm/proc-macros.S]]
-FIXME: これは何?
--説明
**引数 [#f29f1b7b]
-reg
--
--データキャッシュラインサイズがバイトで格納されるレジスタ名を指定する。
-tmp
--
--作業用に破壊しても良いレジスタを指定する。
**返り値 [#q8c2ec67]
-なし
**参考 [#x4412031]
*実装 [#lfe2a786]
/*
* 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
*コメント [#w5d0e2e1]