mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:42:43 +00:00 
			
		
		
		
	Kernel: Add an x86 include check+error in x86/PageDirectory.h
This commit is contained in:
		
							parent
							
								
									70a18a2271
								
							
						
					
					
						commit
						17fb2adf61
					
				
					 3 changed files with 11 additions and 1 deletions
				
			
		|  | @ -11,6 +11,9 @@ | |||
| #include <Kernel/Forward.h> | ||||
| #include <Kernel/PhysicalAddress.h> | ||||
| 
 | ||||
| #include <AK/Platform.h> | ||||
| VALIDATE_IS_X86() | ||||
| 
 | ||||
| namespace Kernel { | ||||
| 
 | ||||
| class PageDirectoryEntry { | ||||
|  |  | |||
|  | @ -6,11 +6,14 @@ | |||
| 
 | ||||
| #pragma once | ||||
| 
 | ||||
| #include <Kernel/Arch/x86/PageDirectory.h> | ||||
| #include <Kernel/Multiboot.h> | ||||
| #include <Kernel/PhysicalAddress.h> | ||||
| #include <Kernel/VirtualAddress.h> | ||||
| 
 | ||||
| namespace Kernel { | ||||
| class PageTableEntry; | ||||
| } | ||||
| 
 | ||||
| extern "C" PhysicalAddress start_of_prekernel_image; | ||||
| extern "C" PhysicalAddress end_of_prekernel_image; | ||||
| extern "C" size_t physical_to_virtual_offset; | ||||
|  |  | |||
|  | @ -21,6 +21,10 @@ | |||
| #include <Kernel/Memory/Region.h> | ||||
| #include <Kernel/Memory/VMObject.h> | ||||
| 
 | ||||
| namespace Kernel { | ||||
| class PageDirectoryEntry; | ||||
| } | ||||
| 
 | ||||
| namespace Kernel::Memory { | ||||
| 
 | ||||
| constexpr bool page_round_up_would_wrap(FlatPtr x) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 James Mintram
						James Mintram