Skip to content
Commit f607954d authored by Maciek Borzecki's avatar Maciek Borzecki Committed by Gerrit Code Review
Browse files

arm: access svc instruction using halfword load in svc_handler



Use of `ldr` triggers unaligned memory access when loading SVC
instruction to r0. This is caused by the fact that SVC is a 16-bit
instruction, hence with a 2 byte offset, we are performing an non-word
aligned access. Prevent this by using `ldrh` to load a halfwords rather
than full words.

Change-Id: Ieae60c2ce86c6cfe15c89627d3a450797ce7e714
Signed-off-by: default avatarMaciej Borzecki <maciek.borzecki@gmail.com>
parent 61c03632
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment