Changeset 7f1c620 in mainline for arch/ia64/include/mm/page.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/ia64/include/mm/page.h

    r991779c5 r7f1c620  
    2828 */
    2929
    30  /** @addtogroup ia64mm
     30/** @addtogroup ia64mm 
    3131 * @{
    3232 */
     
    6262#define REGION_REGISTERS                8
    6363
    64 #define KA2PA(x)        ((__address) (x-(VRN_KERNEL<<VRN_SHIFT)))
    65 #define PA2KA(x)        ((__address) (x+(VRN_KERNEL<<VRN_SHIFT)))
     64#define KA2PA(x)        ((uintptr_t) (x-(VRN_KERNEL<<VRN_SHIFT)))
     65#define PA2KA(x)        ((uintptr_t) (x+(VRN_KERNEL<<VRN_SHIFT)))
    6666
    6767#define VHPT_WIDTH                      20              /* 1M */
     
    127127       
    128128        /* Word 3 */                                                                                                   
    129         __u64 ig3 : 64;
     129        uint64_t ig3 : 64;
    130130} __attribute__ ((packed));
    131131
     
    145145       
    146146        /* Word 3 */                                                                                                   
    147         __u64 ig3 : 64;
     147        uint64_t ig3 : 64;
    148148} __attribute__ ((packed));
    149149
     
    151151        struct vhpt_entry_present present;
    152152        struct vhpt_entry_not_present not_present;
    153         __u64 word[4];
     153        uint64_t word[4];
    154154} vhpt_entry_t;
    155155
     
    178178typedef union pta_register {
    179179        struct pta_register_map map;
    180         __u64 word;
     180        uint64_t word;
    181181} pta_register;
    182182
     
    190190 * @return Address of the head of VHPT collision chain.
    191191 */
    192 static inline __u64 thash(__u64 va)
    193 {
    194         __u64 ret;
     192static inline uint64_t thash(uint64_t va)
     193{
     194        uint64_t ret;
    195195
    196196        __asm__ volatile ("thash %0 = %1\n" : "=r" (ret) : "r" (va));
     
    208208 * @return The unique tag for VPN and RID in the collision chain returned by thash().
    209209 */
    210 static inline __u64 ttag(__u64 va)
    211 {
    212         __u64 ret;
     210static inline uint64_t ttag(uint64_t va)
     211{
     212        uint64_t ret;
    213213
    214214        __asm__ volatile ("ttag %0 = %1\n" : "=r" (ret) : "r" (va));
     
    223223 * @return Current contents of rr[i].
    224224 */
    225 static inline __u64 rr_read(index_t i)
    226 {
    227         __u64 ret;
     225static inline uint64_t rr_read(index_t i)
     226{
     227        uint64_t ret;
    228228        ASSERT(i < REGION_REGISTERS);
    229229        __asm__ volatile ("mov %0 = rr[%1]\n" : "=r" (ret) : "r" (i << VRN_SHIFT));
     
    236236 * @param v Value to be written to rr[i].
    237237 */
    238 static inline void rr_write(index_t i, __u64 v)
     238static inline void rr_write(index_t i, uint64_t v)
    239239{
    240240        ASSERT(i < REGION_REGISTERS);
     
    250250 * @return Current value stored in PTA.
    251251 */
    252 static inline __u64 pta_read(void)
    253 {
    254         __u64 ret;
     252static inline uint64_t pta_read(void)
     253{
     254        uint64_t ret;
    255255       
    256256        __asm__ volatile ("mov %0 = cr.pta\n" : "=r" (ret));
     
    263263 * @param v New value to be stored in PTA.
    264264 */
    265 static inline void pta_write(__u64 v)
     265static inline void pta_write(uint64_t v)
    266266{
    267267        __asm__ volatile ("mov cr.pta = %0\n" : : "r" (v));
     
    270270extern void page_arch_init(void);
    271271
    272 extern vhpt_entry_t *vhpt_hash(__address page, asid_t asid);
    273 extern bool vhpt_compare(__address page, asid_t asid, vhpt_entry_t *v);
    274 extern void vhpt_set_record(vhpt_entry_t *v, __address page, asid_t asid, __address frame, int flags);
     272extern vhpt_entry_t *vhpt_hash(uintptr_t page, asid_t asid);
     273extern bool vhpt_compare(uintptr_t page, asid_t asid, vhpt_entry_t *v);
     274extern void vhpt_set_record(vhpt_entry_t *v, uintptr_t page, asid_t asid, uintptr_t frame, int flags);
    275275
    276276#endif /* __ASM__ */
     
    280280#endif
    281281
    282  /** @}
    283  */
    284 
     282/** @}
     283 */
Note: See TracChangeset for help on using the changeset viewer.