OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-x86_64/] [segment.h] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#ifndef _ASM_SEGMENT_H
2
#define _ASM_SEGMENT_H
3
 
4
#define __KERNEL_CS     0x10
5
#define __KERNEL_DS     0x18
6
 
7
#define __KERNEL32_CS   0x38
8
 
9
/*
10
 * we cannot use the same code segment descriptor for user and kernel
11
 * even not in the long flat model, because of different DPL /kkeil
12
 * GDT layout to get 64bit syscall right (sysret hardcodes gdt offsets)
13
 */
14
 
15
#define __USER32_CS   0x23   /* 4*8+3 */ 
16
#define __USER_DS     0x2b   /* 5*8+3 */ 
17
#define __USER_CS     0x33   /* 6*8+3 */ 
18
#define __USER32_DS     __USER_DS 
19
#define __KERNEL_COMPAT32_CS 0x08
20
 
21
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.