This minicommit introduces two newtpyes, `Physical` and `Virtual`, respectively. These serves as a way to segregate the different forms of addresses to avoid the issues we had in the old kernel.
		
			
				
	
	
		
			6 lines
		
	
	
	
		
			178 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
	
		
			178 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
/// A newtype representing a virtual address.
 | 
						|
#[derive(Copy, Clone, Debug, Eq, Ord, PartialEq, PartialOrd)]
 | 
						|
pub struct Virtual {
 | 
						|
    /// The inner value.
 | 
						|
    pub inner: usize,
 | 
						|
}
 |