[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2] xen/arm64: head: Allow to use early printk while on 1:1 mapping



Hi Michal,

On 15/01/2024 12:48, Michal Orzel wrote:
Take an example from commit 1ec3fe1f664f ("xen/arm32: head: Improve
logging in head.S") to add support for printing early boot messages
while running on identity mapping:
  - define PRINT_SECT() macro to be able to specify a section for storing
    a string. PRINT() will use .rodata.str and PRINT_ID() - .rodata.idmap.
    This is necessary, because when running on identity mapping, the
    strings need to be part of the first page that is mapped,
  - move loading a runtime virtual UART address right after enabling MMU
    (the corresponding steps repeated in {primary,secondary}_switched are
    now consolidated in a single place),
  - move early printk 'hex' string into .rodata.idmap and replace 'adr'
    instruction in asm_putn with 'adr_l' to extend the addressable range,
  - remove RODATA_STR() macro given no use.

Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>

I have tested with my upcoming series to get all pre-MMU code in a single page.

Acked-by: Julien Grall <jgrall@xxxxxxxxxx>

Cheers,

--
Julien Grall



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.