qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 8/8] Fixes for seconday CPU start-up.


From: Richard Henderson
Subject: Re: [PATCH 8/8] Fixes for seconday CPU start-up.
Date: Sun, 6 Jun 2021 13:27:31 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 6/2/21 8:53 PM, Jason Thorpe wrote:
Changes to make secondary CPU start-up work on NetBSD, which depends
on some specific behavior in the architecture specification:

- Change the internal swppal() function to take the new VPTPTR and
   Procedure Value as explicit arguments.  Adapt do_start() to the
   new the new swppal() signature.

- In do_start_wait(), extract the new VPTPTR and PV from the relevant
   HWRPB fields, which will have been initialized by the OS, and pass
   them to swppal().

- In the SWPPAL PAL call, get the value to stuff into PV (r27) from
   a4 (r20), and add a comment describing why this implementation detail
   is allowed by the architecture specification.

Signed-off-by: Jason Thorpe<thorpej@me.com>
---
  init.c | 25 ++++++++++++++++---------
  pal.S  | 13 ++++++++++---
  2 files changed, 26 insertions(+), 12 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]