Changeset b0bf501 in mainline for arch/ia32/src/pm.c


Ignore:
Timestamp:
2005-06-06T20:42:06Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a7a1063
Parents:
e3f41b6
Message:

Define two placeholder functions for atomic_inc and atomic_dec on IA-64.

Add Ondrej Palkovsky to doc/AUTHORS.

Tweaks in IA-32 low level code to bring SMP back to life. (SMP still broken)

File:
1 edited

Legend:

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

    re3f41b6 rb0bf501  
    7272void gdt_setbase(struct descriptor *d, __address base)
    7373{
    74         d->base_0_15 = KA2PA(base) & 0xffff;
    75         d->base_16_23 = (KA2PA(base) >> 16) & 0xff;
    76         d->base_24_31 = (KA2PA(base) >> 24) & 0xff;
     74        d->base_0_15 = base & 0xffff;
     75        d->base_16_23 = ((base) >> 16) & 0xff;
     76        d->base_24_31 = ((base) >> 24) & 0xff;
    7777
    7878}
     
    8686void idt_setoffset(struct idescriptor *d, __address offset)
    8787{
    88         d->offset_0_15 = KA2PA(offset) & 0xffff;
    89         d->offset_16_31 = KA2PA(offset) >> 16;
     88        /*
     89         * Offset is a linear address.
     90         */
     91        d->offset_0_15 = offset & 0xffff;
     92        d->offset_16_31 = offset >> 16;
    9093}
    9194
Note: See TracChangeset for help on using the changeset viewer.