Ignore:
Timestamp:
Jan 28, 2003, 5:20:43 PM (23 years ago)
Author:
sandervl
Message:

PF: Header fixes for GCC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/os2sel.h

    r9631 r9735  
    1 /* $Id: os2sel.h,v 1.10 2003-01-06 13:24:20 sandervl Exp $ */
     1/* $Id: os2sel.h,v 1.11 2003-01-28 16:20:43 sandervl Exp $ */
    22/*
    33 *
     
    3939{
    4040 asm volatile (
    41     "mov %eax, %fs      \n\t"
     41    "mov %fs, %ax       \n\t"
    4242 );
    4343}
     
    4545extern inline void SetFS(unsigned short sel)
    4646{
    47  asm volatile (
    48         "mov    %eax,%esp       \n\t"
    49         "mov    %fs, %eax       \n\t"
    50  );
     47 __asm__ __volatile__("movw %%ax,%%fs" : : "a" (sel));
    5148}
    5249
     
    5451{
    5552 asm volatile (
    56         "push    0x150b         \n\t"
    57         "mov     %ax, %fs       \n\t"
     53        "push    $0x0150b       \n\t"
     54        "movw    %fs,%ax        \n\t"
    5855        "pop     %fs"
    5956 );
Note: See TracChangeset for help on using the changeset viewer.