summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2021-04-23 05:40:07 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2021-04-23 05:40:07 +0000
commit12b073e46a4ba1153661fcf8c28c71035e593f98 (patch)
treefbec92e9a72296581bd571081e4130ed051989c2 /sys
parent9bd2e6f3da49cd195fd6d9235b1c9b164aaf872f (diff)
spelling
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/riscv64/dev/riscv_cpu_intc.c2
-rw-r--r--sys/arch/riscv64/dev/timer.c2
-rw-r--r--sys/arch/riscv64/riscv64/fpu.c2
-rw-r--r--sys/arch/riscv64/riscv64/intr.c2
-rw-r--r--sys/arch/riscv64/riscv64/machdep.c2
-rw-r--r--sys/arch/riscv64/riscv64/pmap.c4
6 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/riscv64/dev/riscv_cpu_intc.c b/sys/arch/riscv64/dev/riscv_cpu_intc.c
index 1b1448cd003..6a22c8cf34e 100644
--- a/sys/arch/riscv64/dev/riscv_cpu_intc.c
+++ b/sys/arch/riscv64/dev/riscv_cpu_intc.c
@@ -117,7 +117,7 @@ riscv_intc_irq_handler(void *frame)
ih = intc_handler[irq];
if (ih->ih_func(frame) == 0)
#ifdef DEBUG_INTC
- printf("fail in handleing irq %d %s\n", irq, ih->ih_name);
+ printf("fail in handling irq %d %s\n", irq, ih->ih_name);
#else
;
#endif /* DEBUG_INTC */
diff --git a/sys/arch/riscv64/dev/timer.c b/sys/arch/riscv64/dev/timer.c
index f62a404489e..946e28d489b 100644
--- a/sys/arch/riscv64/dev/timer.c
+++ b/sys/arch/riscv64/dev/timer.c
@@ -272,7 +272,7 @@ riscv_timer_cpu_initclocks()
sc->sc_ticks_err_cnt = sc->sc_ticks_per_second % hz;
pc->pc_ticks_err_sum = 0;
- /* configure virtual timer interupt */
+ /* configure virtual timer interrupt */
sc->sc_ih = riscv_intc_intr_establish(IRQ_TIMER_SUPERVISOR, 0,
riscv_timer_intr, NULL, "riscv_timer");
diff --git a/sys/arch/riscv64/riscv64/fpu.c b/sys/arch/riscv64/riscv64/fpu.c
index 2128dc0f71a..a992b0a1f8f 100644
--- a/sys/arch/riscv64/riscv64/fpu.c
+++ b/sys/arch/riscv64/riscv64/fpu.c
@@ -234,7 +234,7 @@ fpu_load(struct proc *p)
/*
* pcb->pcb_fpcpu and ci->ci_fpuproc are activated here
* to indicate that the fpu context is correctly loaded on
- * this cpu. XXX block interupts for these saves ?
+ * this cpu. XXX block interrupts for these saves ?
*/
pcb->pcb_fpcpu = ci;
ci->ci_fpuproc = p;
diff --git a/sys/arch/riscv64/riscv64/intr.c b/sys/arch/riscv64/riscv64/intr.c
index baadb10f010..639cbe6e66c 100644
--- a/sys/arch/riscv64/riscv64/intr.c
+++ b/sys/arch/riscv64/riscv64/intr.c
@@ -586,7 +586,7 @@ void
setstatclockrate(int new)
{
if (riscv_clock_func.setstatclockrate == NULL) {
- panic("riscv_clock_func.setstatclockrate not intialized");
+ panic("riscv_clock_func.setstatclockrate not initialized");
}
riscv_clock_func.setstatclockrate(new);
}
diff --git a/sys/arch/riscv64/riscv64/machdep.c b/sys/arch/riscv64/riscv64/machdep.c
index 9feb19cda9a..1b50dc1b902 100644
--- a/sys/arch/riscv64/riscv64/machdep.c
+++ b/sys/arch/riscv64/riscv64/machdep.c
@@ -791,7 +791,7 @@ initriscv(struct riscv_bootparams *rbp)
end = MIN(reg.addr + reg.size, (paddr_t)-PAGE_SIZE);
/*
- * The intial 64MB block is not excluded, so we need
+ * The initial 64MB block is not excluded, so we need
* to make sure we don't add it here.
*/
if (start < memend && end > memstart) {
diff --git a/sys/arch/riscv64/riscv64/pmap.c b/sys/arch/riscv64/riscv64/pmap.c
index 0598693c7ee..a38e92f6465 100644
--- a/sys/arch/riscv64/riscv64/pmap.c
+++ b/sys/arch/riscv64/riscv64/pmap.c
@@ -417,7 +417,7 @@ PTED_VALID(struct pte_desc *pted)
* One issue of making this a single data structure is that two pointers are
* wasted for every page which does not map ram (device mappings), this
* should be a low percentage of mapped pages in the system, so should not
- * have too noticable unnecessary ram consumption.
+ * have too noticeable unnecessary ram consumption.
*/
void
@@ -1785,7 +1785,7 @@ pmap_fault_fixup(pmap_t pm, vaddr_t va, vm_prot_t ftype, int user)
/*
* Exec always includes a reference. Since we now know
- * the page has been accesed, we can enable read as well
+ * the page has been accessed, we can enable read as well
* if UVM allows it.
*/
atomic_setbits_int(&pg->pg_flags, PG_PMAP_REF);