Message ID | 20190722213958.5761-12-julien.grall@arm.com |
---|---|
State | New |
Headers | show |
Series | xen/arm: Rework head.S to make it more compliant with the Arm Arm | expand |
On Mon, 22 Jul 2019, Julien Grall wrote: > Document the behavior and the main registers usage within enable_mmu(). > > Signed-off-by: Julien Grall <julien.grall@arm.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> > --- > Changes in v2: > - x2 and x3 are also clobbers. Update the comment accordingly > - s/ID/1:1/ > --- > xen/arch/arm/arm64/head.S | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/xen/arch/arm/arm64/head.S b/xen/arch/arm/arm64/head.S > index eddf663021..63563ef5e3 100644 > --- a/xen/arch/arm/arm64/head.S > +++ b/xen/arch/arm/arm64/head.S > @@ -576,6 +576,13 @@ virtphys_clash: > ret > ENDPROC(create_page_tables) > > +/* > + * Turn on the Data Cache and the MMU. The function will return on the 1:1 > + * mapping. In other word, the caller is responsible to switch to the runtime > + * mapping. > + * > + * Clobbers x0 - x3 > + */ > enable_mmu: > PRINT("- Turning on paging -\r\n") > > -- > 2.11.0 >
diff --git a/xen/arch/arm/arm64/head.S b/xen/arch/arm/arm64/head.S index eddf663021..63563ef5e3 100644 --- a/xen/arch/arm/arm64/head.S +++ b/xen/arch/arm/arm64/head.S @@ -576,6 +576,13 @@ virtphys_clash: ret ENDPROC(create_page_tables) +/* + * Turn on the Data Cache and the MMU. The function will return on the 1:1 + * mapping. In other word, the caller is responsible to switch to the runtime + * mapping. + * + * Clobbers x0 - x3 + */ enable_mmu: PRINT("- Turning on paging -\r\n")
Document the behavior and the main registers usage within enable_mmu(). Signed-off-by: Julien Grall <julien.grall@arm.com> --- Changes in v2: - x2 and x3 are also clobbers. Update the comment accordingly - s/ID/1:1/ --- xen/arch/arm/arm64/head.S | 7 +++++++ 1 file changed, 7 insertions(+)