mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 03:42:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			741 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			741 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, Liav A. <liavalb@hotmail.co.il>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <Kernel/Interrupts/UnhandledInterruptHandler.h>
 | |
| #include <Kernel/Panic.h>
 | |
| 
 | |
| namespace Kernel {
 | |
| UnhandledInterruptHandler::UnhandledInterruptHandler(u8 interrupt_vector)
 | |
|     : GenericInterruptHandler(interrupt_vector)
 | |
| {
 | |
| }
 | |
| 
 | |
| bool UnhandledInterruptHandler::handle_interrupt(RegisterState const&)
 | |
| {
 | |
|     PANIC("Interrupt: Unhandled vector {} was invoked for handle_interrupt(RegisterState&).", interrupt_number());
 | |
| }
 | |
| 
 | |
| [[noreturn]] bool UnhandledInterruptHandler::eoi()
 | |
| {
 | |
|     PANIC("Interrupt: Unhandled vector {} was invoked for eoi().", interrupt_number());
 | |
| }
 | |
| 
 | |
| UnhandledInterruptHandler::~UnhandledInterruptHandler() = default;
 | |
| }
 | 
