Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jul 2014 21:55:08 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r268331 - projects/arm64/sys/arm64/arm64
Message-ID:  <201407062155.s66Lt8cc045115@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407062155.s66Lt8cc045115>