mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00
feat(cpus): add errata framework helpers
Adding an helper macro for bit field insert(bic) instruction to group all the operations related to it. Change-Id: Idfd06c7f38faf52090f62b458d2d96c2682f63fe Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
This commit is contained in:
parent
5d1751066d
commit
445f7b5191
1 changed files with 14 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2014-2023, ARM Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2014-2023, Arm Limited and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -443,6 +443,19 @@
|
|||
msr vbar_el3, x1
|
||||
.endm
|
||||
|
||||
/*
|
||||
* BFI : Inserts bitfield into a system register.
|
||||
*
|
||||
* BFI{cond} Rd, Rn, #lsb, #width
|
||||
*/
|
||||
.macro sysreg_bitfield_insert _reg:req, _src:req, _lsb:req, _width:req
|
||||
/* Source value for BFI */
|
||||
mov x1, #\_src
|
||||
mrs x0, \_reg
|
||||
bfi x0, x1, #\_lsb, #\_width
|
||||
msr \_reg, x0
|
||||
.endm
|
||||
|
||||
/*
|
||||
* Apply erratum
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue