Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
515d5893
Commit
515d5893
authored
Mar 28, 2017
by
davidcunado-arm
Committed by
GitHub
Mar 28, 2017
Browse files
Merge pull request #878 from vwadekar/tegra-memctrlv2-coverity-fix
Tegra: memctrl_v2: fix logic to calculate TZRAM_ADDR_HI bits
parents
3d93f05a
e2b2603c
Changes
1
Hide whitespace changes
Inline
Side-by-side
plat/nvidia/tegra/common/drivers/memctrl/memctrl_v2.c
View file @
515d5893
...
@@ -392,8 +392,8 @@ void tegra_memctrl_tzram_setup(uint64_t phys_base, uint32_t size_in_bytes)
...
@@ -392,8 +392,8 @@ void tegra_memctrl_tzram_setup(uint64_t phys_base, uint32_t size_in_bytes)
/* Extract the high address bits from the base/end values */
/* Extract the high address bits from the base/end values */
val
=
(
uint32_t
)(
phys_base
>>
32
)
&
TZRAM_ADDR_HI_BITS_MASK
;
val
=
(
uint32_t
)(
phys_base
>>
32
)
&
TZRAM_ADDR_HI_BITS_MASK
;
val
|=
(((
uint32_t
)(
tzram_end
>>
32
)
<<
TZRAM_
END
_HI_BITS_
SHIFT
)
&
val
|=
(((
uint32_t
)(
tzram_end
>>
32
)
&
TZRAM_
ADDR
_HI_BITS_
MASK
)
<<
TZRAM_
ADDR
_HI_BITS_
MASK
);
TZRAM_
END
_HI_BITS_
SHIFT
);
tegra_mc_write_32
(
MC_TZRAM_HI_ADDR_BITS
,
val
);
tegra_mc_write_32
(
MC_TZRAM_HI_ADDR_BITS
,
val
);
/* Disable further writes to the TZRAM setup registers */
/* Disable further writes to the TZRAM setup registers */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment