kernel: add platform_copyright()
authorAlan Cox <alan@linux.intel.com>
Fri, 28 Sep 2018 20:20:41 +0000 (21:20 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 28 Sep 2018 20:21:15 +0000 (21:21 +0100)
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
Kernel/start.c

index 36aa5e8..0897b96 100644 (file)
@@ -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);
index 2f85018..1f4d8bc 100644 (file)
@@ -336,7 +336,7 @@ void fuzix_main(void)
                        "Copyright (c) 2013-2015 Will Sowerbutts <will@sowerbutts.com>\n"
                        "Copyright (c) 2014-2018 Alan Cox <alan@etchedpixels.co.uk>\nDevboot\n",
                        sysinfo.uname);
-
+       platform_copyright();
 #ifndef SWAPDEV
 #ifdef PROC_SIZE
        maxproc = procmem / PROC_SIZE;