1338b8dc3SIngo WeinholdSubDir HAIKU_TOP src system kernel arch x86 ; 22d690920SAxel Dörfler 3338b8dc3SIngo WeinholdSubDirHdrs [ FDirName $(TARGET_COMMON_DEBUG_OBJECT_DIR) system kernel ] ; 40a51327fSAxel Dörfler # for syscall_numbers.h 5036b999bSAxel DörflerSubDirHdrs $(HAIKU_TOP) src add-ons kernel bus_managers ps2 ; 68c51cca2SIngo WeinholdSubDirHdrs $(HAIKU_TOP) src add-ons kernel bus_managers acpi acpica include ; 78c51cca2SIngo WeinholdSubDirHdrs $(HAIKU_TOP) src add-ons kernel bus_managers acpi acpica include 88c51cca2SIngo Weinhold platform ; 96e29a04dSStefano CeccheriniSubDirHdrs $(SUBDIR) timers ; 10a71974c1SIngo Weinhold 116b202f4eSIngo WeinholdUsePrivateKernelHeaders ; 1247c40a10SIngo WeinholdUsePrivateHeaders shared ; 132d690920SAxel Dörfler 141b3e83adSIngo WeinholdSEARCH_SOURCE += [ FDirName $(SUBDIR) paging ] ; 156e29a04dSStefano CeccheriniSEARCH_SOURCE += [ FDirName $(SUBDIR) timers ] ; 166e29a04dSStefano Ceccherini 17020a25ceSAlex Smithlocal archSpecificSources ; 18020a25ceSAlex Smithif $(TARGET_ARCH) = x86_64 { 19020a25ceSAlex Smith SEARCH_SOURCE += [ FDirName $(SUBDIR) 64 ] ; 20950b24e3SAlex Smith SEARCH_SOURCE += [ FDirName $(SUBDIR) paging 64bit ] ; 211b3e83adSIngo Weinhold 22020a25ceSAlex Smith archSpecificSources = 234304bb98SAlex Smith arch.S 244304bb98SAlex Smith cpuid.S 254f419b51SAlex Smith int.cpp 264f419b51SAlex Smith interrupts.S 27020a25ceSAlex Smith stubs.cpp 28b5c9d24aSAlex Smith thread.cpp 29950b24e3SAlex Smith 30950b24e3SAlex Smith # paging 31d687d8acSAlex Smith x86_physical_page_mapper_mapped.cpp 32950b24e3SAlex Smith 33950b24e3SAlex Smith # paging/64bit 34950b24e3SAlex Smith X86PagingMethod64Bit.cpp 35950b24e3SAlex Smith X86PagingStructures64Bit.cpp 36950b24e3SAlex Smith X86VMTranslationMap64Bit.cpp 37020a25ceSAlex Smith ; 38020a25ceSAlex Smith} else { 39020a25ceSAlex Smith SEARCH_SOURCE += [ FDirName $(SUBDIR) 32 ] ; 40950b24e3SAlex Smith SEARCH_SOURCE += [ FDirName $(SUBDIR) paging 32bit ] ; 41950b24e3SAlex Smith SEARCH_SOURCE += [ FDirName $(SUBDIR) paging pae ] ; 42020a25ceSAlex Smith 43020a25ceSAlex Smith archSpecificSources = 44*4ebc6dfaSAlex Smith apm.cpp 454e8fbfb2SAlex Smith arch.S 46*4ebc6dfaSAlex Smith bios.cpp 474304bb98SAlex Smith cpuid.S 484f419b51SAlex Smith int.cpp 494f419b51SAlex Smith interrupts.S 50b5c9d24aSAlex Smith thread.cpp 51*4ebc6dfaSAlex Smith vm86.cpp 524f419b51SAlex Smith 5334b3b26bSIngo Weinhold arch_commpage.cpp 54393fceb5SAxel Dörfler arch_debug.cpp 552d690920SAxel Dörfler arch_user_debugger.cpp 56dc14d97bSMichael Lotz ioapic.cpp 57cb58e3f7SClemens Zeidler irq_routing_table.cpp 5833fbe254SMichael Lotz msi.cpp 591cbf8f4bSTravis Geiselbrecht syscall.S 6024df6592SIngo Weinhold x86_signals.cpp 6124df6592SIngo Weinhold x86_signals_asm.S 6224df6592SIngo Weinhold x86_syscalls.cpp 631b3e83adSIngo Weinhold 641b3e83adSIngo Weinhold # paging 6547c40a10SIngo Weinhold x86_physical_page_mapper_large_memory.cpp 66a71974c1SIngo Weinhold 671b3e83adSIngo Weinhold # paging/32bit 681b3e83adSIngo Weinhold X86PagingMethod32Bit.cpp 69f0675bf7SIngo Weinhold X86PagingStructures32Bit.cpp 701c7fda89SIngo Weinhold X86VMTranslationMap32Bit.cpp 711b3e83adSIngo Weinhold 725b4d62a2SIngo Weinhold # paging/pae 735b4d62a2SIngo Weinhold X86PagingMethodPAE.cpp 745b4d62a2SIngo Weinhold X86PagingStructuresPAE.cpp 755b4d62a2SIngo Weinhold X86VMTranslationMapPAE.cpp 76020a25ceSAlex Smith ; 77020a25ceSAlex Smith} 78020a25ceSAlex Smith 79020a25ceSAlex Smithlocal archGenericSources = 804304bb98SAlex Smith arch_cpu.cpp 81020a25ceSAlex Smith arch_debug_console.cpp 823b802628SAlex Smith arch_elf.cpp 834f419b51SAlex Smith arch_int.cpp 8484bf29f9SAlex Smith arch_platform.cpp 85659bacacSAlex Smith arch_real_time_clock.cpp 8676a1175dSAlex Smith arch_smp.cpp 87659bacacSAlex Smith arch_system_info.cpp 88b5c9d24aSAlex Smith arch_thread.cpp 89c1517626SAlex Smith arch_timer.cpp 904988ca58SAlex Smith arch_vm.cpp 91950b24e3SAlex Smith arch_vm_translation_map.cpp 92c1517626SAlex Smith apic.cpp 934f419b51SAlex Smith pic.cpp 94950b24e3SAlex Smith 95950b24e3SAlex Smith # paging 96950b24e3SAlex Smith x86_physical_page_mapper.cpp 97950b24e3SAlex Smith X86PagingMethod.cpp 98950b24e3SAlex Smith X86PagingStructures.cpp 99950b24e3SAlex Smith X86VMTranslationMap.cpp 100c1517626SAlex Smith 101c1517626SAlex Smith # timers 102c1517626SAlex Smith x86_apic.cpp 103c1517626SAlex Smith x86_hpet.cpp 104c1517626SAlex Smith x86_pit.cpp 105020a25ceSAlex Smith; 106020a25ceSAlex Smith 107020a25ceSAlex SmithKernelMergeObject kernel_arch_x86.o : 108020a25ceSAlex Smith $(archSpecificSources) 109020a25ceSAlex Smith $(archGenericSources) 1102d690920SAxel Dörfler : 111a8f9741cSMichael Lotz $(TARGET_KERNEL_PIC_CCFLAGS) 1122d690920SAxel Dörfler; 1132d690920SAxel Dörfler 11434b3b26bSIngo WeinholdCreateAsmStructOffsetsHeader asm_offsets.h : asm_offsets.cpp ; 11534b3b26bSIngo Weinhold 1162d690920SAxel Dörfler# We need to specify the dependency on the generated syscalls file explicitly. 117b1700b2cSIngo WeinholdIncludes [ FGristFiles arch_interrupts.S arch_x86.S x86_signals.cpp ] 1182d690920SAxel Dörfler : <syscalls>syscall_numbers.h ; 11934b3b26bSIngo WeinholdIncludes [ FGristFiles arch_interrupts.S ] 12034b3b26bSIngo Weinhold : <syscalls>syscall_table.h ; 121