Changeset 06e1e95 in mainline for kernel/arch/amd64
- Timestamp:
- 2006-09-14T17:09:21Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1d1f5d3
- Parents:
- e5ecc02
- Location:
- kernel/arch/amd64
- Files:
-
- 34 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/arg.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __amd64_ARG_H__36 #define __amd64_ARG_H__35 #ifndef KERN_amd64_ARG_H_ 36 #define KERN_amd64_ARG_H_ 37 37 38 38 #include <stdarg.h> … … 40 40 #endif 41 41 42 42 /** @} 43 43 */ 44 44 -
kernel/arch/amd64/include/asm.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __amd64_ASM_H__36 #define __amd64_ASM_H__35 #ifndef KERN_amd64_ASM_H_ 36 #define KERN_amd64_ASM_H_ 37 37 38 38 #include <arch/pm.h> … … 275 275 GEN_WRITE_REG(dr7); 276 276 277 278 277 extern size_t interrupt_handler_size; 279 278 extern void interrupt_handlers(void); … … 281 280 #endif 282 281 283 /** @} 284 */ 285 282 /** @} 283 */ -
kernel/arch/amd64/include/atomic.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __amd64_ATOMIC_H__36 #define __amd64_ATOMIC_H__35 #ifndef KERN_amd64_ATOMIC_H_ 36 #define KERN_amd64_ATOMIC_H_ 37 37 38 38 #include <arch/types.h> … … 126 126 #endif 127 127 128 128 /** @} 129 129 */ 130 -
kernel/arch/amd64/include/boot/boot.h
re5ecc02 r06e1e95 33 33 */ 34 34 35 #ifndef __amd64_BOOT_H__36 #define __amd64_BOOT_H__35 #ifndef KERN_amd64_BOOT_H_ 36 #define KERN_amd64_BOOT_H_ 37 37 38 #define BOOT_OFFSET 38 #define BOOT_OFFSET 0x108000 39 39 #define AP_BOOT_OFFSET 0x8000 40 #define BOOT_STACK_SIZE 0x40040 #define BOOT_STACK_SIZE 0x400 41 41 42 42 #define MULTIBOOT_HEADER_MAGIC 0x1BADB002 -
kernel/arch/amd64/include/byteorder.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __amd64_BYTEORDER_H__36 #define __amd64_BYTEORDER_H__35 #ifndef KERN_amd64_BYTEORDER_H_ 36 #define KERN_amd64_BYTEORDER_H_ 37 37 38 38 /* AMD64 is little-endian */ … … 42 42 #endif 43 43 44 44 /** @} 45 45 */ 46 -
kernel/arch/amd64/include/context.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __amd64_CONTEXT_H__36 #define __amd64_CONTEXT_H__35 #ifndef KERN_amd64_CONTEXT_H_ 36 #define KERN_amd64_CONTEXT_H_ 37 37 38 #ifndef __amd64_TYPES_H__38 #ifndef KERN_amd64_TYPES_H_ 39 39 # include <arch/types.h> 40 40 #endif … … 67 67 #endif 68 68 69 69 /** @} 70 70 */ 71 -
kernel/arch/amd64/include/context_offset.h
re5ecc02 r06e1e95 10 10 #define OFFSET_IPL 0x40 11 11 12 /** @}13 */14 -
kernel/arch/amd64/include/cpu.h
re5ecc02 r06e1e95 33 33 */ 34 34 35 #ifndef __amd64_CPU_H__36 #define __amd64_CPU_H__35 #ifndef KERN_amd64_CPU_H_ 36 #define KERN_amd64_CPU_H_ 37 37 38 38 #define RFLAGS_IF (1 << 9) -
kernel/arch/amd64/include/cpuid.h
re5ecc02 r06e1e95 33 33 */ 34 34 35 #ifndef __amd64_CPUID_H__36 #define __amd64_CPUID_H__35 #ifndef KERN_amd64_CPUID_H_ 36 #define KERN_amd64_CPUID_H_ 37 37 38 38 #define AMD_CPUID_EXTENDED 0x80000001 … … 61 61 extern uint64_t rdtsc(void); 62 62 63 #endif /* __ASM__ */63 #endif /* !def __ASM__ */ 64 64 #endif 65 65 -
kernel/arch/amd64/include/ddi/ddi.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64ddi 30 30 * @{ 31 31 */ … … 36 36 */ 37 37 38 #ifndef __amd64_DDI_H__39 #define __amd64_DDI_H__38 #ifndef KERN_amd64_DDI_H_ 39 #define KERN_amd64_DDI_H_ 40 40 41 41 extern void io_perm_bitmap_install(void); … … 43 43 #endif 44 44 45 45 /** @} 46 46 */ 47 -
kernel/arch/amd64/include/debugger.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64debug 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __amd64_DEBUGGER_H__36 #define __amd64_DEBUGGER_H__35 #ifndef KERN_amd64_DEBUGGER_H_ 36 #define KERN_amd64_DEBUGGER_H_ 37 37 38 38 #include <arch/types.h> … … 54 54 #endif 55 55 56 56 /** @} 57 57 */ 58 -
kernel/arch/amd64/include/drivers/vesa.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __VESA_H__ 36 #define __VESA_H__ 37 35 #ifndef KERN_amd64_VESA_H_ 36 #define KERN_amd64_VESA_H_ 38 37 39 38 int vesa_present(void); 40 39 void vesa_init(void); 41 40 42 43 41 #endif 44 42 45 43 /** @} 46 44 */ 47 -
kernel/arch/amd64/include/elf.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __amd64_ELF_H__36 #define __amd64_ELF_H__35 #ifndef KERN_amd64_ELF_H_ 36 #define KERN_amd64_ELF_H_ 37 37 38 38 #define ELF_MACHINE EM_X86_64 … … 42 42 #endif 43 43 44 44 /** @} 45 45 */ 46 -
kernel/arch/amd64/include/faddr.h
re5ecc02 r06e1e95 33 33 */ 34 34 35 #ifndef __amd64_FADDR_H__36 #define __amd64_FADDR_H__35 #ifndef KERN_amd64_FADDR_H_ 36 #define KERN_amd64_FADDR_H_ 37 37 38 38 #include <arch/types.h> -
kernel/arch/amd64/include/interrupt.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64interrupt 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __ia32_INTERRUPT_H__36 #define __ia32_INTERRUPT_H__35 #ifndef KERN_amd64_INTERRUPT_H_ 36 #define KERN_amd64_INTERRUPT_H_ 37 37 38 38 #include <arch/types.h> … … 129 129 #endif 130 130 131 131 /** @} 132 132 */ 133 -
kernel/arch/amd64/include/memstr.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __amd64_MEMSTR_H__36 #define __amd64_MEMSTR_H__35 #ifndef KERN_amd64_MEMSTR_H_ 36 #define KERN_amd64_MEMSTR_H_ 37 37 38 38 /** Copy memory … … 142 142 #endif 143 143 144 144 /** @} 145 145 */ 146 -
kernel/arch/amd64/include/mm/as.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64mm 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __amd64_AS_H__36 #define __amd64_AS_H__35 #ifndef KERN_amd64_AS_H_ 36 #define KERN_amd64_AS_H_ 37 37 38 38 #define KERNEL_ADDRESS_SPACE_SHADOWED_ARCH 0 … … 51 51 #endif 52 52 53 53 /** @} 54 54 */ 55 -
kernel/arch/amd64/include/mm/frame.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64mm 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __amd64_FRAME_H__36 #define __amd64_FRAME_H__35 #ifndef KERN_amd64_FRAME_H_ 36 #define KERN_amd64_FRAME_H_ 37 37 38 38 #ifndef __ASM__ … … 43 43 #define FRAME_SIZE (1<<FRAME_WIDTH) 44 44 45 46 45 #ifndef __ASM__ 47 46 extern uintptr_t last_frame; … … 51 50 #endif 52 51 53 52 /** @} 54 53 */ 55 -
kernel/arch/amd64/include/mm/page.h
re5ecc02 r06e1e95 45 45 */ 46 46 47 #ifndef __amd64_PAGE_H__48 #define __amd64_PAGE_H__47 #ifndef KERN_amd64_PAGE_H_ 48 #define KERN_amd64_PAGE_H_ 49 49 50 50 #include <arch/mm/frame.h> -
kernel/arch/amd64/include/mm/ptl.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64mm 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 36 #ifndef __amd64_PTL_H_ 37 #define __amd64_PTL_H_ 35 #ifndef KERN_amd64_PTL_H_ 36 #define KERN_amd64_PTL_H_ 38 37 39 38 #define PTL_NO_EXEC (1<<63) … … 49 48 #endif 50 49 51 50 /** @} 52 51 */ 53 -
kernel/arch/amd64/include/mm/tlb.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64mm 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __amd64_TLB_H__36 #define __amd64_TLB_H__35 #ifndef KERN_amd64_TLB_H_ 36 #define KERN_amd64_TLB_H_ 37 37 38 38 #define tlb_arch_init() … … 41 41 #endif 42 42 43 43 /** @} 44 44 */ 45 -
kernel/arch/amd64/include/pm.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __amd64_PM_H__36 #define __amd64_PM_H__35 #ifndef KERN_amd64_PM_H_ 36 #define KERN_amd64_PM_H_ 37 37 38 38 #ifndef __ASM__ … … 195 195 #endif 196 196 197 197 /** @} 198 198 */ 199 -
kernel/arch/amd64/include/syscall.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __amd64_SYSCALL_H__36 #define __amd64_SYSCALL_H__35 #ifndef KERN_amd64_SYSCALL_H_ 36 #define KERN_amd64_SYSCALL_H_ 37 37 38 38 #include <arch/types.h> … … 42 42 #endif 43 43 44 44 /** @} 45 45 */ 46 -
kernel/arch/amd64/include/types.h
re5ecc02 r06e1e95 33 33 */ 34 34 35 #ifndef __amd64_TYPES_H__36 #define __amd64_TYPES_H__35 #ifndef KERN_amd64_TYPES_H_ 36 #define KERN_amd64_TYPES_H_ 37 37 38 38 #define NULL 0 -
kernel/arch/amd64/src/ddi/ddi.c
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64ddi 30 30 * @{ 31 31 */ … … 163 163 } 164 164 165 165 /** @} 166 166 */ 167 -
kernel/arch/amd64/src/debugger.c
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64debug 30 30 * @{ 31 31 */ … … 383 383 } 384 384 385 /** @} 386 */ 387 385 /** @} 386 */ -
kernel/arch/amd64/src/interrupt.c
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64interrupt 30 30 * @{ 31 31 */ … … 183 183 } 184 184 185 185 /** @} 186 186 */ 187 -
kernel/arch/amd64/src/mm/memory_init.c
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64mm 30 30 * @{ 31 31 */ … … 76 76 } 77 77 78 79 /** @} 78 /** @} 80 79 */ 81 -
kernel/arch/amd64/src/mm/page.c
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64mm 30 30 * @{ 31 31 */ … … 216 216 } 217 217 218 /** @} 219 */ 220 218 /** @} 219 */ -
kernel/arch/amd64/src/pm.c
re5ecc02 r06e1e95 28 28 */ 29 29 30 30 /** @addtogroup amd64 31 31 * @{ 32 32 */ … … 241 241 } 242 242 243 /** @} 244 */ 245 243 /** @} 244 */ -
kernel/arch/amd64/src/proc/scheduler.c
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64proc 30 30 * @{ 31 31 */ … … 81 81 } 82 82 83 83 /** @} 84 84 */ 85 -
kernel/arch/amd64/src/proc/task.c
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64proc 30 30 * @{ 31 31 */ … … 57 57 } 58 58 59 59 /** @} 60 60 */ 61 -
kernel/arch/amd64/src/syscall.c
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64 30 30 * @{ 31 31 */ … … 68 68 } 69 69 70 70 /** @} 71 71 */ 72 -
kernel/arch/amd64/src/userspace.c
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup amd64 30 30 * @{ 31 31 */ … … 78 78 } 79 79 80 80 /** @} 81 81 */ 82
Note:
See TracChangeset
for help on using the changeset viewer.