From 7a3a4014c945d1d8ab4a7a164a461abb039c8f38 Mon Sep 17 00:00:00 2001 From: Nan Xiao Date: Mon, 3 Aug 2015 16:18:53 +0800 Subject: [PATCH] Update linux-initialization-2.md Fix some typos. --- Initialization/linux-initialization-2.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Initialization/linux-initialization-2.md b/Initialization/linux-initialization-2.md index 542deb7..568881e 100644 --- a/Initialization/linux-initialization-2.md +++ b/Initialization/linux-initialization-2.md @@ -20,11 +20,11 @@ Some theory Interrupt is an event caused by software or hardware to the CPU. On interrupt, CPU stops the current task and transfer control to the interrupt handler, which handles interruption and transfer control back to the previously stopped task. We can split interrupts on three types: -* Software interrupts - when a software signals CPU that it needs kernel attention. These interrupts generally used for system calls; -* Hardware interrupts - when a hardware, for example button pressed on a keyboard; +* Software interrupts - when a software signals CPU that it needs kernel attention. These interrupts are generally used for system calls; +* Hardware interrupts - when a hardware event happens, for example button is pressed on a keyboard; * Exceptions - interrupts generated by CPU, when the CPU detects error, for example division by zero or accessing a memory page which is not in RAM. -Every interrupt and exception is assigned an unique number which called - `vector number`. `Vector number` can be any number from `0` to `255`. There is common practice to use first `32` vector numbers for exceptions, and vector numbers from `31` to `255` are used for user-defined interrupts. We can see it in the code above - `NUM_EXCEPTION_VECTORS`, which defined as: +Every interrupt and exception is assigned a unique number which called - `vector number`. `Vector number` can be any number from `0` to `255`. There is common practice to use first `32` vector numbers for exceptions, and vector numbers from `32` to `255` are used for user-defined interrupts. We can see it in the code above - `NUM_EXCEPTION_VECTORS`, which defined as: ```C #define NUM_EXCEPTION_VECTORS 32