Ignore:
Timestamp:
2011-04-13T14:45:41Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
88634420
Parents:
cefb126 (diff), 17279ead (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/abs32le/include/mm/page.h

    rcefb126 r89c57b6  
    3737
    3838#include <arch/mm/frame.h>
     39#include <trace.h>
    3940
    4041#define PAGE_WIDTH  FRAME_WIDTH
     
    4344#ifdef KERNEL
    4445
    45 #define KA2PA(x)  (((uintptr_t) (x)) - 0x80000000)
    46 #define PA2KA(x)  (((uintptr_t) (x)) + 0x80000000)
     46#define KA2PA(x)  (((uintptr_t) (x)) - UINT32_C(0x80000000))
     47#define PA2KA(x)  (((uintptr_t) (x)) + UINT32_C(0x80000000))
    4748
    4849/*
     
    6465
    6566/* Macros calculating indices for each level. */
    66 #define PTL0_INDEX_ARCH(vaddr)  (((vaddr) >> 22) & 0x3ff)
     67#define PTL0_INDEX_ARCH(vaddr)  (((vaddr) >> 22) & 0x3ffU)
    6768#define PTL1_INDEX_ARCH(vaddr)  0
    6869#define PTL2_INDEX_ARCH(vaddr)  0
    69 #define PTL3_INDEX_ARCH(vaddr)  (((vaddr) >> 12) & 0x3ff)
     70#define PTL3_INDEX_ARCH(vaddr)  (((vaddr) >> 12) & 0x3ffU)
    7071
    7172/* Get PTE address accessors for each level. */
     
    139140} __attribute__((packed)) pte_t;
    140141
    141 static inline unsigned int get_pt_flags(pte_t *pt, size_t i)
     142NO_TRACE static inline unsigned int get_pt_flags(pte_t *pt, size_t i)
    142143    REQUIRES_ARRAY_MUTABLE(pt, PTL0_ENTRIES_ARCH)
    143144{
     
    155156}
    156157
    157 static inline void set_pt_flags(pte_t *pt, size_t i, int flags)
     158NO_TRACE static inline void set_pt_flags(pte_t *pt, size_t i, int flags)
    158159    WRITES(ARRAY_RANGE(pt, PTL0_ENTRIES_ARCH))
    159160    REQUIRES_ARRAY_MUTABLE(pt, PTL0_ENTRIES_ARCH)
Note: See TracChangeset for help on using the changeset viewer.