Changeset b3f8fb7 in mainline for kernel/arch/amd64/include/types.h


Ignore:
Timestamp:
2007-01-28T13:25:49Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8e8c1a5
Parents:
1ba41c5
Message:

huge type system cleanup
remove cyclical type dependencies across multiple header files
many minor coding style fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/include/types.h

    r1ba41c5 rb3f8fb7  
    3737
    3838#define NULL 0
     39#define false 0
     40#define true 1
    3941
    4042typedef signed char int8_t;
     
    4850typedef unsigned long long uint64_t;
    4951
     52typedef uint64_t size_t;
     53typedef uint64_t count_t;
     54typedef uint64_t index_t;
     55
    5056typedef uint64_t uintptr_t;
    5157typedef uint64_t pfn_t;
    5258
    53 /* Flags of processor (return value of interrupts_disable()) */
    5459typedef uint64_t ipl_t;
    5560
     
    5762typedef int64_t native_t;
    5863
    59 typedef struct page_specifier pte_t;
     64typedef uint8_t bool;
     65typedef uint64_t task_id_t;
     66typedef uint32_t context_id_t;
     67
     68typedef int32_t inr_t;
     69typedef int32_t devno_t;
     70
     71/** Page Table Entry. */
     72typedef struct {
     73        unsigned present : 1;
     74        unsigned writeable : 1;
     75        unsigned uaccessible : 1;
     76        unsigned page_write_through : 1;
     77        unsigned page_cache_disable : 1;
     78        unsigned accessed : 1;
     79        unsigned dirty : 1;
     80        unsigned unused: 1;
     81        unsigned global : 1;
     82        unsigned soft_valid : 1;                /**< Valid content even if present bit is cleared. */
     83        unsigned avl : 2;
     84        unsigned addr_12_31 : 30;
     85        unsigned addr_32_51 : 21;
     86        unsigned no_execute : 1;
     87} __attribute__ ((packed)) pte_t;
    6088
    6189#endif
Note: See TracChangeset for help on using the changeset viewer.