Changeset 53ad43c in mainline for kernel/arch/riscv64


Ignore:
Timestamp:
2018-03-08T18:54:30Z (8 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.

Location:
kernel/arch/riscv64/include/arch
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/riscv64/include/arch/boot/boot.h

    re0a4686 r53ad43c  
    4545#define TEMP_STACK_SIZE  0x1000
    4646
    47 #ifndef __ASM__
     47#ifndef __ASSEMBLER__
    4848
    4949#include <stddef.h>
  • kernel/arch/riscv64/include/arch/cpu.h

    re0a4686 r53ad43c  
    4545#define SATP_MODE_SV48  UINT64_C(0x9000000000000000)
    4646
    47 #ifndef __ASM__
     47#ifndef __ASSEMBLER__
    4848
    4949typedef struct {
     
    5252extern void cpu_setup_fpu(void);
    5353
    54 #endif /* __ASM__ */
     54#endif /* __ASSEMBLER__ */
    5555
    5656#endif
  • kernel/arch/riscv64/include/arch/mm/frame.h

    re0a4686 r53ad43c  
    4141#define FRAME_LOWPRIO  0
    4242
    43 #ifndef __ASM__
     43#ifndef __ASSEMBLER__
    4444
    4545#include <arch/boot/boot.h>
     
    5454extern void physmem_print(void);
    5555
    56 #endif /* __ASM__ */
     56#endif /* __ASSEMBLER__ */
    5757
    5858#endif
  • kernel/arch/riscv64/include/arch/mm/page.h

    re0a4686 r53ad43c  
    4141#define PAGE_SIZE   FRAME_SIZE
    4242
    43 #ifndef __ASM__
     43#ifndef __ASSEMBLER__
    4444        #define KA2PA(x)  (((uintptr_t) (x)) - UINT64_C(0xffff800000000000))
    4545        #define PA2KA(x)  (((uintptr_t) (x)) + UINT64_C(0xffff800000000000))
     
    159159#define PTE_EXECUTABLE_ARCH(pte)  ((pte)->executable != 0)
    160160
    161 #ifndef __ASM__
     161#ifndef __ASSEMBLER__
    162162
    163163#include <mm/mm.h>
     
    216216extern void write_satp(uintptr_t);
    217217
    218 #endif /* __ASM__ */
     218#endif /* __ASSEMBLER__ */
    219219
    220220#endif
Note: See TracChangeset for help on using the changeset viewer.