start: move memory printing
authorAlan Cox <alan@linux.intel.com>
Sat, 16 Feb 2019 22:07:39 +0000 (22:07 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 16 Feb 2019 22:07:39 +0000 (22:07 +0000)
Some platforms benefit from sizing memory later (or even stealing memory during
boot dynamically) so move the reporting.

Kernel/start.c

index 348d602..70b8d10 100644 (file)
@@ -361,13 +361,14 @@ void fuzix_main(void)
           scheduling and the like */
        ptab_end = &ptab[maxproc];
 
-       /* Parameters message */
-       kprintf("%dkB total RAM, %dkB available to processes (%d processes max)\n", ramsize, procmem, maxproc);
        bufinit();
        fstabinit();
        pagemap_init();
        create_init();
 
+       /* Parameters message */
+       kprintf("%dkB total RAM, %dkB available to processes (%d processes max)\n", ramsize, procmem, maxproc);
+
        /* runtime configurable, defaults to build time setting */
        ticks_per_dsecond = TICKSPERSEC / 10;