--- Gnu-Mach/kern/startup.c 2020/09/02 04:49:52 1.1.1.6 +++ Gnu-Mach/kern/startup.c 2020/09/02 04:54:03 1.1.1.8 @@ -36,6 +36,7 @@ #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; /* @@ -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