Changeset 53ad43c in mainline for kernel/arch/amd64
- 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
- Location:
- kernel/arch/amd64/include/arch
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.