Get rid of the systemGDT()
This commit is contained in:
		
							parent
							
								
									6c91528fb2
								
							
						
					
					
						commit
						73143f4e00
					
				
					 2 changed files with 1 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -13,7 +13,7 @@ namespace {
 | 
			
		|||
 | 
			
		||||
/**
 | 
			
		||||
 * Six byte field containing the length and a linear address where a descriptor
 | 
			
		||||
 * table livs.
 | 
			
		||||
 * table lives. One of these is passed to the `lgdt` and `lidt` instructions.
 | 
			
		||||
 */
 | 
			
		||||
struct PseudoDescriptor
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			@ -25,17 +25,6 @@ struct PseudoDescriptor
 | 
			
		|||
 | 
			
		||||
namespace x86 {
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Static
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
GDT&
 | 
			
		||||
GDT::systemGDT()
 | 
			
		||||
{
 | 
			
		||||
    static GDT sGDT;
 | 
			
		||||
    return sGDT;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Public
 | 
			
		||||
 */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -85,8 +85,6 @@ struct GDT
 | 
			
		|||
        Descriptor descriptor() const;
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    static GDT& systemGDT();
 | 
			
		||||
 | 
			
		||||
    GDT();
 | 
			
		||||
 | 
			
		||||
    /** Set the descriptor at the given `index` to the value of `spec`. */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue