diff --git a/src/kernel/boot/loader/main.cpp b/src/kernel/boot/loader/main.cpp index c578a65aea..e682bd3a54 100644 --- a/src/kernel/boot/loader/main.cpp +++ b/src/kernel/boot/loader/main.cpp @@ -13,14 +13,23 @@ #include +#define TRACE_MAIN 0 +#if TRACE_MAIN +# define TRACE(x) printf x +#else +# define TRACE(x) ; +#endif + + extern "C" int boot(stage2_args *args) { - puts("Oh yes, we are\n"); + TRACE(("boot(): enter\n")); + if (heap_init(args) < B_OK) panic("Could not initialize heap!\n"); - puts("heap initialized..."); + TRACE(("boot(): heap initialized...\n")); // the main platform dependent initialisation // has already taken place at this point.