privatespace.h (82309) | privatespace.h (83366) |
---|---|
1/*- 2 * Copyright (c) Peter Wemm <peter@netplex.com.au> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) Peter Wemm <peter@netplex.com.au> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/i386/include/privatespace.h 82309 2001-08-25 02:20:02Z peter $ | 26 * $FreeBSD: head/sys/i386/include/privatespace.h 83366 2001-09-12 08:38:13Z julian $ |
27 */ 28 29#ifndef _MACHINE_PRIVATESPACE_H_ 30#define _MACHINE_PRIVATESPACE_H_ 31 32/* 33 * This is the upper (0xff800000) address space layout that is per-cpu. 34 * It is setup in locore.s and pmap.c for the BSP and in mp_machdep.c for 35 * each AP. This is only applicable to the x86 SMP kernel. 36 */ 37struct privatespace { 38 /* page 0 - data page */ 39 struct globaldata globaldata; 40 char __filler0[PAGE_SIZE - sizeof(struct globaldata)]; 41 | 27 */ 28 29#ifndef _MACHINE_PRIVATESPACE_H_ 30#define _MACHINE_PRIVATESPACE_H_ 31 32/* 33 * This is the upper (0xff800000) address space layout that is per-cpu. 34 * It is setup in locore.s and pmap.c for the BSP and in mp_machdep.c for 35 * each AP. This is only applicable to the x86 SMP kernel. 36 */ 37struct privatespace { 38 /* page 0 - data page */ 39 struct globaldata globaldata; 40 char __filler0[PAGE_SIZE - sizeof(struct globaldata)]; 41 |
42 /* page 1 - idle stack (UPAGES pages) */ 43 char idlestack[UPAGES * PAGE_SIZE]; 44 /* page 1+UPAGES... */ | 42 /* page 1 - idle stack (KSTACK_PAGES pages) */ 43 char idlekstack[KSTACK_PAGES * PAGE_SIZE]; 44 /* page 1+KSTACK_PAGES... */ |
45}; 46 47extern struct privatespace SMP_prvspace[]; 48 49#endif /* ! _MACHINE_PRIVATESPACE_H_ */ | 45}; 46 47extern struct privatespace SMP_prvspace[]; 48 49#endif /* ! _MACHINE_PRIVATESPACE_H_ */ |