a few nits
This commit is contained in:
		
							parent
							
								
									82537b7156
								
							
						
					
					
						commit
						a81e02133a
					
				
					 3 changed files with 1 additions and 4 deletions
				
			
		
							
								
								
									
										1
									
								
								lapic.c
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								lapic.c
									
										
									
									
									
								
							| 
						 | 
					@ -114,7 +114,6 @@ lapic_timerinit(void)
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
lapic_timerintr(void)
 | 
					lapic_timerintr(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  // cprintf("cpu%d: timer interrupt!\n", cpu());
 | 
					 | 
				
			||||||
  lapic_write (LAPIC_EOI, 0);
 | 
					  lapic_write (LAPIC_EOI, 0);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								picirq.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								picirq.c
									
										
									
									
									
								
							| 
						 | 
					@ -1,5 +1,3 @@
 | 
				
			||||||
/* See COPYRIGHT for copyright information. */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#include "types.h"
 | 
					#include "types.h"
 | 
				
			||||||
#include "x86.h"
 | 
					#include "x86.h"
 | 
				
			||||||
#include "traps.h"
 | 
					#include "traps.h"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								trap.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								trap.c
									
										
									
									
									
								
							| 
						 | 
					@ -21,7 +21,7 @@ tvinit(void)
 | 
				
			||||||
  for(i = 0; i < 256; i++){
 | 
					  for(i = 0; i < 256; i++){
 | 
				
			||||||
    SETGATE(idt[i], 1, SEG_KCODE << 3, vectors[i], 0);
 | 
					    SETGATE(idt[i], 1, SEG_KCODE << 3, vectors[i], 0);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  SETGATE(idt[T_SYSCALL], 1, SEG_KCODE << 3, vectors[48], 3);
 | 
					  SETGATE(idt[T_SYSCALL], 1, SEG_KCODE << 3, vectors[T_SYSCALL], 3);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue