Changeset 7f1c620 in mainline for arch/ia32/include/pm.h


Ignore:
Timestamp:
2006-07-04T17:17:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ffa3ef5
Parents:
991779c5
Message:

Replace old u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/include/pm.h

    r991779c5 r7f1c620  
    8686
    8787struct ptr_16_32 {
    88         __u16 limit;
    89         __u32 base;
     88        uint16_t limit;
     89        uint32_t base;
    9090} __attribute__ ((packed));
    9191typedef struct ptr_16_32 ptr_16_32_t;
     
    115115
    116116struct tss {
    117         __u16 link;
     117        uint16_t link;
    118118        unsigned : 16;
    119         __u32 esp0;
    120         __u16 ss0;
     119        uint32_t esp0;
     120        uint16_t ss0;
    121121        unsigned : 16;
    122         __u32 esp1;
    123         __u16 ss1;
     122        uint32_t esp1;
     123        uint16_t ss1;
    124124        unsigned : 16;
    125         __u32 esp2;
    126         __u16 ss2;
     125        uint32_t esp2;
     126        uint16_t ss2;
    127127        unsigned : 16;
    128         __u32 cr3;
    129         __u32 eip;
    130         __u32 eflags;
    131         __u32 eax;
    132         __u32 ecx;
    133         __u32 edx;
    134         __u32 ebx;
    135         __u32 esp;
    136         __u32 ebp;
    137         __u32 esi;
    138         __u32 edi;
    139         __u16 es;
     128        uint32_t cr3;
     129        uint32_t eip;
     130        uint32_t eflags;
     131        uint32_t eax;
     132        uint32_t ecx;
     133        uint32_t edx;
     134        uint32_t ebx;
     135        uint32_t esp;
     136        uint32_t ebp;
     137        uint32_t esi;
     138        uint32_t edi;
     139        uint16_t es;
    140140        unsigned : 16;
    141         __u16 cs;
     141        uint16_t cs;
    142142        unsigned : 16;
    143         __u16 ss;
     143        uint16_t ss;
    144144        unsigned : 16;
    145         __u16 ds;
     145        uint16_t ds;
    146146        unsigned : 16;
    147         __u16 fs;
     147        uint16_t fs;
    148148        unsigned : 16;
    149         __u16 gs;
     149        uint16_t gs;
    150150        unsigned : 16;
    151         __u16 ldtr;
     151        uint16_t ldtr;
    152152        unsigned : 16;
    153153        unsigned : 16;
    154         __u16 iomap_base;
    155         __u8 iomap[TSS_IOMAP_SIZE];
     154        uint16_t iomap_base;
     155        uint8_t iomap[TSS_IOMAP_SIZE];
    156156} __attribute__ ((packed));
    157157typedef struct tss tss_t;
     
    166166extern void pm_init(void);
    167167
    168 extern void gdt_setbase(descriptor_t *d, __address base);
    169 extern void gdt_setlimit(descriptor_t *d, __u32 limit);
     168extern void gdt_setbase(descriptor_t *d, uintptr_t base);
     169extern void gdt_setlimit(descriptor_t *d, uint32_t limit);
    170170
    171171extern void idt_init(void);
    172 extern void idt_setoffset(idescriptor_t *d, __address offset);
     172extern void idt_setoffset(idescriptor_t *d, uintptr_t offset);
    173173
    174174extern void tss_initialize(tss_t *t);
    175 extern void set_tls_desc(__address tls);
     175extern void set_tls_desc(uintptr_t tls);
    176176
    177177#endif /* __ASM__ */
Note: See TracChangeset for help on using the changeset viewer.