Russell King
47b8484ea6
ARM: cache-v7: shift CLIDR to extract appropriate field before masking
...
Rather than have code which masks and then shifts, such as:
mrc p15, 1, r0, c0, c0, 1
ALT_SMP(ands r3, r0, #7 << 21)
ALT_UP( ands r3, r0, #7 << 27)
ALT_SMP(mov r3, r3, lsr #20 )
ALT_UP( mov r3, r3, lsr #26 )
re-arrange this as a shift and then mask. The masking is the same for
each field which we want to extract, so this allows the mask to be
shared amongst code paths:
mrc p15, 1, r0, c0, c0, 1
ALT_SMP(mov r3, r0, lsr #20 )
ALT_UP( mov r3, r0, lsr #26 )
ands r3, r3, #7 << 1
Use this method for the LoUIS, LoUU and LoC fields.
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2015-04-14 22:26:51 +01:00
..
2014-08-27 15:40:12 +01:00
2014-08-27 15:40:12 +01:00
2015-03-29 23:11:56 +01:00
2012-11-06 19:47:35 +00:00
2014-07-18 12:29:04 +01:00
2014-11-21 15:24:50 +00:00
2015-03-10 10:24:56 +00:00
2014-07-18 12:29:04 +01:00
2014-11-21 15:24:50 +00:00
2013-12-29 12:32:47 +00:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2015-04-14 22:26:51 +01:00
2012-03-28 18:30:01 +01:00
2015-02-03 12:57:33 +00:00
2012-03-20 21:48:14 +08:00
2012-03-20 21:48:14 +08:00
2012-03-29 16:53:48 -07:00
2012-03-20 21:48:14 +08:00
2012-03-20 21:48:14 +08:00
2014-12-03 16:00:04 +00:00
2012-03-20 21:48:14 +08:00
2012-03-29 16:53:48 -07:00
2015-03-18 10:15:53 +00:00
2015-01-07 20:33:33 +00:00
2013-11-07 00:15:49 +00:00
2014-11-21 15:24:50 +00:00
2014-11-21 15:24:50 +00:00
2011-12-08 10:30:40 +00:00
2014-12-03 16:00:04 +00:00
2011-12-08 10:30:37 +00:00
2013-06-04 16:52:38 +01:00
2014-12-05 16:30:54 +00:00
2015-02-11 17:06:01 -08:00
2014-09-26 14:39:53 +01:00
2015-02-10 10:26:27 +00:00
2012-02-23 20:18:56 -07:00
2014-06-01 01:15:04 +01:00
2015-02-18 12:24:29 +01:00
2014-05-30 00:47:23 +01:00
2014-07-18 12:29:04 +01:00
2014-12-03 16:00:05 +00:00
2014-06-02 09:20:11 +01:00
2013-11-30 14:45:31 +00:00
2015-01-07 20:33:34 +00:00
2014-06-29 10:29:34 +01:00
2014-12-03 16:00:05 +00:00
2015-02-11 17:06:04 -08:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2013-03-26 09:55:34 +00:00
2015-03-28 15:46:14 +00:00
2014-07-18 12:29:04 +01:00
2014-09-25 15:32:57 +01:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2013-04-17 16:53:24 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00