Deleted Added
full compact
segments.h (114349) segments.h (114987)
1/*-
2 * Copyright (c) 1989, 1990 William F. Jolitz
3 * Copyright (c) 1990 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * William Jolitz.
8 *

--- 21 unchanged lines hidden (view full) ---

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * from: @(#)segments.h 7.1 (Berkeley) 5/9/91
1/*-
2 * Copyright (c) 1989, 1990 William F. Jolitz
3 * Copyright (c) 1990 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * William Jolitz.
8 *

--- 21 unchanged lines hidden (view full) ---

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * from: @(#)segments.h 7.1 (Berkeley) 5/9/91
38 * $FreeBSD: head/sys/amd64/include/segments.h 114349 2003-05-01 01:05:25Z peter $
38 * $FreeBSD: head/sys/amd64/include/segments.h 114987 2003-05-14 04:10:49Z peter $
39 */
40
41#ifndef _MACHINE_SEGMENTS_H_
42#define _MACHINE_SEGMENTS_H_
43
44/*
45 * AMD64 Segmentation Data Structures and definitions
46 */

--- 114 unchanged lines hidden (view full) ---

161struct region_descriptor {
162 unsigned long rd_limit:16; /* segment extent */
163 unsigned long rd_base:64 __packed; /* base address */
164} __packed;
165
166/*
167 * Size of IDT table
168 */
39 */
40
41#ifndef _MACHINE_SEGMENTS_H_
42#define _MACHINE_SEGMENTS_H_
43
44/*
45 * AMD64 Segmentation Data Structures and definitions
46 */

--- 114 unchanged lines hidden (view full) ---

161struct region_descriptor {
162 unsigned long rd_limit:16; /* segment extent */
163 unsigned long rd_base:64 __packed; /* base address */
164} __packed;
165
166/*
167 * Size of IDT table
168 */
169#define NIDT 129 /* 32 reserved, 16 h/w, 0 s/w, linux's 0x80 */
169#define NIDT 256 /* 32 reserved, 16 h/w, 0 s/w, linux's 0x80 */
170#define NRSVIDT 32 /* reserved entries for cpu exceptions */
171
172/*
173 * Entries in the Global Descriptor Table (GDT)
174 */
175#define GNULL_SEL 0 /* Null Descriptor */
176#define GCODE_SEL 1 /* Kernel Code Descriptor */
177#define GDATA_SEL 2 /* Kernel Data Descriptor */

--- 22 unchanged lines hidden ---
170#define NRSVIDT 32 /* reserved entries for cpu exceptions */
171
172/*
173 * Entries in the Global Descriptor Table (GDT)
174 */
175#define GNULL_SEL 0 /* Null Descriptor */
176#define GCODE_SEL 1 /* Kernel Code Descriptor */
177#define GDATA_SEL 2 /* Kernel Data Descriptor */

--- 22 unchanged lines hidden ---