Changeset 3375bd4 in mainline for kernel/generic/src/main/main.c


Ignore:
Timestamp:
2011-05-17T07:44:17Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
04c418d, 2586860, 5e6e50b
Parents:
72cd53d (diff), 0d8a304 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

Conflicts:
kernel/generic/src/console/console.c

size of klog, taken upstream

uspace/app/klog/klog.c

taken upstream (upstream fixed the broken output on huge load)

uspace/app/tester/Makefile
uspace/app/tester/tester.c
uspace/app/tester/tester.h

merged without problems

uspace/lib/c/include/as.h

merged without problems (upstream use bare declarations)

Also needed to fix some missing includes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/main.c

    r72cd53d r3375bd4  
    7171#include <mm/as.h>
    7272#include <mm/slab.h>
     73#include <mm/reserve.h>
    7374#include <synch/waitq.h>
    7475#include <synch/futex.h>
     
    217218        ddi_init();
    218219        arch_post_mm_init();
     220        reserve_init();
    219221        arch_pre_smp_init();
    220222        smp_init();
     
    223225        slab_enable_cpucache();
    224226       
    225         printf("Detected %u CPU(s), %" PRIu64 " MiB free memory\n",
    226             config.cpu_count, SIZE2MB(zones_total_size()));
     227        uint64_t size;
     228        const char *size_suffix;
     229        bin_order_suffix(zones_total_size(), &size, &size_suffix, false);
     230        printf("Detected %u CPU(s), %" PRIu64 " %s free memory\n",
     231            config.cpu_count, size, size_suffix);
    227232       
    228233        cpu_init();
Note: See TracChangeset for help on using the changeset viewer.