cmosgetdate() for system-call homework
the day of reckoning has come for the debug port "Shutdown" hack. instead of mucking with ACPI or using a new hack, the student will now write sys_date() using the cmosgetdate() helper.
This commit is contained in:
		
							parent
							
								
									75dee1219f
								
							
						
					
					
						commit
						aae4e7490f
					
				
					 4 changed files with 72 additions and 3 deletions
				
			
		
							
								
								
									
										2
									
								
								defs.h
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								defs.h
									
										
									
									
									
								
							|  | @ -4,6 +4,7 @@ struct file; | |||
| struct inode; | ||||
| struct pipe; | ||||
| struct proc; | ||||
| struct rtcdate; | ||||
| struct spinlock; | ||||
| struct stat; | ||||
| struct superblock; | ||||
|  | @ -71,6 +72,7 @@ void            kinit2(void*, void*); | |||
| void            kbdintr(void); | ||||
| 
 | ||||
| // lapic.c
 | ||||
| void            cmostime(struct rtcdate *r); | ||||
| int             cpunum(void); | ||||
| extern volatile uint*    lapic; | ||||
| void            lapiceoi(void); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Cody Cutler
						Cody Cutler