lkml.org 
[lkml]   [2003]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: asm (lidt) question
    On Tue, 22 Jul 2003, Richard B. Johnson wrote:

    > LIDT is "load interrupt descriptor table". SIDT is "store interrupt
    > descriptor table". Only SIDT modifies memory. LIDT reads from memory
    > and puts the result into a special CPU register, therefore doesn't
    > modify memory.

    Indeed, that why this is not really correct :

    __asm__ __volatile__("lidt %0": "=m" (var));

    even if it generates the same code of :

    __asm__ __volatile__("lidt %0": : "m" (var));



    - Davide

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

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