--- Gnu-Mach/kern/startup.c 2020/09/02 04:47:27 1.1.1.5 +++ Gnu-Mach/kern/startup.c 2020/09/02 04:54:03 1.1.1.8 @@ -36,11 +36,12 @@ #include #include #include +#include #include #include #include -#include #include +#include #include #include #include @@ -77,7 +78,6 @@ boolean_t reboot_on_panic = TRUE; #endif /* NCPUS > 1 */ /* XX */ -extern vm_offset_t phys_first_addr, phys_last_addr; extern char *kernel_cmdline; /* @@ -108,10 +108,10 @@ void setup_main(void) #endif /* MACH_KDB */ panic_init(); - printf_init(); sched_init(); vm_mem_bootstrap(); + rdxtree_cache_init(); ipc_bootstrap(); vm_mem_init(); ipc_init(); @@ -136,7 +136,7 @@ void setup_main(void) mapable_time_init(); machine_info.max_cpus = NCPUS; - machine_info.memory_size = phys_last_addr - phys_first_addr; /* XXX mem_size */ + machine_info.memory_size = vm_page_mem_size(); /* XXX phys_addr_t -> vm_size_t */ machine_info.avail_cpus = 0; machine_info.major_version = KERNEL_MAJOR_VERSION; machine_info.minor_version = KERNEL_MINOR_VERSION; @@ -158,6 +158,8 @@ void setup_main(void) recompute_priorities(NULL); compute_mach_factor(); + gsync_setup (); + /* * Create a kernel thread to start the other kernel * threads. Thread_resume (from kernel_thread) calls