~ubuntu-branches/ubuntu/saucy/u-boot/saucy

« back to all changes in this revision

Viewing changes to arch/x86/include/asm/processor.h

  • Committer: Package Import Robot
  • Author(s): Clint Adams
  • Date: 2012-05-01 18:07:19 UTC
  • mfrom: (16.1.23 sid)
  • Revision ID: package-import@ubuntu.com-20120501180719-rjntk3287im4a0ns
Tags: 2012.04.01-1
* New upstream version.
  - Update mipsel-native-endianness.diff.
  - Update no-error-on-set-but-unused-variables.diff (partially merged).
  - Drop kirkwood_spi-irq_mask.diff (merged).
  - Drop kirkwood-disable-l2c.diff (merged).

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#ifndef __ASM_PROCESSOR_H_
25
25
#define __ASM_PROCESSOR_H_ 1
26
26
 
27
 
#define GDT_ENTRY_32BIT_CS      2
28
 
#define GDT_ENTRY_32BIT_DS      (GDT_ENTRY_32BIT_CS + 1)
29
 
#define GDT_ENTRY_16BIT_CS      (GDT_ENTRY_32BIT_DS + 1)
30
 
#define GDT_ENTRY_16BIT_DS      (GDT_ENTRY_16BIT_CS + 1)
 
27
#define X86_GDT_ENTRY_SIZE      8
 
28
 
 
29
#ifndef __ASSEMBLY__
 
30
 
 
31
enum {
 
32
        X86_GDT_ENTRY_NULL = 0,
 
33
        X86_GDT_ENTRY_UNUSED,
 
34
        X86_GDT_ENTRY_32BIT_CS,
 
35
        X86_GDT_ENTRY_32BIT_DS,
 
36
        X86_GDT_ENTRY_32BIT_FS,
 
37
        X86_GDT_ENTRY_16BIT_CS,
 
38
        X86_GDT_ENTRY_16BIT_DS,
 
39
        X86_GDT_NUM_ENTRIES
 
40
};
 
41
#else
 
42
/* NOTE: If the above enum is modified, this define must be checked */
 
43
#define X86_GDT_ENTRY_32BIT_DS  3
 
44
#endif
 
45
 
 
46
#define X86_GDT_SIZE            (X86_GDT_NUM_ENTRIES * X86_GDT_ENTRY_SIZE)
31
47
 
32
48
#endif