mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:42:44 +00:00 
			
		
		
		
	Kernel: Slap UNMAP_AFTER_INIT on a bunch more functions
We're now able to unmap 100 KiB of kernel text after init. :^)
This commit is contained in:
		
							parent
							
								
									e920c74cae
								
							
						
					
					
						commit
						2b2828ae52
					
				
					 36 changed files with 105 additions and 105 deletions
				
			
		|  | @ -37,7 +37,7 @@ enum class FeatureLevel { | |||
|     Disabled, | ||||
| }; | ||||
| 
 | ||||
| static FeatureLevel determine_feature_level() | ||||
| UNMAP_AFTER_INIT static FeatureLevel determine_feature_level() | ||||
| { | ||||
|     auto value = kernel_command_line().lookup("acpi").value_or("on"); | ||||
|     if (value == "limited") | ||||
|  | @ -47,7 +47,7 @@ static FeatureLevel determine_feature_level() | |||
|     return FeatureLevel::Enabled; | ||||
| } | ||||
| 
 | ||||
| void initialize() | ||||
| UNMAP_AFTER_INIT void initialize() | ||||
| { | ||||
|     auto feature_level = determine_feature_level(); | ||||
|     if (feature_level == FeatureLevel::Disabled) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling