Changeset 0dc2fec in mainline for kernel/arch/ia32/include/arch/cpu.h


Ignore:
Timestamp:
2016-05-22T19:19:43Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b272c67a
Parents:
153c7a29 (diff), af2254ec (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/ia32/include/arch/cpu.h

    r153c7a29 r0dc2fec  
    3636#define KERN_ia32_CPU_H_
    3737
    38 #define EFLAGS_IF       (1 << 9)
    39 #define EFLAGS_DF       (1 << 10)
    40 #define EFLAGS_NT       (1 << 14)
    41 #define EFLAGS_RF       (1 << 16)
     38#define EFLAGS_IF       (1 << 9)
     39#define EFLAGS_DF       (1 << 10)
     40#define EFLAGS_IOPL     (3 << 12)
     41#define EFLAGS_NT       (1 << 14)
     42#define EFLAGS_RF       (1 << 16)
     43#define EFLAGS_ID       (1 << 21)
    4244
    43 #define CR4_OSFXSR_MASK      (1 << 9)
    44 #define CR4_OSXMMEXCPT_MASK  (1 << 10)
     45#define CR0_PE          (1 << 0)
     46#define CR0_TS          (1 << 3)
     47#define CR0_AM          (1 << 18)
     48#define CR0_NW          (1 << 29)
     49#define CR0_CD          (1 << 30)
     50#define CR0_PG          (1 << 31)
     51
     52#define CR4_PSE         (1 << 4)
     53#define CR4_PAE         (1 << 5)
     54#define CR4_OSFXSR      (1 << 9)
     55#define CR4_OSXMMEXCPT  (1 << 10)
     56
     57#define IA32_APIC_BASE_GE       (1 << 11)
     58
     59#define IA32_MSR_APIC_BASE      0x01b
    4560
    4661/* Support for SYSENTER and SYSEXIT */
    47 #define IA32_MSR_SYSENTER_CS   0x174U
    48 #define IA32_MSR_SYSENTER_ESP  0x175U
    49 #define IA32_MSR_SYSENTER_EIP  0x176U
     62#define IA32_MSR_SYSENTER_CS    0x174
     63#define IA32_MSR_SYSENTER_ESP   0x175
     64#define IA32_MSR_SYSENTER_EIP   0x176
    5065
    5166#ifndef __ASM__
Note: See TracChangeset for help on using the changeset viewer.