Skip to contentSkip to conversation

xen/ppc: Add stub function and symbol definitions

PATCH Superseded Shawn Anastasio 1 participant 1 message Sep 1, 2023 1 message not in the archive

v3 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#1 lore raw

PATCH v3 4/5 xen/ppc: Add stub function and symbol definitions

In reply to a message not in the archive

Add stub function and symbol definitions required by common code. If the file that the definition is supposed to be located in doesn't already exist yet, temporarily place its definition in the new stubs.c

---
v3:
- (stubs.c) Drop ack_none hook definition

v2:
- Use BUG_ON("unimplemented") instead of BUG() for unimplemented functions to make searching easier.
- (mm-radix.c) Drop total_pages definition
- (mm-radix.c) Move __read_mostly from after variable name to before it in declaration of frametable_base_pdx
- (setup.c) Fix include order
- (stubs.c) Drop stub .end hw_irq_controller hook

 xen/arch/ppc/Makefile   |   1 +
 xen/arch/ppc/mm-radix.c |  42 +++++
 xen/arch/ppc/setup.c    |   8 +
 xen/arch/ppc/stubs.c    | 339 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 390 insertions(+)
 create mode 100644 xen/arch/ppc/stubs.c
xen/arch/ppc/Makefile +1 -0
index a059ac4c0a..969910b3b6 100644
@@ -5,6 +5,7 @@ obj-$(CONFIG_EARLY_PRINTK) += early_printk.init.o
 obj-y += mm-radix.o
 obj-y += opal.o
 obj-y += setup.o
+obj-y += stubs.o
 obj-y += tlb-radix.o
 
 $(TARGET): $(TARGET)-syms
xen/arch/ppc/mm-radix.c +42 -0

45 lines not on this page · raw message

xen/arch/ppc/setup.c +8 -0
index 0106e9c9da..d57cccc141 100644
@@ -1,5 +1,8 @@
 /* SPDX-License-Identifier: GPL-2.0-or-later */
 #include <xen/init.h>
+#include <xen/lib.h>
+#include <xen/mm.h>
+#include <public/version.h>
 #include <asm/boot.h>
 #include <asm/early_printk.h>
 #include <asm/mm.h>
@@ -38,3 +41,8 @@ void __init noreturn start_xen(unsigned long r3, unsigned long r4,
 
     unreachable();
 }
+
+void arch_get_xen_caps(xen_capabilities_info_t *info)
+{
+    BUG_ON("unimplemented");
+}
xen/arch/ppc/stubs.c new file +339 -0

339 lines not on this page · raw message

--
2.30.2