git: 4b5b18f0cfbb - stable/14 - bhyve: Move AP startup code to amd64/

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Wed, 11 Oct 2023 13:25:13 UTC
The branch stable/14 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=4b5b18f0cfbbad795afa505ace37e2e5654ee1c0

commit 4b5b18f0cfbbad795afa505ace37e2e5654ee1c0
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-10-04 16:24:19 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-10-11 13:22:03 +0000

    bhyve: Move AP startup code to amd64/
    
    This code is only invoked via MD vmexit handlers.  No functional change
    intended.
    
    Reviewed by:    corvink, jhb
    MFC after:      1 week
    Sponsored by:   Innovate UK
    Differential Revision:  https://reviews.freebsd.org/D40737
    
    (cherry picked from commit c7c5d3e3888aa9018297794285dcd884e6182bd5)
---
 usr.sbin/bhyve/Makefile                | 1 -
 usr.sbin/bhyve/amd64/Makefile.inc      | 1 +
 usr.sbin/bhyve/{ => amd64}/spinup_ap.c | 0
 usr.sbin/bhyve/{ => amd64}/spinup_ap.h | 0
 4 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/bhyve/Makefile b/usr.sbin/bhyve/Makefile
index d510c32fccd0..f6db03a3358b 100644
--- a/usr.sbin/bhyve/Makefile
+++ b/usr.sbin/bhyve/Makefile
@@ -62,7 +62,6 @@ SRCS=	\
 	rfb.c			\
 	smbiostbl.c		\
 	sockstream.c		\
-	spinup_ap.c		\
 	tpm_device.c		\
 	tpm_emul_passthru.c	\
 	tpm_intf_crb.c		\
diff --git a/usr.sbin/bhyve/amd64/Makefile.inc b/usr.sbin/bhyve/amd64/Makefile.inc
index 5caecb35a620..824f12861923 100644
--- a/usr.sbin/bhyve/amd64/Makefile.inc
+++ b/usr.sbin/bhyve/amd64/Makefile.inc
@@ -10,6 +10,7 @@ SRCS+=	\
 	ps2kbd.c	\
 	ps2mouse.c	\
 	rtc.c		\
+	spinup_ap.c	\
 	task_switch.c	\
 	xmsr.c
 
diff --git a/usr.sbin/bhyve/spinup_ap.c b/usr.sbin/bhyve/amd64/spinup_ap.c
similarity index 100%
rename from usr.sbin/bhyve/spinup_ap.c
rename to usr.sbin/bhyve/amd64/spinup_ap.c
diff --git a/usr.sbin/bhyve/spinup_ap.h b/usr.sbin/bhyve/amd64/spinup_ap.h
similarity index 100%
rename from usr.sbin/bhyve/spinup_ap.h
rename to usr.sbin/bhyve/amd64/spinup_ap.h