mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Fixed enabling machine timer interrupt
This commit is contained in:
		
							parent
							
								
									8ef9891e46
								
							
						
					
					
						commit
						a49f1f785e
					
				| @ -36,6 +36,7 @@ rvtest_entry_point: | |||||||
|     csrw mtvec, t0      # Initialize MTVEC to trap_handler |     csrw mtvec, t0      # Initialize MTVEC to trap_handler | ||||||
|     csrw mideleg, zero  # Don't delegate interrupts |     csrw mideleg, zero  # Don't delegate interrupts | ||||||
|     csrw medeleg, zero  # Don't delegate exceptions |     csrw medeleg, zero  # Don't delegate exceptions | ||||||
|  |     li t0, 0x80          | ||||||
|     csrw mie, t0        # Enable machine timer interrupt |     csrw mie, t0        # Enable machine timer interrupt | ||||||
|     la t0, topoftrapstack  |     la t0, topoftrapstack  | ||||||
|     csrw mscratch, t0   # MSCRATCH holds trap stack pointer |     csrw mscratch, t0   # MSCRATCH holds trap stack pointer | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user