lkml.org 
[lkml]   [1998]   [Apr]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 2.1.97 system.h fix (more clear)


    On Sat, 18 Apr 1998, Brian Weiss wrote:

    > in 2.1.97 you need to make a very small change in
    > /usr/src/linux/include/asmi386/system.h to get it to compile.
    >
    > There have been other posts about this (including an actual patch) but
    > they've all been somewhat confusing and vague (except the patch itself of
    > course). So here is the actual code you need to fix.
    >
    > ORIGINAL CODE:
    > #define _set_tssldt_desc(n,addr,limit,type) \
    > __asm__ __volatile__ ("movw %3,0(%2)\n\t" \
    > "movw %%ax,2(%2)\n\t" \
    > "rorl $16,%%eax\n\t" \
    > "movb %%al,4(%2)\n\t" \
    > "movb %4,5(%2)\n\t" \
    > "movb $0,6(%2)\n\t" \
    > "movb %%ah,7(%2)\n\t" \
    > "rorl $16,%%eax" \
    > : "=m"(*(n)) : "a" (addr), "r"(n), "g"(limit), "i"(type))
    >
    > That last line is the problem line. you need to change the "g"(limit) to
    > "r"(limit). Very small and easy change. It should look like this when
    > finished:
    >
    > : "=m"(*(n)) : "a" (addr), "r"(n), "r"(limit), "i"(type))

    Actually, according to a followup message from Pauline Middelink it should
    be:

    : "=m"(*(n)) : "a" (addr), "r"(n), "ir"(limit), "i"(type))

    Steve



    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu

    \
     
     \ /
      Last update: 2005-03-22 13:42    [W:0.021 / U:0.640 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site