Move early testing so mm alloc is available

This commit is contained in:
Sparchatus 2022-04-28 13:38:07 +00:00
parent 57920c9aa4
commit 7b1ffe2f94

View File

@ -227,11 +227,6 @@ app_main(int argc, char *argv[]) {
// TODO: initialize mem allocator, vspace management here // TODO: initialize mem allocator, vspace management here
// Grading
grading_test_early();
// TODO: Spawn system processes etc. here
struct aos_urpc_frame *urpc = (void*)MON_URPC_VBASE; struct aos_urpc_frame *urpc = (void*)MON_URPC_VBASE;
urpc_to_bsp.shared_mem = &urpc->shared_mem_to_bsp; urpc_to_bsp.shared_mem = &urpc->shared_mem_to_bsp;
@ -245,6 +240,11 @@ app_main(int argc, char *argv[]) {
thread_create(urpc_server, &urpc_to_app_server); thread_create(urpc_server, &urpc_to_app_server);
// Grading
grading_test_early();
// TODO: Spawn system processes etc. here
struct bootinfo_serialized * bi_ser; struct bootinfo_serialized * bi_ser;
err = aos_urpc_get_bootinfo(&urpc_to_bsp, &bi_ser); err = aos_urpc_get_bootinfo(&urpc_to_bsp, &bi_ser);
if (err_is_fail(err)) return err; if (err_is_fail(err)) return err;