Created
December 24, 2025 16:43
-
-
Save tsutsui/1d8b6c4a3da9333d47020c667c0348e7 to your computer and use it in GitHub Desktop.
Update NetBSD flag ASCII Art in bootloaders
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: sys/lib/libsa/bootcfg.c | |
| =================================================================== | |
| RCS file: /cvsroot/src/sys/lib/libsa/bootcfg.c,v | |
| retrieving revision 1.10 | |
| diff -u -p -d -r1.10 bootcfg.c | |
| --- sys/lib/libsa/bootcfg.c 6 May 2025 18:16:12 -0000 1.10 | |
| +++ sys/lib/libsa/bootcfg.c 24 Dec 2025 16:34:02 -0000 | |
| @@ -291,11 +291,11 @@ print_bootcfg_banner(const char *bootpro | |
| /* If the user has not specified a banner, print a default one. */ | |
| printf("\n"); | |
| - printf(" \\\\-__,------,___.\n"); | |
| - printf(" \\\\ __,---` %s\n", bootprog_name); | |
| - printf(" \\\\ `---,_. Revision %s\n", bootprog_rev); | |
| - printf(" \\\\-,_____,.---`\n"); | |
| - printf(" \\\\\n"); | |
| - printf(" \\\\\n"); | |
| - printf(" \\\\\n\n"); | |
| + printf(",--..,__,.,--''_-,\n"); | |
| + printf("\\\\ -'.._ %s\n", bootprog_name); | |
| + printf(" \\\\ _ _,--''' ` Revision %s\n", bootprog_rev); | |
| + printf(" \\\\ ``''\n"); | |
| + printf(" \\\\\n"); | |
| + printf(" \\\\\n"); | |
| + printf(" \\\\\n\n"); | |
| } | |
| Index: sys/arch/luna68k/stand/boot/init_main.c | |
| =================================================================== | |
| RCS file: /cvsroot/src/sys/arch/luna68k/stand/boot/init_main.c,v | |
| retrieving revision 1.17 | |
| diff -u -p -d -r1.17 init_main.c | |
| --- sys/arch/luna68k/stand/boot/init_main.c 24 Sep 2024 11:17:54 -0000 1.17 | |
| +++ sys/arch/luna68k/stand/boot/init_main.c 24 Dec 2025 16:34:02 -0000 | |
| @@ -77,6 +77,7 @@ | |
| #include <luna68k/stand/boot/romvec.h> | |
| #include <luna68k/stand/boot/status.h> | |
| #include <lib/libsa/loadfile.h> | |
| +#include <lib/libsa/bootcfg.h> | |
| #ifdef SUPPORT_ETHERNET | |
| #include <lib/libsa/dev_net.h> | |
| #endif | |
| @@ -198,10 +199,8 @@ main(void) | |
| cninit(); | |
| - printf("\n"); | |
| - printf(">> %s, Revision %s\n", bootprog_name, bootprog_rev); | |
| - printf(">> (based on Stinger ver 0.0 [%s])\n", VERS_LOCAL); | |
| - printf("\n"); | |
| + bootcfg_info.banner[0] = '\0'; | |
| + print_bootcfg_banner(bootprog_name, bootprog_rev); | |
| i = ROM_memsize; | |
| printf("Machine model = %s\n", machstr); | |
| Index: sys/arch/sparc/stand/boot/boot.c | |
| =================================================================== | |
| RCS file: /cvsroot/src/sys/arch/sparc/stand/boot/boot.c,v | |
| retrieving revision 1.30 | |
| diff -u -p -d -r1.30 boot.c | |
| --- sys/arch/sparc/stand/boot/boot.c 11 Jun 2016 06:43:16 -0000 1.30 | |
| +++ sys/arch/sparc/stand/boot/boot.c 24 Dec 2025 16:34:02 -0000 | |
| @@ -38,6 +38,9 @@ | |
| #include <lib/libsa/stand.h> | |
| #include <lib/libsa/loadfile.h> | |
| +#if 1 | |
| +#include <lib/libsa/bootcfg.h> | |
| +#endif | |
| #include <lib/libkern/libkern.h> | |
| #include <machine/promlib.h> | |
| @@ -256,7 +259,12 @@ main(void) | |
| prom_init(); | |
| mmu_init(); | |
| +#if 0 | |
| printf(">> %s, Revision %s\n", bootprog_name, bootprog_rev); | |
| +#else | |
| + bootcfg_info.banner[0] = '\0'; | |
| + print_bootcfg_banner(bootprog_name, bootprog_rev); | |
| +#endif | |
| /* massage machine prom */ | |
| prom_patch(); |
Author
tsutsui
commented
Dec 24, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment