Skip to contentSkip to conversation

bootm: add {arch,board}_preboot_os() to bootm.h

PATCH New Heinrich Schuchardt 3 participants 5 messages Sep 14, 2020 – Oct 14, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bootm: add {arch,board}_preboot_os() to bootm.h

Functions that are used in multiple C modules should be defined in an include.

---
 include/bootm.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
include/bootm.h +10 -0
index 0350c349f3..a812a6bf24 100644
@@ -75,4 +75,14 @@ void board_quiesce_devices(void);
  */
 void switch_to_non_secure_mode(void);
 
+/**
+ * arch_preboot_os() - arch specific configuration before booting
+ */
+void arch_preboot_os(void);
+
+/**
+ * board_preboot_os() - board specific configuration before booting
+ */
+void board_preboot_os(void);
+
 #endif

--
2.28.0

#1 lore raw

PATCH 1/1 bootm: add {arch,board}_preboot_os() to bootm.h

Functions that are used in multiple C modules should be defined in an include.

---
 include/bootm.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
include/bootm.h +10 -0
index 0350c349f3..a812a6bf24 100644
@@ -75,4 +75,14 @@ void board_quiesce_devices(void);
  */
 void switch_to_non_secure_mode(void);
 
+/**
+ * arch_preboot_os() - arch specific configuration before booting
+ */
+void arch_preboot_os(void);
+
+/**
+ * board_preboot_os() - board specific configuration before booting
+ */
+void board_preboot_os(void);
+
 #endif

--
2.28.0

#3 lore raw

PATCH 1/1 bootm: add {arch,board}_preboot_os() to bootm.h

Quoted 10 lines · Michael Walle

Am 2020-09-15 01:58, schrieb Heinrich Schuchardt:

Quoted 4 lines

Functions that are used in multiple C modules should be defined in an include.

I've noticed that the boards which use arch_preboot_os() (?!) or board_preboot_os() doesn't include this header, though.

Yes, this will require further patches.

Best regards

Heinrich

#4 lore raw

PATCH 1/1 bootm: add {arch,board}_preboot_os() to bootm.h

In reply to Heinrich Schuchardt
Quoted 5 lines · Heinrich Schuchardt

Functions that are used in multiple C modules should be defined in an include.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201014/62f4dacc/attachment.sig>