param.h (757) | param.h (785) |
---|---|
1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)param.h 5.8 (Berkeley) 6/28/91 | 1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)param.h 5.8 (Berkeley) 6/28/91 |
37 * $Id: param.h,v 1.8 1993/11/07 17:42:58 wollman Exp $ | 37 * $Id: param.h,v 1.9 1993/11/13 02:25:14 davidg Exp $ |
38 */ 39 40#ifndef _MACHINE_PARAM_H_ 41#define _MACHINE_PARAM_H_ 1 42 43/* 44 * Machine dependent constants for Intel 386. 45 */ --- 106 unchanged lines hidden (view full) --- 152#define i386_trunc_pdr(x) ((unsigned)(x) & ~(NBPDR-1)) 153#define i386_round_page(x) ((((unsigned)(x)) + NBPG - 1) & ~(NBPG-1)) 154#define i386_trunc_page(x) ((unsigned)(x) & ~(NBPG-1)) 155#define i386_btod(x) ((unsigned)(x) >> PDRSHIFT) 156#define i386_dtob(x) ((unsigned)(x) << PDRSHIFT) 157#define i386_btop(x) ((unsigned)(x) >> PGSHIFT) 158#define i386_ptob(x) ((unsigned)(x) << PGSHIFT) 159 | 38 */ 39 40#ifndef _MACHINE_PARAM_H_ 41#define _MACHINE_PARAM_H_ 1 42 43/* 44 * Machine dependent constants for Intel 386. 45 */ --- 106 unchanged lines hidden (view full) --- 152#define i386_trunc_pdr(x) ((unsigned)(x) & ~(NBPDR-1)) 153#define i386_round_page(x) ((((unsigned)(x)) + NBPG - 1) & ~(NBPG-1)) 154#define i386_trunc_page(x) ((unsigned)(x) & ~(NBPG-1)) 155#define i386_btod(x) ((unsigned)(x) >> PDRSHIFT) 156#define i386_dtob(x) ((unsigned)(x) << PDRSHIFT) 157#define i386_btop(x) ((unsigned)(x) >> PGSHIFT) 158#define i386_ptob(x) ((unsigned)(x) << PGSHIFT) 159 |
160/* 161 * phystokv stolen from SCSI device drivers and fixed to use KERNBASE 162 */ 163#define PHYSTOKV(x) (x | KERNBASE) | |
164#endif /* _MACHINE_PARAM_H_ */ | 160#endif /* _MACHINE_PARAM_H_ */ |