Changeset 53ad43c in mainline
- Timestamp:
- 2018-03-08T18:54:30Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5ef16903
- Parents:
- e0a4686
- Files:
-
- 75 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile.build
re0a4686 r53ad43c 85 85 86 86 $(LINK): | depend 87 $(CC) $(DEFS) $(CFLAGS) -D__AS M__ -D__LINKER__ -E -x c $(LINK).in | grep -v "^\#" > $(LINK)87 $(CC) $(DEFS) $(CFLAGS) -D__ASSEMBLER__ -D__LINKER__ -E -x c $(LINK).in | grep -v "^\#" > $(LINK) 88 88 89 89 %.o: %.s | depend 90 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__90 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) 91 91 92 92 %.o: %.S | depend 93 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__93 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) 94 94 95 95 %.o: %.c | depend -
boot/arch/arm32/include/arch/arch.h
re0a4686 r53ad43c 62 62 #endif 63 63 64 #ifndef __AS M__64 #ifndef __ASSEMBLER__ 65 65 #define PA2KA(addr) (((uintptr_t) (addr)) + PA_OFFSET) 66 66 #else -
boot/arch/mips32/include/arch/arch.h
re0a4686 r53ad43c 55 55 #endif 56 56 57 #ifndef __AS M__57 #ifndef __ASSEMBLER__ 58 58 #define PA2KA(addr) (((uintptr_t) (addr)) + 0x80000000) 59 59 #define PA2KSEG(addr) (((uintptr_t) (addr)) + 0xa0000000) -
boot/arch/mips32/src/Makefile.build
re0a4686 r53ad43c 65 65 66 66 %.o: %.S $(DEPEND) 67 $(CC) $(DEFS) $(CFLAGS) - D__ASM__ -c $< -o $@67 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 68 68 ifeq ($(PRECHECK),y) 69 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__69 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) 70 70 endif 71 71 -
boot/arch/ppc32/include/arch/arch.h
re0a4686 r53ad43c 37 37 #define LOADER_ADDRESS 0x08000000 38 38 39 #ifndef __AS M__39 #ifndef __ASSEMBLER__ 40 40 #define PA2KA(addr) (((uintptr_t) (addr)) + 0x80000000) 41 41 #else -
boot/arch/riscv64/include/arch/mm.h
re0a4686 r53ad43c 33 33 #define BOOT_riscv64_MM_H_ 34 34 35 #ifndef __AS M__35 #ifndef __ASSEMBLER__ 36 36 #define KA2PA(x) (((uintptr_t) (x)) - UINT64_C(0xffff800000000000)) 37 37 #define PA2KA(x) (((uintptr_t) (x)) + UINT64_C(0xffff800000000000)) -
kernel/Makefile
re0a4686 r53ad43c 400 400 401 401 $(LINK): $(LINK).in | depend 402 $(CC) $(DEFS) $(CFLAGS) -D__AS M__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@402 $(CC) $(DEFS) $(CFLAGS) -D__ASSEMBLER__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@ 403 403 404 404 %.h: %.ag … … 408 408 409 409 %.o: %.S | depend 410 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__410 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) 411 411 412 412 %.o: %.s | depend 413 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__413 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) 414 414 415 415 %.o: %.c | depend -
kernel/arch/amd64/include/arch/boot/boot.h
re0a4686 r53ad43c 40 40 #define BOOT_STACK_SIZE 0x000400 41 41 42 #ifndef __AS M__42 #ifndef __ASSEMBLER__ 43 43 44 44 #ifdef CONFIG_SMP … … 49 49 #endif /* CONFIG_SMP */ 50 50 51 #endif /* __AS M__ */51 #endif /* __ASSEMBLER__ */ 52 52 53 53 #endif -
kernel/arch/amd64/include/arch/cpu.h
re0a4686 r53ad43c 79 79 #define AMD_MSR_GS_KERNEL 0xc0000102 80 80 81 #ifndef __AS M__81 #ifndef __ASSEMBLER__ 82 82 83 83 #include <arch/pm.h> … … 103 103 void cpu_setup_fpu(void); 104 104 105 #endif /* __AS M__ */105 #endif /* __ASSEMBLER__ */ 106 106 107 107 #endif -
kernel/arch/amd64/include/arch/cpuid.h
re0a4686 r53ad43c 46 46 #define INTEL_FXSAVE 24 47 47 48 #ifndef __AS M__48 #ifndef __ASSEMBLER__ 49 49 50 50 #include <stdint.h> … … 61 61 extern void cpuid(uint32_t cmd, cpu_info_t *info); 62 62 63 #endif /* !def __AS M__ */63 #endif /* !def __ASSEMBLER__ */ 64 64 #endif 65 65 -
kernel/arch/amd64/include/arch/mm/frame.h
re0a4686 r53ad43c 41 41 #define FRAME_LOWPRIO 0x1000 42 42 43 #ifndef __AS M__43 #ifndef __ASSEMBLER__ 44 44 45 45 extern void frame_low_arch_init(void); … … 47 47 extern void physmem_print(void); 48 48 49 #endif /* __AS M__ */49 #endif /* __ASSEMBLER__ */ 50 50 51 51 #endif -
kernel/arch/amd64/include/arch/mm/page.h
re0a4686 r53ad43c 44 44 #ifdef MEMORY_MODEL_kernel 45 45 46 #ifndef __AS M__46 #ifndef __ASSEMBLER__ 47 47 48 48 #define KA2PA(x) (((uintptr_t) (x)) - UINT64_C(0xffffffff80000000)) 49 49 #define PA2KA(x) (((uintptr_t) (x)) + UINT64_C(0xffffffff80000000)) 50 50 51 #else /* __AS M__ */51 #else /* __ASSEMBLER__ */ 52 52 53 53 #define KA2PA(x) ((x) - 0xffffffff80000000) 54 54 #define PA2KA(x) ((x) + 0xffffffff80000000) 55 55 56 #endif /* __AS M__ */56 #endif /* __ASSEMBLER__ */ 57 57 58 58 #endif /* MEMORY_MODEL_kernel */ … … 60 60 #ifdef MEMORY_MODEL_large 61 61 62 #ifndef __AS M__62 #ifndef __ASSEMBLER__ 63 63 64 64 #define KA2PA(x) (((uintptr_t) (x)) - UINT64_C(0xffff800000000000)) 65 65 #define PA2KA(x) (((uintptr_t) (x)) + UINT64_C(0xffff800000000000)) 66 66 67 #else /* __AS M__ */67 #else /* __ASSEMBLER__ */ 68 68 69 69 #define KA2PA(x) ((x) - 0xffff800000000000) 70 70 #define PA2KA(x) ((x) + 0xffff800000000000) 71 71 72 #endif /* __AS M__ */72 #endif /* __ASSEMBLER__ */ 73 73 74 74 #endif /* MEMORY_MODEL_large */ … … 162 162 ((p)->no_execute == 0) 163 163 164 #ifndef __AS M__164 #ifndef __ASSEMBLER__ 165 165 166 166 #include <mm/mm.h> … … 255 255 extern void page_fault(unsigned int, istate_t *); 256 256 257 #endif /* __AS M__ */257 #endif /* __ASSEMBLER__ */ 258 258 259 259 #endif -
kernel/arch/amd64/include/arch/pm.h
re0a4686 r53ad43c 36 36 #define KERN_amd64_PM_H_ 37 37 38 #ifndef __AS M__38 #ifndef __ASSEMBLER__ 39 39 #include <typedefs.h> 40 40 #include <arch/context.h> … … 88 88 #define IO_PORTS (64 * 1024) 89 89 90 #ifndef __AS M__90 #ifndef __ASSEMBLER__ 91 91 92 92 typedef struct { … … 180 180 extern void tss_initialize(tss_t *t); 181 181 182 #endif /* __AS M__ */182 #endif /* __ASSEMBLER__ */ 183 183 184 184 #endif -
kernel/arch/amd64/include/arch/vreg.h
re0a4686 r53ad43c 38 38 #define VREG_TP 0 39 39 40 #ifndef __AS M__40 #ifndef __ASSEMBLER__ 41 41 42 42 #include <stdint.h> … … 46 46 extern void vreg_init(void); 47 47 48 #endif /* __AS M__ */48 #endif /* __ASSEMBLER__ */ 49 49 50 50 #endif -
kernel/arch/arm32/include/arch/context.h
re0a4686 r53ad43c 51 51 } while (0) 52 52 53 #ifndef __AS M__53 #ifndef __ASSEMBLER__ 54 54 55 #endif /* __AS M__ */55 #endif /* __ASSEMBLER__ */ 56 56 57 57 #endif -
kernel/arch/arm32/include/arch/mm/frame.h
re0a4686 r53ad43c 42 42 #define FRAME_LOWPRIO 0 43 43 44 #ifndef __AS M__44 #ifndef __ASSEMBLER__ 45 45 46 46 #define BOOT_PAGE_TABLE_SIZE 0x4000 … … 81 81 #define physmem_print() 82 82 83 #endif /* __AS M__ */83 #endif /* __ASSEMBLER__ */ 84 84 85 85 #endif -
kernel/arch/arm32/include/arch/mm/page.h
re0a4686 r53ad43c 48 48 49 49 #if (defined MACHINE_beagleboardxm) || (defined MACHINE_beaglebone) 50 #ifndef __AS M__50 #ifndef __ASSEMBLER__ 51 51 # define KA2PA(x) ((uintptr_t) (x)) 52 52 # define PA2KA(x) ((uintptr_t) (x)) … … 56 56 #endif 57 57 #else 58 #ifndef __AS M__58 #ifndef __ASSEMBLER__ 59 59 # define KA2PA(x) (((uintptr_t) (x)) - 0x80000000) 60 60 # define PA2KA(x) (((uintptr_t) (x)) + 0x80000000) -
kernel/arch/arm32/include/arch/mm/page_armv4.h
re0a4686 r53ad43c 54 54 1 55 55 56 #ifndef __AS M__56 #ifndef __ASSEMBLER__ 57 57 58 58 /** Level 0 page table entry. */ … … 254 254 255 255 256 #endif /* __AS M__ */256 #endif /* __ASSEMBLER__ */ 257 257 258 258 #endif -
kernel/arch/arm32/include/arch/mm/page_armv6.h
re0a4686 r53ad43c 54 54 (((pte_t *) (pte))->l1.descriptor_type != PTE_DESCRIPTOR_SMALL_PAGE_NX) 55 55 56 #ifndef __AS M__56 #ifndef __ASSEMBLER__ 57 57 58 58 /** Level 0 page table entry. */ … … 319 319 extern void page_arch_init(void); 320 320 321 #endif /* __AS M__ */321 #endif /* __ASSEMBLER__ */ 322 322 323 323 #endif -
kernel/arch/ia32/include/arch/boot/boot.h
re0a4686 r53ad43c 40 40 #define BOOT_STACK_SIZE 0x0400 41 41 42 #ifndef __AS M__42 #ifndef __ASSEMBLER__ 43 43 44 44 #ifdef CONFIG_SMP … … 49 49 #endif /* CONFIG_SMP */ 50 50 51 #endif /* __AS M__ */51 #endif /* __ASSEMBLER__ */ 52 52 53 53 #endif -
kernel/arch/ia32/include/arch/boot/memmap.h
re0a4686 r53ad43c 61 61 #define MEMMAP_E820_MAX_RECORDS 32 62 62 63 #ifndef __AS M__63 #ifndef __ASSEMBLER__ 64 64 65 65 #include <stdint.h> -
kernel/arch/ia32/include/arch/cpu.h
re0a4686 r53ad43c 64 64 #define IA32_MSR_SYSENTER_EIP 0x176 65 65 66 #ifndef __AS M__66 #ifndef __ASSEMBLER__ 67 67 68 68 #include <arch/pm.h> -
kernel/arch/ia32/include/arch/cpuid.h
re0a4686 r53ad43c 41 41 #define INTEL_SEP 11 42 42 43 #ifndef __AS M__43 #ifndef __ASSEMBLER__ 44 44 45 45 #include <arch/cpu.h> … … 116 116 } 117 117 118 #endif /* !def __AS M__ */118 #endif /* !def __ASSEMBLER__ */ 119 119 #endif 120 120 -
kernel/arch/ia32/include/arch/mm/frame.h
re0a4686 r53ad43c 41 41 #define FRAME_LOWPRIO 0x1000 42 42 43 #ifndef __AS M__43 #ifndef __ASSEMBLER__ 44 44 45 45 extern void frame_low_arch_init(void); … … 47 47 extern void physmem_print(void); 48 48 49 #endif /* __AS M__ */49 #endif /* __ASSEMBLER__ */ 50 50 51 51 #endif -
kernel/arch/ia32/include/arch/mm/page.h
re0a4686 r53ad43c 50 50 #define PDE_4M (1 << 7) 51 51 52 #ifndef __AS M__52 #ifndef __ASSEMBLER__ 53 53 54 54 #define KA2PA(x) (((uintptr_t) (x)) - UINT32_C(0x80000000)) 55 55 #define PA2KA(x) (((uintptr_t) (x)) + UINT32_C(0x80000000)) 56 56 57 #else /* __AS M__ */57 #else /* __ASSEMBLER__ */ 58 58 59 59 #define KA2PA(x) ((x) - 0x80000000) 60 60 #define PA2KA(x) ((x) + 0x80000000) 61 61 62 #endif /* __AS M__ */62 #endif /* __ASSEMBLER__ */ 63 63 64 64 /* … … 142 142 #define PTE_EXECUTABLE_ARCH(p) 1 143 143 144 #ifndef __AS M__144 #ifndef __ASSEMBLER__ 145 145 146 146 #include <mm/mm.h> … … 220 220 extern void page_fault(unsigned int, istate_t *); 221 221 222 #endif /* __AS M__ */222 #endif /* __ASSEMBLER__ */ 223 223 224 224 #endif -
kernel/arch/ia32/include/arch/pm.h
re0a4686 r53ad43c 81 81 #define IO_PORTS (64 * 1024) 82 82 83 #ifndef __AS M__83 #ifndef __ASSEMBLER__ 84 84 85 85 #include <typedefs.h> … … 170 170 extern void tss_initialize(tss_t *t); 171 171 172 #endif /* __AS M__ */172 #endif /* __ASSEMBLER__ */ 173 173 174 174 #endif -
kernel/arch/ia32/include/arch/smp/apic.h
re0a4686 r53ad43c 39 39 #define IO_APIC_BASE 0xfec00000 40 40 41 #ifndef __AS M__41 #ifndef __ASSEMBLER__ 42 42 43 43 #include <cpu.h> … … 369 369 extern void io_apic_enable_irqs(uint16_t); 370 370 371 #endif /* __AS M__ */371 #endif /* __ASSEMBLER__ */ 372 372 373 373 #endif -
kernel/arch/ia32/include/arch/vreg.h
re0a4686 r53ad43c 38 38 #define VREG_TP 0 39 39 40 #ifndef __AS M__40 #ifndef __ASSEMBLER__ 41 41 42 42 #include <stdint.h> … … 46 46 extern void vreg_init(void); 47 47 48 #endif /* __AS M__ */48 #endif /* __ASSEMBLER__ */ 49 49 50 50 #endif -
kernel/arch/ia64/include/arch/interrupt.h
re0a4686 r53ad43c 36 36 #define KERN_ia64_INTERRUPT_H_ 37 37 38 #ifndef __AS M__38 #ifndef __ASSEMBLER__ 39 39 #include <arch/istate.h> 40 40 #include <stdint.h> … … 83 83 #define EOI 0 /**< The actual value doesn't matter. */ 84 84 85 #ifndef __AS M__85 #ifndef __ASSEMBLER__ 86 86 extern void *ivt; 87 87 -
kernel/arch/ia64/include/arch/mm/asid.h
re0a4686 r53ad43c 36 36 #define KERN_ia64_ASID_H_ 37 37 38 #ifndef __AS M__38 #ifndef __ASSEMBLER__ 39 39 40 40 #include <stdint.h> … … 43 43 typedef uint32_t rid_t; 44 44 45 #endif /* __AS M__ */45 #endif /* __ASSEMBLER__ */ 46 46 47 47 /** -
kernel/arch/ia64/include/arch/mm/frame.h
re0a4686 r53ad43c 41 41 #define FRAME_LOWPRIO 0 42 42 43 #ifndef __AS M__43 #ifndef __ASSEMBLER__ 44 44 45 45 #include <typedefs.h> … … 51 51 #define physmem_print() 52 52 53 #endif /* __AS M__ */53 #endif /* __ASSEMBLER__ */ 54 54 55 55 #endif -
kernel/arch/ia64/include/arch/mm/page.h
re0a4686 r53ad43c 39 39 #include <arch/mm/frame.h> 40 40 41 #ifndef __AS M__41 #ifndef __ASSEMBLER__ 42 42 #include <assert.h> 43 43 #endif … … 55 55 #define VA2VRN(va) ((va) >> VRN_SHIFT) 56 56 57 #ifdef __AS M__57 #ifdef __ASSEMBLER__ 58 58 #define VRN_KERNEL 7 59 59 #else … … 84 84 #define AR_WRITE 0x02 85 85 86 #ifndef __AS M__86 #ifndef __ASSEMBLER__ 87 87 88 88 #include <arch/mm/as.h> … … 297 297 extern void vhpt_set_record(vhpt_entry_t *v, uintptr_t page, asid_t asid, uintptr_t frame, int flags); 298 298 299 #endif /* __AS M__ */299 #endif /* __ASSEMBLER__ */ 300 300 301 301 #endif -
kernel/arch/ia64/include/arch/register.h
re0a4686 r53ad43c 143 143 /* CR82-CR127 are reserved */ 144 144 145 #ifndef __AS M__145 #ifndef __ASSEMBLER__ 146 146 147 147 /** Processor Status Register. */ … … 269 269 } cpuid3_t; 270 270 271 #endif /* !__AS M__ */271 #endif /* !__ASSEMBLER__ */ 272 272 273 273 #endif -
kernel/arch/mips32/include/arch/mm/frame.h
re0a4686 r53ad43c 41 41 #define FRAME_LOWPRIO 0 42 42 43 #ifndef __AS M__43 #ifndef __ASSEMBLER__ 44 44 45 45 extern void frame_low_arch_init(void); … … 47 47 extern void physmem_print(void); 48 48 49 #endif /* __AS M__ */49 #endif /* __ASSEMBLER__ */ 50 50 51 51 #endif -
kernel/arch/mips32/include/arch/mm/page.h
re0a4686 r53ad43c 42 42 #define PAGE_SIZE FRAME_SIZE 43 43 44 #ifndef __AS M__44 #ifndef __ASSEMBLER__ 45 45 # define KA2PA(x) (((uintptr_t) (x)) - 0x80000000) 46 46 # define PA2KA(x) (((uintptr_t) (x)) + 0x80000000) … … 143 143 #define PTE_EXECUTABLE_ARCH(pte) 1 144 144 145 #ifndef __AS M__145 #ifndef __ASSEMBLER__ 146 146 147 147 #include <mm/mm.h> … … 199 199 extern void page_arch_init(void); 200 200 201 #endif /* __AS M__ */201 #endif /* __ASSEMBLER__ */ 202 202 203 203 #endif -
kernel/arch/ppc32/include/arch/boot/boot.h
re0a4686 r53ad43c 42 42 #define BOOTINFO_TASK_NAME_BUFLEN 32 43 43 44 #ifndef __AS M__44 #ifndef __ASSEMBLER__ 45 45 46 46 #include <config.h> -
kernel/arch/ppc32/include/arch/mm/frame.h
re0a4686 r53ad43c 41 41 #define FRAME_LOWPRIO 0 42 42 43 #ifndef __AS M__43 #ifndef __ASSEMBLER__ 44 44 45 45 #include <stdint.h> … … 62 62 extern void physmem_print(void); 63 63 64 #endif /* __AS M__ */64 #endif /* __ASSEMBLER__ */ 65 65 66 66 #endif -
kernel/arch/ppc32/include/arch/mm/page.h
re0a4686 r53ad43c 42 42 #define PAGE_SIZE FRAME_SIZE 43 43 44 #ifndef __AS M__44 #ifndef __ASSEMBLER__ 45 45 #define KA2PA(x) (((uintptr_t) (x)) - 0x80000000) 46 46 #define PA2KA(x) (((uintptr_t) (x)) + 0x80000000) … … 146 146 #define PTE_EXECUTABLE_ARCH(pte) 1 147 147 148 #ifndef __AS M__148 #ifndef __ASSEMBLER__ 149 149 150 150 #include <mm/mm.h> … … 194 194 extern void page_arch_init(void); 195 195 196 #endif /* __AS M__ */196 #endif /* __ASSEMBLER__ */ 197 197 198 198 #endif -
kernel/arch/riscv64/include/arch/boot/boot.h
re0a4686 r53ad43c 45 45 #define TEMP_STACK_SIZE 0x1000 46 46 47 #ifndef __AS M__47 #ifndef __ASSEMBLER__ 48 48 49 49 #include <stddef.h> -
kernel/arch/riscv64/include/arch/cpu.h
re0a4686 r53ad43c 45 45 #define SATP_MODE_SV48 UINT64_C(0x9000000000000000) 46 46 47 #ifndef __AS M__47 #ifndef __ASSEMBLER__ 48 48 49 49 typedef struct { … … 52 52 extern void cpu_setup_fpu(void); 53 53 54 #endif /* __AS M__ */54 #endif /* __ASSEMBLER__ */ 55 55 56 56 #endif -
kernel/arch/riscv64/include/arch/mm/frame.h
re0a4686 r53ad43c 41 41 #define FRAME_LOWPRIO 0 42 42 43 #ifndef __AS M__43 #ifndef __ASSEMBLER__ 44 44 45 45 #include <arch/boot/boot.h> … … 54 54 extern void physmem_print(void); 55 55 56 #endif /* __AS M__ */56 #endif /* __ASSEMBLER__ */ 57 57 58 58 #endif -
kernel/arch/riscv64/include/arch/mm/page.h
re0a4686 r53ad43c 41 41 #define PAGE_SIZE FRAME_SIZE 42 42 43 #ifndef __AS M__43 #ifndef __ASSEMBLER__ 44 44 #define KA2PA(x) (((uintptr_t) (x)) - UINT64_C(0xffff800000000000)) 45 45 #define PA2KA(x) (((uintptr_t) (x)) + UINT64_C(0xffff800000000000)) … … 159 159 #define PTE_EXECUTABLE_ARCH(pte) ((pte)->executable != 0) 160 160 161 #ifndef __AS M__161 #ifndef __ASSEMBLER__ 162 162 163 163 #include <mm/mm.h> … … 216 216 extern void write_satp(uintptr_t); 217 217 218 #endif /* __AS M__ */218 #endif /* __ASSEMBLER__ */ 219 219 220 220 #endif -
kernel/arch/sparc64/include/arch/arch.h
re0a4686 r53ad43c 38 38 #define KERN_sparc64_ARCH_H_ 39 39 40 #ifndef __AS M__40 #ifndef __ASSEMBLER__ 41 41 #include <arch.h> 42 42 #endif … … 55 55 #define NWINDOWS 8 /** Number of register window sets. */ 56 56 57 #ifndef __AS M__57 #ifndef __ASSEMBLER__ 58 58 59 59 extern arch_ops_t *sparc64_ops; … … 61 61 extern void sparc64_pre_main(bootinfo_t *); 62 62 63 #endif /* __AS M__ */63 #endif /* __ASSEMBLER__ */ 64 64 65 65 #endif -
kernel/arch/sparc64/include/arch/boot/boot.h
re0a4686 r53ad43c 39 39 #define LMA VMA 40 40 41 #ifndef __AS M__41 #ifndef __ASSEMBLER__ 42 42 #ifndef __LINKER__ 43 43 -
kernel/arch/sparc64/include/arch/cpu.h
re0a4686 r53ad43c 52 52 #define IMPL_SPARC64V 0x5 53 53 54 #ifndef __AS M__54 #ifndef __ASSEMBLER__ 55 55 56 56 #include <arch/register.h> -
kernel/arch/sparc64/include/arch/mm/frame.h
re0a4686 r53ad43c 46 46 #endif 47 47 48 #ifndef __AS M__48 #ifndef __ASSEMBLER__ 49 49 50 50 #include <typedefs.h> -
kernel/arch/sparc64/include/arch/mm/page.h
re0a4686 r53ad43c 54 54 #define MMU_PAGES_PER_PAGE (1 << (PAGE_WIDTH - MMU_PAGE_WIDTH)) 55 55 56 #ifndef __AS M__56 #ifndef __ASSEMBLER__ 57 57 58 58 #include <arch/interrupt.h> … … 73 73 extern void page_arch_init(void); 74 74 75 #endif /* !def __AS M__ */75 #endif /* !def __ASSEMBLER__ */ 76 76 77 77 #endif -
kernel/arch/sparc64/include/arch/mm/sun4u/frame.h
re0a4686 r53ad43c 54 54 #define FRAME_LOWPRIO 0 55 55 56 #ifndef __AS M__56 #ifndef __ASSEMBLER__ 57 57 58 58 #include <typedefs.h> -
kernel/arch/sparc64/include/arch/mm/sun4u/mmu.h
re0a4686 r53ad43c 87 87 #endif 88 88 89 #ifndef __AS M__89 #ifndef __ASSEMBLER__ 90 90 91 91 #include <arch/asm.h> … … 116 116 #endif /* US */ 117 117 118 #endif /* !def __AS M__ */118 #endif /* !def __ASSEMBLER__ */ 119 119 120 120 #endif -
kernel/arch/sparc64/include/arch/mm/sun4u/tlb.h
re0a4686 r53ad43c 92 92 #define TLB_TAG_ACCESS_VPN_SHIFT 13 93 93 94 #ifndef __AS M__94 #ifndef __ASSEMBLER__ 95 95 96 96 #include <arch/mm/tte.h> … … 687 687 extern void describe_dmmu_fault(void); 688 688 689 #endif /* !def __AS M__ */689 #endif /* !def __ASSEMBLER__ */ 690 690 691 691 #endif -
kernel/arch/sparc64/include/arch/mm/sun4u/tsb.h
re0a4686 r53ad43c 56 56 #define TSB_TAG_TARGET_CONTEXT_SHIFT 48 57 57 58 #ifndef __AS M__58 #ifndef __ASSEMBLER__ 59 59 60 60 #include <arch/mm/tte.h> … … 171 171 extern void dtsb_pte_copy(struct pte *t, size_t index, bool ro); 172 172 173 #endif /* !def __AS M__ */173 #endif /* !def __ASSEMBLER__ */ 174 174 175 175 #endif -
kernel/arch/sparc64/include/arch/mm/sun4u/tte.h
re0a4686 r53ad43c 47 47 #define TTE_SIZE_SHIFT 61 48 48 49 #ifndef __AS M__49 #ifndef __ASSEMBLER__ 50 50 51 51 #include <stdint.h> … … 97 97 typedef union tte_data tte_data_t; 98 98 99 #endif /* !def __AS M__ */99 #endif /* !def __ASSEMBLER__ */ 100 100 101 101 #endif -
kernel/arch/sparc64/include/arch/mm/sun4v/page.h
re0a4686 r53ad43c 46 46 #define MMU_PAGES_PER_PAGE (1 << (PAGE_WIDTH - MMU_PAGE_WIDTH)) 47 47 48 #ifndef __AS M__48 #ifndef __ASSEMBLER__ 49 49 50 50 #include <arch/interrupt.h> … … 65 65 extern void page_arch_init(void); 66 66 67 #endif /* !def __AS M__ */67 #endif /* !def __ASSEMBLER__ */ 68 68 69 69 #endif -
kernel/arch/sparc64/include/arch/mm/sun4v/tlb.h
re0a4686 r53ad43c 40 40 #define MMU_FSA_SIZE 128 41 41 42 #ifndef __AS M__42 #ifndef __ASSEMBLER__ 43 43 44 44 #include <arch/mm/tte.h> … … 149 149 extern void describe_dmmu_fault(void); 150 150 151 #endif /* !def __AS M__ */151 #endif /* !def __ASSEMBLER__ */ 152 152 153 153 #endif -
kernel/arch/sparc64/include/arch/mm/sun4v/tsb.h
re0a4686 r53ad43c 49 49 #define TSB_FRAMES SIZE2FRAMES(TSB_SIZE) 50 50 51 #ifndef __AS M__51 #ifndef __ASSEMBLER__ 52 52 53 53 #include <stdbool.h> … … 76 76 extern void dtsb_pte_copy(struct pte *t, bool ro); 77 77 78 #endif /* !def __AS M__ */78 #endif /* !def __ASSEMBLER__ */ 79 79 80 80 #endif -
kernel/arch/sparc64/include/arch/mm/sun4v/tte.h
re0a4686 r53ad43c 48 48 #define MMU_FLAG_DTLB 1 /**< operation applies to DTLB */ 49 49 50 #ifndef __AS M__50 #ifndef __ASSEMBLER__ 51 51 52 52 #include <stdint.h> … … 76 76 #define VA_TAG_PAGE_SHIFT 22 77 77 78 #endif /* !def __AS M__ */78 #endif /* !def __ASSEMBLER__ */ 79 79 80 80 #endif -
kernel/arch/sparc64/include/arch/sun4u/cpu.h
re0a4686 r53ad43c 52 52 #define IMPL_SPARC64V 0x5 53 53 54 #ifndef __AS M__54 #ifndef __ASSEMBLER__ 55 55 56 56 #include <arch/register.h> -
kernel/arch/sparc64/include/arch/sun4v/cpu.h
re0a4686 r53ad43c 42 42 #define MAX_CORE_STRANDS 8 43 43 44 #ifndef __AS M__44 #ifndef __ASSEMBLER__ 45 45 46 46 #include <atomic.h> -
kernel/arch/sparc64/include/arch/sun4v/hypercall.h
re0a4686 r53ad43c 117 117 118 118 119 #ifndef __AS M__119 #ifndef __ASSEMBLER__ 120 120 121 121 #include <stdint.h> -
kernel/arch/sparc64/include/arch/trap/exception.h
re0a4686 r53ad43c 65 65 #define TT_STQF_MEM_ADDRESS_NOT_ALIGNED 0x39 66 66 67 #ifndef __AS M__67 #ifndef __ASSEMBLER__ 68 68 69 69 #include <arch/interrupt.h> … … 91 91 extern void STQF_mem_address_not_aligned(unsigned int, istate_t *); 92 92 93 #endif /* !__AS M__ */93 #endif /* !__ASSEMBLER__ */ 94 94 95 95 #endif -
kernel/arch/sparc64/include/arch/trap/interrupt.h
re0a4686 r53ad43c 63 63 #define IGN_SHIFT 6 64 64 65 #ifndef __AS M__65 #ifndef __ASSEMBLER__ 66 66 67 67 #include <arch/interrupt.h> … … 69 69 extern void interrupt(unsigned int n, istate_t *istate); 70 70 71 #endif /* !def __AS M__ */71 #endif /* !def __ASSEMBLER__ */ 72 72 73 73 -
kernel/arch/sparc64/include/arch/trap/regwin.h
re0a4686 r53ad43c 78 78 #define UWB_ALIGNMENT 1024 79 79 80 #ifdef __AS M__80 #ifdef __ASSEMBLER__ 81 81 82 82 /* … … 202 202 retry 203 203 .endm 204 #endif /* __AS M__ */204 #endif /* __ASSEMBLER__ */ 205 205 206 206 #if defined(SUN4U) -
kernel/arch/sparc64/include/arch/trap/sun4u/mmu.h
re0a4686 r53ad43c 55 55 #define FAST_MMU_HANDLER_SIZE 128 56 56 57 #ifdef __AS M__57 #ifdef __ASSEMBLER__ 58 58 59 59 .macro FAST_INSTRUCTION_ACCESS_MMU_MISS_HANDLER … … 166 166 .endm 167 167 168 #endif /* __AS M__ */168 #endif /* __ASSEMBLER__ */ 169 169 170 170 #endif -
kernel/arch/sparc64/include/arch/trap/sun4u/regwin.h
re0a4686 r53ad43c 33 33 #define KERN_sparc64_sun4u_REGWIN_H_ 34 34 35 #ifdef __AS M__35 #ifdef __ASSEMBLER__ 36 36 37 37 /* -
kernel/arch/sparc64/include/arch/trap/sun4v/interrupt.h
re0a4686 r53ad43c 38 38 #define KERN_sparc64_TRAP_SUN4V_INTERRUPT_H_ 39 39 40 #ifndef __AS M__40 #ifndef __ASSEMBLER__ 41 41 42 42 #include <arch/istate_struct.h> -
kernel/arch/sparc64/include/arch/trap/sun4v/mmu.h
re0a4686 r53ad43c 61 61 #define FAST_MMU_HANDLER_SIZE 128 62 62 63 #ifdef __AS M__63 #ifdef __ASSEMBLER__ 64 64 65 65 /* MMU fault status area data fault offset */ … … 181 181 PREEMPTIBLE_HANDLER exc_dispatch 182 182 .endm 183 #endif /* __AS M__ */183 #endif /* __ASSEMBLER__ */ 184 184 185 185 #endif -
kernel/arch/sparc64/include/arch/trap/sun4v/regwin.h
re0a4686 r53ad43c 34 34 #define KERN_sparc64_sun4v_REGWIN_H_ 35 35 36 #ifdef __AS M__36 #ifdef __ASSEMBLER__ 37 37 38 38 /* -
kernel/arch/sparc64/include/arch/trap/trap_table.h
re0a4686 r53ad43c 43 43 #define TRAP_TABLE_SIZE (TRAP_TABLE_ENTRY_COUNT * TRAP_TABLE_ENTRY_SIZE) 44 44 45 #ifndef __AS M__45 #ifndef __ASSEMBLER__ 46 46 47 47 #include <stdint.h> … … 56 56 extern trap_table_entry_t trap_table_save[TRAP_TABLE_ENTRY_COUNT]; 57 57 58 #endif /* !__AS M__ */58 #endif /* !__ASSEMBLER__ */ 59 59 60 #ifdef __AS M__60 #ifdef __ASSEMBLER__ 61 61 .macro SAVE_GLOBALS 62 62 mov %g1, %l1 … … 85 85 .endm 86 86 87 #endif /* __AS M__ */87 #endif /* __ASSEMBLER__ */ 88 88 89 89 #endif -
kernel/genarch/include/genarch/multiboot/multiboot.h
re0a4686 r53ad43c 52 52 #define MULTIBOOT_INFO_FLAGS_MMAP 0x40 53 53 54 #ifndef __AS M__54 #ifndef __ASSEMBLER__ 55 55 56 56 #include <typedefs.h> … … 77 77 extern void multiboot_info_parse(uint32_t, const multiboot_info_t *); 78 78 79 #endif /* __AS M__ */79 #endif /* __ASSEMBLER__ */ 80 80 81 81 #endif -
kernel/genarch/include/genarch/multiboot/multiboot2.h
re0a4686 r53ad43c 61 61 #define MULTIBOOT2_VISUAL_EGA 2 62 62 63 #ifndef __AS M__63 #ifndef __ASSEMBLER__ 64 64 65 65 #include <typedefs.h> … … 153 153 extern void multiboot2_info_parse(uint32_t, const multiboot2_info_t *); 154 154 155 #endif /* __AS M__ */155 #endif /* __ASSEMBLER__ */ 156 156 157 157 #endif -
kernel/generic/include/config.h
re0a4686 r53ad43c 50 50 #define CONFIG_TASK_ARGUMENTS_BUFLEN 64 51 51 52 #ifndef __AS M__52 #ifndef __ASSEMBLER__ 53 53 54 54 #include <stdbool.h> … … 109 109 extern ballocs_t ballocs; 110 110 111 #endif /* __AS M__ */111 #endif /* __ASSEMBLER__ */ 112 112 113 113 #endif -
kernel/generic/include/macros.h
re0a4686 r53ad43c 36 36 #define KERN_MACROS_H_ 37 37 38 #ifndef __AS M__38 #ifndef __ASSEMBLER__ 39 39 40 40 #include <stdint.h> … … 98 98 } 99 99 100 #endif /* __AS M__ */100 #endif /* __ASSEMBLER__ */ 101 101 102 102 #define ispwr2(x) (((x) & ((x) - 1)) == 0) -
kernel/generic/include/mm/asid.h
re0a4686 r53ad43c 41 41 #define KERN_ASID_H_ 42 42 43 #ifndef __AS M__43 #ifndef __ASSEMBLER__ 44 44 45 45 #include <arch/mm/asid.h> … … 55 55 #define ASID_MAX ASID_MAX_ARCH 56 56 57 #ifndef __AS M__57 #ifndef __ASSEMBLER__ 58 58 59 59 #define ASIDS_ALLOCABLE ((ASID_MAX + 1) - ASID_START) -
tools/autogen.py
re0a4686 r53ad43c 133 133 #define AUTOGEN_%s_H 134 134 135 #ifndef __AS M__135 #ifndef __ASSEMBLER__ 136 136 %s 137 137 #endif … … 139 139 %s 140 140 141 #ifndef __AS M__141 #ifndef __ASSEMBLER__ 142 142 %s 143 143 #endif -
uspace/Makefile.common
re0a4686 r53ad43c 332 332 333 333 %.o: %.S | depend 334 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS) -D__ASM__334 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS) 335 335 336 336 %.o: %.s | depend 337 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS) -D__ASM__337 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS) 338 338 339 339 %.o: %.c | depend … … 344 344 345 345 %.lo: %.S | depend 346 $(CC_JOB) -c -MD -MP $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS) -D__ASM__346 $(CC_JOB) -c -MD -MP $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS) 347 347 348 348 %.lo: %.s | depend 349 $(CC_JOB) -c -MD -MP $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS) -D__ASM__349 $(CC_JOB) -c -MD -MP $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS) 350 350 351 351 %.lo: %.c | depend
Note:
See TracChangeset
for help on using the changeset viewer.