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

Re: [PATCH 7/9] xen/arm64: head: Rework PRINT() to work when the string is not withing +/- 1MB


  • To: Julien Grall <julien@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Mon, 26 Jun 2023 13:50:03 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=xen.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jZY1EpuHSSSRsOWezBO/ldLf2F3jscxHI4/L3u/0T8w=; b=gpXLS1BLhrMhVRT152DvxQGlql1X9MzsXxKT5/6ew/COoNyI+JmfTEpTVeNX5QfCQOol2KrMN/X3nqraaUoXB3TRVVHem7VWNovqS8mtyqfa/rFvutgGdAq+ivvIVyiKDZqBb9UHYk1sfRQZL+KlPNFcViU83YuatTQoG3f8pI9KCOmCbDFiPtBup7nE6ppoAtpAloOsEJd/pSKzIilvpUDeJm4CeKEUJD6lI4PvvyAvbBPv7TYu0M/6256zgF47dddK64su/DTSdUGeADQMDb6m/JDzMjh6sOhahWAG0fnGpOPbhocrYKRUg0xW4/al8RhdBqgv1RnW1ieYy18xQA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ad/KZ5ps0ePKC4ZeBKzl6m8XoX3H73+L2tDXmvRzrO4q3x8GdQkeRBYpbK3gTZDJx9GSPK6TCOa3LySO+tjJbP9WMbFO2TER+3kbkzBdzFn2jgOzLymN4FgEz4kOyrA9aoBoiwwk3QVzFEjp/bjKeuuTvYKJUcZZPc2n803yMm9GFKkGLr4dUFUweVcD0mKko6Z5zg7X0dQBOlw+3AlEfqvT1nXLbIyndLf636vmWm8CMhxeSCwCM4XokYzdCKpsewLBcFqO4wGSQtH/XN1d7SSf2fqqEMhhTx8X+0wYBo5iCgOePYX5G37XYByW7rBNEQyOVG++eL4AKN3UyxpySA==
  • Cc: <Luca.Fancellu@xxxxxxx>, <Henry.Wang@xxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Mon, 26 Jun 2023 11:50:25 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 25/06/2023 22:49, Julien Grall wrote:
> 
> 
> From: Julien Grall <jgrall@xxxxxxxxxx>
> 
> The instruction ADR is able to load an address of a symbol that is
> within the range +/- 1 MB of the instruction.
> 
> While today Xen is quite small (~1MB), it could grow up to 2MB in the
> current setup. So there is no guarantee that the instruction can
> load the string address (stored in rodata).
> 
> So replace the instruction ADR with the pseudo-instruction ADR_L
> which is able to handle symbol within the range +/- 4GB.
> 
> Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>
Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>

~Michal




 


Rackspace

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