Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154457593
D45930.id140717.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D45930.id140717.diff
View Options
diff --git a/sys/kern/subr_module.c b/sys/kern/subr_module.c
--- a/sys/kern/subr_module.c
+++ b/sys/kern/subr_module.c
@@ -293,6 +293,7 @@
switch (hdr[0]) {
case MODINFO_ADDR:
case MODINFO_METADATA|MODINFOMD_FONT:
+ case MODINFO_METADATA|MODINFOMD_SPLASH:
case MODINFO_METADATA|MODINFOMD_SSYM:
case MODINFO_METADATA|MODINFOMD_ESYM:
ptr = (vm_offset_t *)(curp + (sizeof(uint32_t) * 2));
@@ -423,6 +424,11 @@
case MODINFOMD_FONT:
sbuf_cat(sbp, "MODINFOMD_FONT");
break;
+#endif
+#ifdef MODINFOMD_SPLASH
+ case MODINFOMD_SPLASH:
+ sbuf_cat(sbp, "MODINFOMD_SPLASH");
+ break;
#endif
default:
sbuf_cat(sbp, "unrecognized metadata type");
@@ -475,6 +481,9 @@
#endif
#ifdef MODINFOMD_FONT
case MODINFO_METADATA | MODINFOMD_FONT:
+#endif
+#ifdef MODINFOMD_SPLASH
+ case MODINFO_METADATA | MODINFOMD_SPLASH:
#endif
sbuf_print_vmoffset(sbp, *(vm_offset_t *)bptr);
break;
diff --git a/sys/sys/linker.h b/sys/sys/linker.h
--- a/sys/sys/linker.h
+++ b/sys/sys/linker.h
@@ -248,6 +248,7 @@
#define MODINFOMD_FW_HANDLE 0x000c /* Firmware dependent handle */
#define MODINFOMD_KEYBUF 0x000d /* Crypto key intake buffer */
#define MODINFOMD_FONT 0x000e /* Console font */
+#define MODINFOMD_SPLASH 0x000f /* Console splash screen */
#define MODINFOMD_NOCOPY 0x8000 /* don't copy this metadata to the kernel */
#define MODINFOMD_DEPLIST (0x4001 | MODINFOMD_NOCOPY) /* depends on */
diff --git a/sys/sys/splash.h b/sys/sys/splash.h
new file mode 100644
--- /dev/null
+++ b/sys/sys/splash.h
@@ -0,0 +1,36 @@
+/*-
+ * Copyright (c) 2024 Beckhoff Automation GmbH & Co. KG
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ */
+
+#ifndef _SYS_SPLASH_H_
+#define _SYS_SPLASH_H_
+
+struct splash_info {
+ uint32_t si_width;
+ uint32_t si_height;
+ uint32_t si_depth;
+};
+
+#endif /* _SYS_SPLASH_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 29, 4:17 PM (10 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32357958
Default Alt Text
D45930.id140717.diff (3 KB)
Attached To
Mode
D45930: linker: Add MODINFOMD_SPLASH type
Attached
Detach File
Event Timeline
Log In to Comment