From 4a4659ca39af0a9c5aa92ee1d2c1a187b7525e45 Mon Sep 17 00:00:00 2001 From: ruitianzhong Date: Mon, 5 Feb 2024 21:05:15 +0800 Subject: [PATCH 1/2] update unavailable link in linux-interrupts-2.md Signed-off-by: ruitianzhong --- Interrupts/linux-interrupts-2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Interrupts/linux-interrupts-2.md b/Interrupts/linux-interrupts-2.md index 9c1cdb9..c33b7a6 100644 --- a/Interrupts/linux-interrupts-2.md +++ b/Interrupts/linux-interrupts-2.md @@ -441,7 +441,7 @@ static inline void _set_gate(int gate, unsigned type, void *addr, } ``` -Here we start from the `pack_gate` function which takes clean `IDT` entry represented by the `gate_desc` structure and fills it with the base address and limit, [Interrupt Stack Table](https://www.kernel.org/doc/Documentation/x86/x86_64/kernel-stacks), [Privilege level](http://en.wikipedia.org/wiki/Privilege_level), type of an interrupt which can be one of the following values: +Here we start from the `pack_gate` function which takes clean `IDT` entry represented by the `gate_desc` structure and fills it with the base address and limit, [Interrupt Stack Table](https://www.kernel.org/doc/Documentation/x86/kernel-stacks), [Privilege level](http://en.wikipedia.org/wiki/Privilege_level), type of an interrupt which can be one of the following values: * `GATE_INTERRUPT` * `GATE_TRAP` From 57ba9b4860ca3b365c799a16abaf433089b83f17 Mon Sep 17 00:00:00 2001 From: ruitianzhong Date: Mon, 5 Feb 2024 21:11:44 +0800 Subject: [PATCH 2/2] fix all broken links on `Kernel stacks` --- Initialization/linux-initialization-5.md | 2 +- Interrupts/linux-interrupts-2.md | 2 +- Interrupts/linux-interrupts-5.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Initialization/linux-initialization-5.md b/Initialization/linux-initialization-5.md index d3eb439..ad0fd09 100644 --- a/Initialization/linux-initialization-5.md +++ b/Initialization/linux-initialization-5.md @@ -504,7 +504,7 @@ Links * [mm vs active_mm](https://www.kernel.org/doc/Documentation/vm/active_mm.txt) * [e820](http://en.wikipedia.org/wiki/E820) * [Supervisor mode access prevention](https://lwn.net/Articles/517475/) -* [Kernel stacks](https://www.kernel.org/doc/Documentation/x86/x86_64/kernel-stacks) +* [Kernel stacks](https://www.kernel.org/doc/Documentation/x86/kernel-stacks) * [TSS](http://en.wikipedia.org/wiki/Task_state_segment) * [IDT](http://en.wikipedia.org/wiki/Interrupt_descriptor_table) * [Memory mapped I/O](http://en.wikipedia.org/wiki/Memory-mapped_I/O) diff --git a/Interrupts/linux-interrupts-2.md b/Interrupts/linux-interrupts-2.md index c33b7a6..ff2b611 100644 --- a/Interrupts/linux-interrupts-2.md +++ b/Interrupts/linux-interrupts-2.md @@ -537,6 +537,6 @@ Links * [Union type](http://en.wikipedia.org/wiki/Union_type) * [this_cpu_* operations](https://github.com/torvalds/linux/blob/16f73eb02d7e1765ccab3d2018e0bd98eb93d973/Documentation/this_cpu_ops.txt) * [vector number](http://en.wikipedia.org/wiki/Interrupt_vector_table) -* [Interrupt Stack Table](https://www.kernel.org/doc/Documentation/x86/x86_64/kernel-stacks) +* [Interrupt Stack Table](https://www.kernel.org/doc/Documentation/x86/kernel-stacks) * [Privilege level](http://en.wikipedia.org/wiki/Privilege_level) * [Previous part](https://0xax.gitbook.io/linux-insides/summary/interrupts/linux-interrupts-1) diff --git a/Interrupts/linux-interrupts-5.md b/Interrupts/linux-interrupts-5.md index 793ec50..55f54fa 100644 --- a/Interrupts/linux-interrupts-5.md +++ b/Interrupts/linux-interrupts-5.md @@ -286,7 +286,7 @@ The next exception is `#DF` or `Double fault`. This exception occurs when the pr set_intr_gate_ist(X86_TRAP_DF, &double_fault, DOUBLEFAULT_STACK); ``` -Note that this exception runs on the `DOUBLEFAULT_STACK` [Interrupt Stack Table](https://www.kernel.org/doc/Documentation/x86/x86_64/kernel-stacks) which has index - `1`: +Note that this exception runs on the `DOUBLEFAULT_STACK` [Interrupt Stack Table](https://www.kernel.org/doc/Documentation/x86/kernel-stacks) which has index - `1`: ```C #define DOUBLEFAULT_STACK 1 @@ -485,7 +485,7 @@ Links * [printk](https://en.wikipedia.org/wiki/Printk) * [coprocessor](https://en.wikipedia.org/wiki/Coprocessor) * [SIMD](https://en.wikipedia.org/wiki/SIMD) -* [Interrupt Stack Table](https://www.kernel.org/doc/Documentation/x86/x86_64/kernel-stacks) +* [Interrupt Stack Table](https://www.kernel.org/doc/Documentation/x86/kernel-stacks) * [PID](https://en.wikipedia.org/wiki/Process_identifier) * [x87 FPU](https://en.wikipedia.org/wiki/X87) * [control register](https://en.wikipedia.org/wiki/Control_register)