Changeset 11928d5 in mainline for arch/ia32/src/pm.c


Ignore:
Timestamp:
2006-04-28T14:32:44Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a98cdc7
Parents:
040e4e9
Message:

Fix BITS2BYTES macro to return 0 when passed 0 as argument.
Fix ia32 TSS segment granularity to be 0.
Fix ia32 and amd64 initial TSS limit to be 103.
Little textual changes here and there.

File:
1 edited

Legend:

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

    r040e4e9 r11928d5  
    200200        gdt_p[TSS_DES].access = AR_PRESENT | AR_TSS | DPL_KERNEL;
    201201        gdt_p[TSS_DES].special = 1;
    202         gdt_p[TSS_DES].granularity = 1;
     202        gdt_p[TSS_DES].granularity = 0;
    203203       
    204204        gdt_setbase(&gdt_p[TSS_DES], (__address) tss_p);
    205         gdt_setlimit(&gdt_p[TSS_DES], sizeof(tss_t) - 1);
     205        gdt_setlimit(&gdt_p[TSS_DES], TSS_BASIC_SIZE - 1);
    206206
    207207        /*
     
    211211        tr_load(selector(TSS_DES));
    212212       
    213         clean_IOPL_NT_flags();    /* Disable I/O on nonprivileged levels */
     213        clean_IOPL_NT_flags();    /* Disable I/O on nonprivileged levels and clear NT flag. */
    214214        clean_AM_flag();          /* Disable alignment check */
    215215}
Note: See TracChangeset for help on using the changeset viewer.