Changeset b3f8fb7 in mainline for kernel/arch/amd64/include/mm/page.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/mm/page.h

    r1ba41c5 rb3f8fb7  
    5858
    5959#ifndef __ASM__
    60 #  include <mm/page.h>
    61 #  include <arch/types.h>
    62 #endif
     60#       include <mm/mm.h>
     61#       include <arch/types.h>
     62#       include <arch/interrupt.h>
    6363
    64 #ifndef __ASM__
    6564static inline uintptr_t ka2pa(uintptr_t x)
    6665{
     
    7069                return x - 0xffff800000000000;
    7170}
    72 # define KA2PA(x)      ka2pa((uintptr_t)x)
    73 # define PA2KA_CODE(x)      (((uintptr_t) (x)) + 0xffffffff80000000)
    74 # define PA2KA(x)      (((uintptr_t) (x)) + 0xffff800000000000)
     71
     72#       define KA2PA(x)      ka2pa((uintptr_t)x)
     73#       define PA2KA_CODE(x)      (((uintptr_t) (x)) + 0xffffffff80000000)
     74#       define PA2KA(x)      (((uintptr_t) (x)) + 0xffff800000000000)
    7575#else
    76 # define KA2PA(x)      ((x) - 0xffffffff80000000)
    77 # define PA2KA(x)      ((x) + 0xffffffff80000000)
     76#       define KA2PA(x)      ((x) - 0xffffffff80000000)
     77#       define PA2KA(x)      ((x) + 0xffffffff80000000)
    7878#endif
    7979
     
    134134#define PFERR_CODE_ID           (1<<4)
    135135
    136 /** Page Table Entry. */
    137 struct page_specifier {
    138         unsigned present : 1;
    139         unsigned writeable : 1;
    140         unsigned uaccessible : 1;
    141         unsigned page_write_through : 1;
    142         unsigned page_cache_disable : 1;
    143         unsigned accessed : 1;
    144         unsigned dirty : 1;
    145         unsigned unused: 1;
    146         unsigned global : 1;
    147         unsigned soft_valid : 1;                /**< Valid content even if present bit is cleared. */
    148         unsigned avl : 2;
    149         unsigned addr_12_31 : 30;
    150         unsigned addr_32_51 : 21;
    151         unsigned no_execute : 1;
    152 } __attribute__ ((packed));
    153 
    154136static inline int get_pt_flags(pte_t *pt, index_t i)
    155137{
Note: See TracChangeset for help on using the changeset viewer.