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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user