|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2 05/40] xen/arm64: prepare for moving MMU related code from head.S
Hi Penny, On 13/01/2023 05:28, Penny Zheng wrote: From: Wei Chen <wei.chen@xxxxxxx> We want to reuse head.S for MPU systems, but there are some code implemented for MMU systems only. We will move such code to another MMU specific file. But before that, we will do some preparations in this patch to make them easier for reviewing: Well, I agree that... 1. Fix the indentations of code comments. ... changing the indentation is better here. But... ... I have no idea which functions are going to be used in a separate file. So I think they should belong to the patch moving the code. Signed-off-by: Wei Chen <wei.chen@xxxxxxx> Your signed-off-by is missing.
This change is not mentioned. - /*- * Kernel startup entry point. - * --------------------------- - * - * The requirements are: - * MMU = off, D-cache = off, I-cache = on or off, - * x0 = physical address to the FDT blob. - * - * This must be the very first address in the loaded image. - * It should be linked at XEN_VIRT_START, and loaded at any - * 4K-aligned address. All of text+data+bss must fit in 2MB, - * or the initial pagetable code below will need adjustment. - */ +/* + * Kernel startup entry point. + * --------------------------- + * + * The requirements are: + * MMU = off, D-cache = off, I-cache = on or off, + * x0 = physical address to the FDT blob. + * + * This must be the very first address in the loaded image. + * It should be linked at XEN_VIRT_START, and loaded at any + * 4K-aligned address. All of text+data+bss must fit in 2MB, + * or the initial pagetable code below will need adjustment. + */GLOBAL(start) I am not sure about keeping this name. Now we have create_page_tables() and arch_setup_page_tables(). I would conside to name it create_boot_page_tables().
Patch #14 should be before this patch. So you don't have to export remove_identity_mapping temporarily. This will also avoid (transient) naming confusing with my work (see [1]). This name is a bit too generic to be globally exported. It is also now quite confusing because we have "early_puts" and "puts". I would consider to name it asm_puts(). It is still not great but hopefully it would give a hint that should be call from assembly code. Cheers, [1] https://lore.kernel.org/all/20230113101136.479-13-julien@xxxxxxx/ -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |