Changeset 897ad60 in mainline for arch/amd64/src/pm.c


Ignore:
Timestamp:
2006-04-13T16:11:27Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
39cea6a
Parents:
963074b3
Message:

Replace assembly from pm.c with new inline functions defined in asm.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/src/pm.c

    r963074b3 r897ad60  
    216216        gdt_tss_setlimit(&gdt_p[TSS_DES], sizeof(struct tss) - 1);
    217217
    218         __asm__("lgdt %0" : : "m"(gdtr));
    219         __asm__("lidt %0" : : "m"(idtr));
     218        gdtr_load(&gdtr);
     219        idtr_load(&idtr);
    220220        /*
    221221         * As of this moment, the current CPU has its own GDT pointing
    222222         * to its own TSS. We just need to load the TR register.
    223223         */
    224         __asm__("ltr %0" : : "r" ((__u16) gdtselector(TSS_DES)));
    225 }
     224        tr_load(gdtselector(TSS_DES));
     225}
Note: See TracChangeset for help on using the changeset viewer.