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/amd64/include/arch/mm/page.h

    re0a4686 r53ad43c  
    4444#ifdef MEMORY_MODEL_kernel
    4545
    46 #ifndef __ASM__
     46#ifndef __ASSEMBLER__
    4747
    4848#define KA2PA(x)  (((uintptr_t) (x)) - UINT64_C(0xffffffff80000000))
    4949#define PA2KA(x)  (((uintptr_t) (x)) + UINT64_C(0xffffffff80000000))
    5050
    51 #else /* __ASM__ */
     51#else /* __ASSEMBLER__ */
    5252
    5353#define KA2PA(x)  ((x) - 0xffffffff80000000)
    5454#define PA2KA(x)  ((x) + 0xffffffff80000000)
    5555
    56 #endif /* __ASM__ */
     56#endif /* __ASSEMBLER__ */
    5757
    5858#endif /* MEMORY_MODEL_kernel */
     
    6060#ifdef MEMORY_MODEL_large
    6161
    62 #ifndef __ASM__
     62#ifndef __ASSEMBLER__
    6363
    6464#define KA2PA(x)  (((uintptr_t) (x)) - UINT64_C(0xffff800000000000))
    6565#define PA2KA(x)  (((uintptr_t) (x)) + UINT64_C(0xffff800000000000))
    6666
    67 #else /* __ASM__ */
     67#else /* __ASSEMBLER__ */
    6868
    6969#define KA2PA(x)  ((x) - 0xffff800000000000)
    7070#define PA2KA(x)  ((x) + 0xffff800000000000)
    7171
    72 #endif /* __ASM__ */
     72#endif /* __ASSEMBLER__ */
    7373
    7474#endif /* MEMORY_MODEL_large */
     
    162162        ((p)->no_execute == 0)
    163163
    164 #ifndef __ASM__
     164#ifndef __ASSEMBLER__
    165165
    166166#include <mm/mm.h>
     
    255255extern void page_fault(unsigned int, istate_t *);
    256256
    257 #endif /* __ASM__ */
     257#endif /* __ASSEMBLER__ */
    258258
    259259#endif
Note: See TracChangeset for help on using the changeset viewer.