Changeset e3b9572 in mainline for arch/amd64/include/asm.h


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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.