Move early testing so mm alloc is available
This commit is contained in:
parent
57920c9aa4
commit
7b1ffe2f94
@ -227,11 +227,6 @@ app_main(int argc, char *argv[]) {
|
||||
|
||||
// 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;
|
||||
|
||||
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);
|
||||
|
||||
// Grading
|
||||
grading_test_early();
|
||||
|
||||
// TODO: Spawn system processes etc. here
|
||||
|
||||
struct bootinfo_serialized * bi_ser;
|
||||
err = aos_urpc_get_bootinfo(&urpc_to_bsp, &bi_ser);
|
||||
if (err_is_fail(err)) return err;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user