From 8c9a5d221bd394f6bc7e4a52d56458d5a37f1b70 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 28 Sep 2018 21:20:41 +0100 Subject: [PATCH] kernel: add platform_copyright() This gives somewhere for platform authors to add a copyright note when they've done masses of platform work but not touched the core much. Or for that matter print some other platform important early info... --- Kernel/include/kernel.h | 3 +++ Kernel/start.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Kernel/include/kernel.h b/Kernel/include/kernel.h index 36aa5e8c..0897b967 100644 --- a/Kernel/include/kernel.h +++ b/Kernel/include/kernel.h @@ -1036,6 +1036,9 @@ extern void map_init(void); #ifndef platform_discard extern void platform_discard(void); #endif +#ifndef platform_copyright +extern void platform_copyright(void); +#endif extern void platform_idle(void); extern uint8_t platform_rtc_secs(void); extern int platform_rtc_read(void); diff --git a/Kernel/start.c b/Kernel/start.c index 2f850184..1f4d8bcc 100644 --- a/Kernel/start.c +++ b/Kernel/start.c @@ -336,7 +336,7 @@ void fuzix_main(void) "Copyright (c) 2013-2015 Will Sowerbutts \n" "Copyright (c) 2014-2018 Alan Cox \nDevboot\n", sysinfo.uname); - + platform_copyright(); #ifndef SWAPDEV #ifdef PROC_SIZE maxproc = procmem / PROC_SIZE; -- 2.34.1