Changeset e3b9572 in mainline for arch/amd64/include


Ignore:
Timestamp:
2005-09-01T09:42:10Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1dde3b61
Parents:
c842f04
Message:

Interrupts for amd64.

Location:
arch/amd64/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/include/asm.h

    rc842f04 re3b9572  
    3737void asm_fake_loop(__u32 t);
    3838
    39 
    4039/* TODO: implement the real stuff */
    4140static inline __address get_stack_base(void)
     
    4544
    4645static inline void cpu_sleep(void) { __asm__("hlt"); };
     46static inline void cpu_halt(void) { __asm__("hlt"); };
    4747
    4848
     
    138138 * @return Value read.
    139139 */
    140 static inline __u32 read_cr2(void) { __u64 v; __asm__ volatile ("movq %%cr2,%0" : "=r" (v)); return v; }
     140static inline __u64 read_cr2(void) { __u64 v; __asm__ volatile ("movq %%cr2,%0" : "=r" (v)); return v; }
    141141
    142142/** Write CR3
     
    154154 * @return Value read.
    155155 */
    156 static inline __u32 read_cr3(void) { __u64 v; __asm__ volatile ("movq %%cr3,%0" : "=r" (v)); return v; }
    157 
    158 /** Set priority level low
    159  *
    160  * Enable interrupts and return previous
    161  * value of EFLAGS.
    162  */
    163 
     156static inline __u64 read_cr3(void) { __u64 v; __asm__ volatile ("movq %%cr3,%0" : "=r" (v)); return v; }
    164157
    165158
  • arch/amd64/include/pm.h

    rc842f04 re3b9572  
    8787        unsigned base_16_23: 8;
    8888        unsigned type: 4;
    89         unsigned reserve1 : 1;
     89        unsigned : 1;
    9090        unsigned dpl : 2;
    9191        unsigned present : 1;
    9292        unsigned limit_16_19: 4;
    9393        unsigned available: 1;
    94         unsigned reserve2: 2;
     94        unsigned : 2;
    9595        unsigned granularity : 1;
    9696        unsigned base_24_31: 8;
    9797        unsigned base_32_63 : 32;
    98         unsigned reserve3 : 32;
     98        unsigned : 32;
    9999} __attribute__ ((packed));
    100100
     
    108108        unsigned present : 1;
    109109        unsigned offset_16_31: 16;
    110         unsigned offset_32_63: 16;
    111         unsigned reserved : 32;
     110        unsigned offset_32_63: 32;
     111        unsigned : 32;
    112112} __attribute__ ((packed));
    113113
Note: See TracChangeset for help on using the changeset viewer.