1 /* 2 * Copyright 2019 Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #include <int.h> 6 7 #include <arch/smp.h> 8 #include <boot/kernel_args.h> 9 #include <device_manager.h> 10 #include <kscheduler.h> 11 #include <interrupt_controller.h> 12 #include <smp.h> 13 #include <thread.h> 14 #include <timer.h> 15 #include <util/DoublyLinkedList.h> 16 #include <util/kernel_cpp.h> 17 #include <vm/vm.h> 18 #include <vm/vm_priv.h> 19 #include <vm/VMAddressSpace.h> 20 #include <string.h> 21 22 #define TRACE_ARCH_INT 23 #ifdef TRACE_ARCH_INT 24 # define TRACE(x) dprintf x 25 #else 26 # define TRACE(x) ; 27 #endif 28 29 30 void 31 arch_int_enable_io_interrupt(int irq) 32 { 33 } 34 35 36 void 37 arch_int_disable_io_interrupt(int irq) 38 { 39 } 40 41 42 void 43 arch_int_assign_to_cpu(int32 irq, int32 cpu) 44 { 45 // intentionally left blank; no SMP support (yet) 46 } 47 48 49 status_t 50 arch_int_init(kernel_args *args) 51 { 52 return B_OK; 53 } 54 55 56 status_t 57 arch_int_init_post_vm(kernel_args *args) 58 { 59 return B_OK; 60 } 61 62 63 status_t 64 arch_int_init_io(kernel_args* args) 65 { 66 return B_OK; 67 } 68 69 70 status_t 71 arch_int_init_post_device_manager(struct kernel_args *args) 72 { 73 return B_ENTRY_NOT_FOUND; 74 } 75