aarch64: provide virt2phys command

Use AT commands to translate virtual to physical addresses based on
current MMU configuration.

Change-Id: I1bbd7d674c435541b617b17022fa9f7f0f01bdab
Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com>
This commit is contained in:
Matthias Welwarsky
2016-10-06 15:05:53 +02:00
parent fc3ce94bba
commit 2b56f4f656
4 changed files with 89 additions and 2 deletions

View File

@@ -270,6 +270,10 @@ int armv8_handle_cache_info_command(struct command_context *cmd_ctx,
void armv8_set_cpsr(struct arm *arm, uint32_t cpsr);
static inline int armv8_curel_from_core_mode(struct arm *arm)
{
return (arm->core_mode >> 6) & 3;
}
extern const struct command_registration armv8_command_handlers[];
#endif