Changeset 37b451f7 in mainline for arch/amd64/include


Ignore:
Timestamp:
2006-02-07T02:22:44Z (20 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? :-/

Location:
arch/amd64/include
Files:
2 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 *
  • arch/amd64/include/cpu.h

    rdd4d6b0 r37b451f7  
    4242#define AMD_MSR_LSTAR   0xc0000082
    4343#define AMD_MSR_SFMASK  0xc0000084
     44#define AMD_MSR_GS      0xc0000101
    4445
    4546#ifndef __ASM__
Note: See TracChangeset for help on using the changeset viewer.