mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 03:12:44 +00:00 
			
		
		
		
	 da88d766b2
			
		
	
	
		da88d766b2
		
	
	
	
	
		
			
			This commits inserts TODOs into all necessary places to make the kernel compile on riscv64!
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			642 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			642 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2022, Timon Kruiper <timonkruiper@gmail.com>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/Error.h>
 | |
| #include <AK/Platform.h>
 | |
| #include <AK/Types.h>
 | |
| 
 | |
| #if ARCH(X86_64)
 | |
| #    include <Kernel/Arch/x86_64/Interrupts.h>
 | |
| #endif
 | |
| 
 | |
| namespace Kernel {
 | |
| 
 | |
| class GenericInterruptHandler;
 | |
| 
 | |
| GenericInterruptHandler& get_interrupt_handler(u8 interrupt_number);
 | |
| void register_generic_interrupt_handler(u8 number, GenericInterruptHandler&);
 | |
| void unregister_generic_interrupt_handler(u8 number, GenericInterruptHandler&);
 | |
| ErrorOr<u8> reserve_interrupt_handlers(u8 number_of_irqs);
 | |
| 
 | |
| void initialize_interrupts();
 | |
| 
 | |
| }
 |