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 int32 43 arch_int_assign_to_cpu(int32 irq, int32 cpu) 44 { 45 // Not yet supported. 46 return 0; 47 } 48 49 50 status_t 51 arch_int_init(kernel_args *args) 52 { 53 return B_OK; 54 } 55 56 57 status_t 58 arch_int_init_post_vm(kernel_args *args) 59 { 60 return B_OK; 61 } 62 63 64 status_t 65 arch_int_init_io(kernel_args* args) 66 { 67 return B_OK; 68 } 69 70 71 status_t 72 arch_int_init_post_device_manager(struct kernel_args *args) 73 { 74 return B_ENTRY_NOT_FOUND; 75 } 76