Changeset 46c20c8 in mainline for kernel/arch/amd64/include/pm.h


Ignore:
Timestamp:
2010-11-26T20:08:10Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
Children:
45df59a
Parents:
fb150d78 (diff), ffdd2b9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/include/pm.h

    rfb150d78 r46c20c8  
    3737
    3838#ifndef __ASM__
    39         #include <arch/types.h>
     39        #include <typedefs.h>
    4040        #include <arch/context.h>
    4141#endif
     
    6565#endif /* CONFIG_FB */
    6666
    67 #define gdtselector(des)  ((des) << 3)
    68 #define idtselector(des)  ((des) << 4)
     67#define GDT_SELECTOR(des)  ((des) << 3)
    6968
    7069#define PL_KERNEL  0
    7170#define PL_USER    3
    7271
    73 #define AR_PRESENT   ( 1 << 7)
     72#define AR_PRESENT    (1 << 7)
    7473#define AR_DATA       (2 << 3)
    7574#define AR_CODE       (3 << 3)
    7675#define AR_WRITABLE   (1 << 1)
    7776#define AR_READABLE   (1 << 1)
    78 #define AR_TSS        (0x09)
    79 #define AR_INTERRUPT  (0x0e)
    80 #define AR_TRAP       (0x0f)
     77#define AR_TSS        (0x09U)
     78#define AR_INTERRUPT  (0x0eU)
     79#define AR_TRAP       (0x0fU)
    8180
    8281#define DPL_KERNEL  (PL_KERNEL << 5)
     
    8483
    8584#define TSS_BASIC_SIZE  104
    86 #define TSS_IOMAP_SIZE  (16 * 1024 + 1)  /* 16K for bitmap + 1 terminating byte for convenience */
     85#define TSS_IOMAP_SIZE  (8 * 1024 + 1)  /* 8K for bitmap + 1 terminating byte for convenience */
    8786
    8887#define IO_PORTS  (64 * 1024)
     
    168167
    169168extern ptr_16_64_t gdtr;
    170 extern ptr_16_32_t bootstrap_gdtr;
    171169extern ptr_16_32_t protected_ap_gdtr;
    172170
Note: See TracChangeset for help on using the changeset viewer.