Ignore:
Timestamp:
2018-03-08T18:54:30Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5ef16903
Parents:
e0a4686
Message:

Replace ASM macro with the standard ASSEMBLER.

At least, GCC claims it to be a standard predefined macro. I was unable
to find the relevant standard, but it's defined in both gcc and clang.

File:
1 edited

Legend:

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

    re0a4686 r53ad43c  
    5050#define PDE_4M          (1 << 7)
    5151
    52 #ifndef __ASM__
     52#ifndef __ASSEMBLER__
    5353
    5454#define KA2PA(x)  (((uintptr_t) (x)) - UINT32_C(0x80000000))
    5555#define PA2KA(x)  (((uintptr_t) (x)) + UINT32_C(0x80000000))
    5656
    57 #else /* __ASM__ */
     57#else /* __ASSEMBLER__ */
    5858
    5959#define KA2PA(x)  ((x) - 0x80000000)
    6060#define PA2KA(x)  ((x) + 0x80000000)
    6161
    62 #endif /* __ASM__ */
     62#endif /* __ASSEMBLER__ */
    6363
    6464/*
     
    142142#define PTE_EXECUTABLE_ARCH(p)  1
    143143
    144 #ifndef __ASM__
     144#ifndef __ASSEMBLER__
    145145
    146146#include <mm/mm.h>
     
    220220extern void page_fault(unsigned int, istate_t *);
    221221
    222 #endif /* __ASM__ */
     222#endif /* __ASSEMBLER__ */
    223223
    224224#endif
Note: See TracChangeset for help on using the changeset viewer.