File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ pub unsafe trait Plic: Copy {
24
24
const BASE : usize ;
25
25
}
26
26
27
- /// Platform-Level Interrupt Controler (PLIC) peripheral.
27
+ /// Platform-Level Interrupt Controller (PLIC) peripheral.
28
28
///
29
29
/// The RISC-V standard does not specify a fixed location for the PLIC.
30
30
/// Thus, each platform must specify the base address of the PLIC on the platform.
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ fn main() {
58
58
if let Ok ( target) = RiscvTarget :: build ( & target, & cargo_flags) {
59
59
let width = target. width ( ) ;
60
60
61
- // set environmet variable RISCV_RT_BASE_ISA to the base ISA of the target.
61
+ // set environment variable RISCV_RT_BASE_ISA to the base ISA of the target.
62
62
println ! (
63
63
"cargo:rustc-env=RISCV_RT_BASE_ISA={}" ,
64
64
target. llvm_base_isa( )
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ cfg_global_asm!(
168
168
addi t0, t0, 8
169
169
bltu t0, t2, 3b" ,
170
170
"
171
- 4: // RAM initilized " ,
171
+ 4: // RAM initialized " ,
172
172
) ;
173
173
174
174
// INITIALIZE FLOATING POINT UNIT
Original file line number Diff line number Diff line change 389
389
//!
390
390
//! ## `ExceptionHandler`
391
391
//!
392
- //! This function is called when exception without defined exception handler is occured .
392
+ //! This function is called when exception without defined exception handler is occurred .
393
393
//! The exception reason can be decoded from the `mcause`/`scause` register.
394
394
//!
395
395
//! This function can be redefined in the following way:
412
412
//!
413
413
//! ## Core interrupt handlers
414
414
//!
415
- //! This functions are called when corresponding interrupt is occured .
415
+ //! This functions are called when corresponding interrupt is occurred .
416
416
//! You can define a core interrupt handler with the [`core_interrupt`] attribute.
417
417
//! The attribute expects the path to the interrupt source as an argument.
418
418
//!
441
441
//!
442
442
//! ## External interrupt handlers
443
443
//!
444
- //! This functions are called when corresponding interrupt is occured .
444
+ //! This functions are called when corresponding interrupt is occurred .
445
445
//! You can define an external interrupt handler with the [`external_interrupt`] attribute.
446
446
//! The attribute expects the path to the interrupt source as an argument.
447
447
//!
453
453
//!
454
454
//! ## `DefaultHandler`
455
455
//!
456
- //! This function is called when interrupt without defined interrupt handler is occured .
456
+ //! This function is called when interrupt without defined interrupt handler is occurred .
457
457
//! The interrupt reason can be decoded from the `mcause`/`scause` register.
458
458
//! If it is an external interrupt, the interrupt reason can be decoded from a
459
459
//! target-specific peripheral interrupt controller.
Original file line number Diff line number Diff line change @@ -721,7 +721,7 @@ macro_rules! write_only_csr {
721
721
} ;
722
722
}
723
723
724
- /// Defines field accesor functions for a read-write CSR type.
724
+ /// Defines field accessor functions for a read-write CSR type.
725
725
#[ macro_export]
726
726
macro_rules! read_write_csr_field {
727
727
( $ty: ident,
@@ -804,7 +804,7 @@ macro_rules! read_write_csr_field {
804
804
} ;
805
805
}
806
806
807
- /// Defines field accesor functions for a read-only CSR type.
807
+ /// Defines field accessor functions for a read-only CSR type.
808
808
#[ macro_export]
809
809
macro_rules! read_only_csr_field {
810
810
( $ty: ident,
@@ -899,7 +899,7 @@ macro_rules! read_only_csr_field {
899
899
} ;
900
900
}
901
901
902
- /// Defines field accesor functions for a write-only CSR type.
902
+ /// Defines field accessor functions for a write-only CSR type.
903
903
#[ macro_export]
904
904
macro_rules! write_only_csr_field {
905
905
( $ty: ident,
You can’t perform that action at this time.
0 commit comments