fix build
This commit is contained in:
parent
9c377dcfe1
commit
6a94506d9a
@ -1,9 +1,9 @@
|
||||
# $NetBSD: GENERIC,v 1.5 2010/11/23 11:14:07 hannken Exp $
|
||||
# $NetBSD: GENERIC,v 1.6 2011/08/10 01:32:43 jmcneill Exp $
|
||||
|
||||
include "arch/usermode/conf/std.usermode"
|
||||
|
||||
options INCLUDE_CONFIG_FILE
|
||||
#ident "GENERIC-$Revision: 1.5 $"
|
||||
#ident "GENERIC-$Revision: 1.6 $"
|
||||
maxusers 32
|
||||
makeoptions DEBUG="-g3"
|
||||
makeoptions COPTS="-O2 -fno-omit-frame-pointer"
|
||||
@ -43,15 +43,3 @@ clock0 at mainbus?
|
||||
ttycons0 at mainbus?
|
||||
|
||||
pseudo-device loop
|
||||
pseudo-device md
|
||||
|
||||
#
|
||||
# accept filters
|
||||
pseudo-device accf_data # "dataready" accept filter
|
||||
pseudo-device accf_http # "httpready" accept filter
|
||||
|
||||
options MEMORY_DISK_HOOKS
|
||||
options MEMORY_DISK_IS_ROOT
|
||||
options MEMORY_DISK_SERVER=0
|
||||
options MEMORY_DISK_ROOT_SIZE=10000
|
||||
options MEMORY_DISK_RBFLAGS=RB_SINGLE # boot in single-user mode
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile.usermode,v 1.4 2011/01/21 15:59:09 joerg Exp $
|
||||
# $NetBSD: Makefile.usermode,v 1.5 2011/08/10 01:32:43 jmcneill Exp $
|
||||
|
||||
MACHINE_ARCH= usermode
|
||||
USETOOLS?= no
|
||||
@ -17,7 +17,7 @@ GENASSYM_CONF= ${USERMODE}/usermode/genassym.cf
|
||||
## (2) compile settings
|
||||
##
|
||||
DEFCOPTS= -O2
|
||||
CPPFLAGS+= -Dusermode -Dmalloc=kernmalloc -Dfree=kernfree
|
||||
CPPFLAGS+= -Dusermode
|
||||
CPPFLAGS.init_main.c+= -Dmain=kernmain
|
||||
AFLAGS+= -x assembler-with-cpp
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: clock.c,v 1.4 2009/11/27 03:23:14 rmind Exp $ */
|
||||
/* $NetBSD: clock.c,v 1.5 2011/08/10 01:32:44 jmcneill Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 Jared D. McNeill <jmcneill@invisible.ca>
|
||||
@ -27,13 +27,14 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.4 2009/11/27 03:23:14 rmind Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.5 2011/08/10 01:32:44 jmcneill Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/device.h>
|
||||
#include <sys/timetc.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <machine/mainbus.h>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cpu.c,v 1.7 2010/02/08 19:02:32 joerg Exp $ */
|
||||
/* $NetBSD: cpu.c,v 1.8 2011/08/10 01:32:44 jmcneill Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 Jared D. McNeill <jmcneill@invisible.ca>
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.7 2010/02/08 19:02:32 joerg Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.8 2011/08/10 01:32:44 jmcneill Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/conf.h>
|
||||
@ -43,6 +43,7 @@ __KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.7 2010/02/08 19:02:32 joerg Exp $");
|
||||
|
||||
#include <machine/cpu.h>
|
||||
#include <machine/mainbus.h>
|
||||
#include <machine/pcb.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
#include <uvm/uvm_page.h>
|
||||
|
@ -0,0 +1,37 @@
|
||||
/* $NetBSD: bus.h,v 1.2 2011/08/10 01:32:44 jmcneill Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2011 Jared D. McNeill <jmcneill@invisible.ca>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
||||
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
||||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef _ARCH_USERMODE_INCLUDE_BUS_H
|
||||
#define _ARCH_USERMODE_INCLUDE_BUS_H
|
||||
|
||||
struct bus_space_tag;
|
||||
typedef struct bus_space_tag *bus_space_tag_t;
|
||||
|
||||
typedef vaddr_t bus_space_handle_t;
|
||||
|
||||
#endif /* !_ARCH_USERMODE_INCLUDE_BUS_H */
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.9 2010/02/08 19:02:32 joerg Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.10 2011/08/10 01:32:44 jmcneill Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 Jared D. McNeill <jmcneill@invisible.ca>
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.9 2010/02/08 19:02:32 joerg Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.10 2011/08/10 01:32:44 jmcneill Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -39,6 +39,8 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.9 2010/02/08 19:02:32 joerg Exp $");
|
||||
#include <uvm/uvm_extern.h>
|
||||
#include <uvm/uvm_page.h>
|
||||
|
||||
#include <dev/mm.h>
|
||||
|
||||
#include "opt_memsize.h"
|
||||
|
||||
char machine[] = "usermode";
|
||||
@ -100,6 +102,12 @@ setregs(struct lwp *l, struct exec_package *pack, vaddr_t stack)
|
||||
}
|
||||
|
||||
void
|
||||
sendsig(const ksiginfo_t *ksi, const sigset_t *mask)
|
||||
sendsig_siginfo(const ksiginfo_t *ksi, const sigset_t *mask)
|
||||
{
|
||||
}
|
||||
|
||||
int
|
||||
mm_md_physacc(paddr_t pa, vm_prot_t prog)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.5 2009/11/07 07:27:48 cegger Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.6 2011/08/10 01:32:44 jmcneill Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 Jared D. McNeill <jmcneill@invisible.ca>
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.5 2009/11/07 07:27:48 cegger Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.6 2011/08/10 01:32:44 jmcneill Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -39,8 +39,12 @@ __KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.5 2009/11/07 07:27:48 cegger Exp $");
|
||||
|
||||
#include "opt_memsize.h"
|
||||
|
||||
struct pmap pmap_kernel_store;
|
||||
static uint8_t pmap_memory[1024*MEMSIZE] __attribute__((__aligned__));
|
||||
extern void * calloc(size_t, size_t);
|
||||
|
||||
static struct pmap pmap_kernel_store;
|
||||
struct pmap * const kernel_pmap_ptr = &pmap_kernel_store;
|
||||
|
||||
static uint8_t *pmap_memory;
|
||||
static vaddr_t virtual_avail, virtual_end;
|
||||
static vaddr_t pmap_maxkvaddr;
|
||||
|
||||
@ -49,9 +53,9 @@ void pmap_bootstrap(void);
|
||||
void
|
||||
pmap_bootstrap(void)
|
||||
{
|
||||
#if 0
|
||||
vsize_t bufsz;
|
||||
#endif
|
||||
pmap_memory = calloc(1, 1024 * MEMSIZE);
|
||||
if (pmap_memory == NULL)
|
||||
panic("pmap_bootstrap: no memory");
|
||||
|
||||
virtual_avail = (vaddr_t)pmap_memory;
|
||||
virtual_end = virtual_avail + sizeof(pmap_memory);
|
||||
@ -78,12 +82,6 @@ pmap_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
pmap_t
|
||||
pmap_kernel(void)
|
||||
{
|
||||
return &pmap_kernel_store;
|
||||
}
|
||||
|
||||
void
|
||||
pmap_virtual_space(vaddr_t *vstartp, vaddr_t *vendp)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_machdep.c,v 1.2 2009/10/21 16:07:00 snj Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.3 2011/08/10 01:32:44 jmcneill Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 Jared D. McNeill <jmcneill@invisible.ca>
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.2 2009/10/21 16:07:00 snj Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.3 2011/08/10 01:32:44 jmcneill Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -35,9 +35,10 @@ __KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.2 2009/10/21 16:07:00 snj Exp $");
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
void
|
||||
int
|
||||
vmapbuf(struct buf *bp, vsize_t len)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user