???
This commit is contained in:
		
							parent
							
								
									8ec873b7d8
								
							
						
					
					
						commit
						f0987d82dc
					
				
					 2 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -101,9 +101,10 @@ timervec:
 | 
			
		|||
        sd a2, 8(a0)
 | 
			
		||||
        sd a3, 16(a0)
 | 
			
		||||
 | 
			
		||||
        # add another second to mtimecmp0.
 | 
			
		||||
        # schedule the next timer interrupt
 | 
			
		||||
        # by adding interval to mtimecmp.
 | 
			
		||||
        ld a1, 32(a0) # CLINT_MTIMECMP(hart)
 | 
			
		||||
        ld a2, 40(a0) # ticks per second
 | 
			
		||||
        ld a2, 40(a0) # interval
 | 
			
		||||
        ld a3, 0(a1)
 | 
			
		||||
        add a3, a3, a2
 | 
			
		||||
        sd a3, 0(a1)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -191,7 +191,7 @@ devintr()
 | 
			
		|||
 | 
			
		||||
    plic_complete(irq);
 | 
			
		||||
    return 1;
 | 
			
		||||
  } else if(scause == 0x8000000000000001){
 | 
			
		||||
  } else if(scause == 0x8000000000000001L){
 | 
			
		||||
    // software interrupt from a machine-mode timer interrupt,
 | 
			
		||||
    // forwarded by timervec in kernelvec.S.
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue