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


Ignore:
Timestamp:
2005-09-01T01:08:51Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
75d5721
Parents:
470c468
Message:

Fixed bad type in frame.c.
Amd64 prints banner.

File:
1 edited

Legend:

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

    r470c468 rd9f81af3  
    140140static inline __u32 read_cr2(void) { __u64 v; __asm__ volatile ("movq %%cr2,%0" : "=r" (v)); return v; }
    141141
     142/** Write CR3
     143 *
     144 * Write value to CR3.
     145 *
     146 * @param v Value to be written.
     147 */
     148static inline void write_cr3(__u64 v) { __asm__ volatile ("movq %0,%%cr3\n" : : "r" (v)); }
     149
     150/** Read CR3
     151 *
     152 * Return value in CR3
     153 *
     154 * @return Value read.
     155 */
     156static 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
     164
    142165
    143166extern size_t interrupt_handler_size;
Note: See TracChangeset for help on using the changeset viewer.