[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 3/6] xen/riscv: introduce function for physical offset calculation
- To: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Thu, 6 Jul 2023 13:18:45 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; 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=BttqFmpdTOAAXy7pC2eeykehOkY8SMzO0n6C4sL3QBc=; b=PsfWPa5QLyuSPHo7Khk21xjPBq1ss+SKOoTVezrCyhmunu/e5cMRcEyQSpQRo8GOUrcN82YR36gz33qy29Vnq/NPPkJiJaHZuV2i8AsMkCEGpl6TTuygHuoYp9sSQns5k+M9Fh1OuNi1tWK7Fim3MC9VmRlJp2QZ3EZZiWvR4BUp3ukNS52CtMfxC738Ikqw4MdVtXK/H1hvjSfYmCVEwpBP4NbnFCoNJYLfZrbgTdgEYm5C65e6DczWDIACIKPSfwIVyU0djW3mxKQkIMQBE1zXaqnqmL9QdrPoKHEoh4qK8v/FoTYdQW7T5vCVANtuE6yiJ0RavPGXMQKYQLKkYg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H5crOF8KVX7MiaaKEwWmV5DoJWiLWY8Feq+T5nUtkmmlwrR154lqx7gKF2lly+o4J1If2HWSDa01cCWMYSGLw3eUvg+6UWJTPyHNeOH/ERRcZ4vUTN4BCJkCh8ShlMze3VvsKsIhem0TA1od/U4EMk6NQLd06OqhWuBZ6t3fEGKraEbK/lhKKdH3n5myk3a2qiFZ6jSQ8w4xWY11yXOYGBE57TDUUCr+oBCNIduLWIk++TaBTtYRwRCiSXUiKvLhklgCBzdOrZauwFfiPiUvUafYSux3H5wIJh2ft29sYyMYMSgFp7skH5ea7iu5FXdETp0h1zJD+UtKjnb6yQ8TZw==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bob Eshleman <bobbyeshleman@xxxxxxxxx>, Alistair Francis <alistair.francis@xxxxxxx>, Connor Davis <connojdavis@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Thu, 06 Jul 2023 11:19:29 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 19.06.2023 15:34, Oleksii Kurochko wrote:
> --- a/xen/arch/riscv/riscv64/head.S
> +++ b/xen/arch/riscv/riscv64/head.S
> @@ -29,6 +29,8 @@ ENTRY(start)
>
> jal reset_stack
>
> + jal calc_phys_offset
> +
> tail start_xen
>
> .section .text, "ax", %progbits
Since you call a C function, the code to save/restore a0/a1 needs to
move here (from patch 4).
Jan
|