svn commit: r268331 - projects/arm64/sys/arm64/arm64
Andrew Turner
andrew at FreeBSD.org
Sun Jul 6 21:55:08 UTC 2014
Author: andrew
Date: Sun Jul 6 21:55:08 2014
New Revision: 268331
URL: http://svnweb.freebsd.org/changeset/base/268331
Log:
Add a minimal copy of cpu_startup
Modified:
projects/arm64/sys/arm64/arm64/machdep.c
Modified: projects/arm64/sys/arm64/arm64/machdep.c
==============================================================================
--- projects/arm64/sys/arm64/arm64/machdep.c Sun Jul 6 20:09:23 2014 (r268330)
+++ projects/arm64/sys/arm64/arm64/machdep.c Sun Jul 6 21:55:08 2014 (r268331)
@@ -30,21 +30,30 @@ __FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/buf.h>
#include <sys/bus.h>
#include <sys/cpu.h>
#include <sys/efi.h>
#include <sys/imgact.h>
#include <sys/kdb.h>
+#include <sys/kernel.h>
#include <sys/linker.h>
#include <sys/pcpu.h>
#include <sys/proc.h>
#include <sys/ptrace.h>
#include <sys/reboot.h>
+#include <sys/rwlock.h>
#include <sys/signalvar.h>
#include <sys/sysproto.h>
#include <sys/ucontext.h>
+#include <vm/vm.h>
+#include <vm/vm_kern.h>
+#include <vm/vm_object.h>
+#include <vm/vm_page.h>
#include <vm/pmap.h>
+#include <vm/vm_map.h>
+#include <vm/vm_pager.h>
#include <machine/cpu.h>
#include <machine/machdep.h>
@@ -67,6 +76,18 @@ long realmem = 0;
vm_paddr_t physmap[PHYSMAP_SIZE];
u_int physmap_idx;
+struct kva_md_info kmi;
+
+static void
+cpu_startup(void *dummy)
+{
+ vm_ksubmap_init(&kmi);
+ bufinit();
+ vm_pager_bufferinit();
+}
+
+SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL);
+
void
bzero(void *buf, size_t len)
{
More information about the svn-src-projects
mailing list