Make vmparam.h change work with RUMP

This commit is contained in:
matt 2015-06-30 04:20:19 +00:00
parent 4c1a8dc139
commit 058f198b88
2 changed files with 7 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: proc.h,v 1.27 2011/02/20 07:45:47 matt Exp $ */
/* $NetBSD: proc.h,v 1.28 2015/06/30 04:20:19 matt Exp $ */
/*
* Copyright (c) 1992, 1993
@ -52,11 +52,7 @@ struct mdlwp {
vaddr_t md_ss_addr; /* single step address for ptrace */
int md_ss_instr; /* single step instruction for ptrace */
volatile int md_astpending; /* AST pending on return to userland */
#if USPACE > PAGE_SIZE
int md_upte[USPACE/4096]; /* ptes for mapping u page */
#else
int md_dpte[USPACE/4096]; /* dummy ptes to keep the same */
#endif
int md_upte[2]; /* ptes for mapping u page */
};
struct mdproc {

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.53 2015/06/30 03:41:04 matt Exp $ */
/* $NetBSD: vmparam.h,v 1.54 2015/06/30 04:20:19 matt Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -42,15 +42,18 @@
#define _MIPS_VMPARAM_H_
#ifdef _KERNEL_OPT
#include "opt_multiprocessor.h"
#include "opt_cputype.h"
#include "opt_multiprocessor.h"
#include "opt_modular.h"
#endif
/*
* Machine dependent VM constants for MIPS.
*/
#if !defined(_RUMPKERNEL) && (defined(MODULAR) || defined(_MODULE))
#define MAX_PAGE_SIZE 16384
#define MIN_PAGE_SIZE 4096
#endif
/*
* We normally use a 4K page but may use 16K on MIPS systems.