Changeset 37b451f7 in mainline for arch/amd64/include/asm.h


Ignore:
Timestamp:
2006-02-07T02:22:44Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
65640fef
Parents:
dd4d6b0
Message:

Added (finally!) userspace to AMD64.
It does not work on Simics *$U&%&$&*#. Broken simics!!!
There should be probably LEA instead of MOV/ADD, but LEA does not
work in neither qemu nor bochs. Any other simulator to test? :-/

File:
1 edited

Legend:

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

    rdd4d6b0 r37b451f7  
    7373static inline void outb(__u16 port, __u8 val) { __asm__ volatile ("outb %b0, %w1\n" : : "a" (val), "d" (port) ); }
    7474
     75/** Swap Hidden part of GS register with visible one */
     76static inline void swapgs(void) { __asm__ volatile("swapgs"); }
     77
    7578/** Enable interrupts.
    7679 *
Note: See TracChangeset for help on using the changeset viewer.