~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef _ASM_X86_SEGMENT_H
2
2
#define _ASM_X86_SEGMENT_H
3
3
 
 
4
#include <linux/const.h>
 
5
 
4
6
/* Constructor for a conventional segment GDT (or LDT) entry */
5
7
/* This is a macro so it can be used in initializers */
6
8
#define GDT_ENTRY(flags, base, limit)                   \
7
 
        ((((base)  & 0xff000000ULL) << (56-24)) |       \
8
 
         (((flags) & 0x0000f0ffULL) << 40) |            \
9
 
         (((limit) & 0x000f0000ULL) << (48-16)) |       \
10
 
         (((base)  & 0x00ffffffULL) << 16) |            \
11
 
         (((limit) & 0x0000ffffULL)))
 
9
        ((((base)  & _AC(0xff000000,ULL)) << (56-24)) | \
 
10
         (((flags) & _AC(0x0000f0ff,ULL)) << 40) |      \
 
11
         (((limit) & _AC(0x000f0000,ULL)) << (48-16)) | \
 
12
         (((base)  & _AC(0x00ffffff,ULL)) << 16) |      \
 
13
         (((limit) & _AC(0x0000ffff,ULL))))
12
14
 
13
15
/* Simple and small GDT entries for booting only */
14
16