1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2024-12-22 06:38:07 +00:00
Commit Graph

1753 Commits

Author SHA1 Message Date
0xAX
af1a757457
Merge pull request #722 from initBasti/fix_broken_links
Fix broken git hub links
2020-10-11 13:29:17 +06:00
0xAX
4753ddf4d7
Merge pull request #734 from roykuper13/boot-sector-origin-clearify
linux-bootstrap-1: Clearify the boot sector origin example
2020-10-11 13:28:03 +06:00
0xAX
71b672ce80
Merge pull request #737 from sjp38/fix_get_all_links_py
Fix get_all_links.py
2020-10-11 13:26:49 +06:00
Sebastian Fricke
dc2a576d2c
Merge pull request #738 from Vishwajith-K/patch-1
Typo Fix
2020-10-06 05:54:45 +02:00
Vishwajith-K
5524db1d75
Typo Fix
I'ma -> I'm a
2020-10-06 09:00:09 +05:30
Sebastian Fricke
ab99ead4f2
Merge pull request #736 from sjp38/fix_shellcheck_warnings
Scripts/latex: Fix shellcheck warnings
2020-10-04 18:30:01 +02:00
SeongJae Park
55b4919179 Scripts/get_all_links: Remove unnecessary comment
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
2020-10-03 07:26:28 +02:00
SeongJae Park
ecb9179750 Scripts/get_all_links: Properly close files
`get_all_links.py` opens files for reading urls in those, but do not
closes those.  This commit makes the script to properly close the files.

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
2020-10-03 07:25:10 +02:00
SeongJae Park
50332b3b4b Scripts/latex: Fix shellcheck warnings
Shellcheck[1] gives below warnings for `latex.sh` as below.  Those are
not real problems for now, but fixing those would be helpful for future
update.  This commit therefore fixes those except the shebang position,
as the warning is for Shellcheck itself.

[1] https://www.shellcheck.net/

    $ shellcheck latex.sh
    In latex.sh line 1:
    # latex.sh
    ^-- SC2148: Tips depend on target shell and yours is unknown. Add a
    shebang.

    In latex.sh line 8:
    for D in $(ls ../); do
             ^-- SC2045: Iterating over ls output is fragile. Use globs.

    In latex.sh line 12:
            pandoc ../$D/README.md ../$D/linux-*.md -o build/$D.tex
    --template default
                      ^-- SC2086: Double quote to prevent globbing and word
    splitting.
                                      ^-- SC2086: Double quote to prevent
    globbing and word splitting.
                                                             ^-- SC2086:
    Double quote to prevent globbing and word splitting.

    In latex.sh line 16:
    cd ./build
    ^-- SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.

    In latex.sh line 19:
        pdflatex -interaction=nonstopmode $f
                                          ^-- SC2086: Double quote to
    prevent globbing and word splitting.

    In latex.sh line 22:
    cd ../
    ^-- SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
2020-10-02 20:58:42 +02:00
Sebastian Fricke
3640d33a0d
Merge pull request #735 from sjp38/fix_contributing_md
CONTRIBUTING: Replace outdated image link
2020-10-02 08:53:54 +02:00
SeongJae Park
1e3bbbea3a CONTRIBUTING: Replace outdated image link
The screenshot for fork button, which was available from tinypic, is not
available now.  This commit replaces it with other image from the Github
Docs site.

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
2020-10-02 08:09:18 +02:00
Roy Kupershmid
f57c653b00 linux-bootstrap-1: Clearify the boot sector origin example
Following abf4f68 - removes all references to the deleted [ORG 0x7c00],
and generally mention that the BIOS copies the boot sector into that
fixed memory location
2020-09-26 20:55:05 +03:00
Sebastian Fricke
738fefc3c3
Merge pull request #729 from iAnatoly/master
clock_getres is added to vDSO for x86 as of Jun 22, 2019
2020-09-12 09:48:38 +02:00
Sebastian Fricke
12080c0912
Merge pull request #731 from dragonly/fix-linux-sync-2
fix typo: &lock-val to &lock->val
2020-09-12 09:45:10 +02:00
Li Yilong
af5829bf84 fix typo: &lock-val to &lock->val 2020-09-12 15:21:58 +08:00
Sebastian Fricke
46877264f0 Fix multiple display names for fixed links
Change the display names to match the correct file location, which the
link points to.

Signed-off-by: Sebastian Fricke <sebastian.fricke.linux@gmail.com>
2020-08-29 16:49:04 +02:00
Sebastian Fricke
b5c2dc0a0c Fix display text for github link
s/"kernel/cgroup.c"/"kernel/cgroup/cgroup.c"/

Signed-off-by: Sebastian Fricke <sebastian.fricke.linux@gmail.com>
2020-08-26 13:17:00 +02:00
iAnatoly
3eb70a8670 clock_getress is added to vDSO for x86 as of Jun 22, 2019: f66501dc53 2020-08-25 15:07:09 -07:00
0xAX
acfbdf7385
Merge pull request #728 from zhouzhouyi-hub/linux-initialization-1-fix
Explain a little more detail about the vmlinux.lds.S in Kernel Initialization. Part 1.
2020-08-25 23:14:21 +05:00
Zhouyi Zhou
9f9cbd54da Adding a reference to GNU LD manual to Kernel Initialization. Part 1. 2020-08-16 16:36:20 +08:00
Sebastian Fricke
0cf9842d57
Merge pull request #726 from ayyucedemirbas/patch-4
The link is broken
2020-07-23 07:42:53 +02:00
Sebastian Fricke
c6b1a358c3
Merge pull request #727 from andre-richter/patch-1
Few Typos
2020-07-23 07:41:50 +02:00
Andre Richter
675751765b
Few Typos 2020-07-22 22:41:01 +02:00
Ayyuce Demirbas
f998c45910
The link is broken
Added new link to kaslr_64.c source code file
2020-07-22 01:36:41 +03:00
Sebastian Fricke
4a827f63bc
Merge pull request #725 from ayyucedemirbas/patch-3
Some minor changes to improve formatting
2020-07-20 05:31:55 +02:00
Ayyuce Demirbas
4630e9c4d0
Some minor changes to improve formatting
Added a space
2020-07-20 01:24:45 +03:00
Sebastian Fricke
c83bbdf9be
Merge pull request #723 from GIHOLee/GIHOLee-patch-1
Update linux-interrupts-5.md: improve the grammar
2020-06-24 20:12:04 +02:00
GIHOLee
9c66a3659a
Update linux-interrupts-5.md
change 'the' to 'a'
2020-06-25 00:33:12 +08:00
GIHOLee
4a9aba4aec
Update linux-interrupts-5.md
s/SIGFPE for the divide error, SIGILL for the invalid opcode and etc.../
SIGFPE for a divide error, SIGILL for a invalid instruction etc.../
2020-06-24 20:34:57 +08:00
Sebastian Fricke
f1b388dbdb Fix broken git hub links
Replace the following dead github links, with equivalent working ones.

s/ 16f73eb02d | https://github.com/torvalds/linux
s/ 16f73eb02d/ | https://github.com/torvalds/linux
s/ 16f73eb02d/Documentation/security/credentials.txt | https://github.com/torvalds/linux/blob/master/Documentation/security/credentials.rst
s/ 16f73eb02d/Documentation/workqueue.txt | 6f0d349d92/Documentation/core-api/workqueue.rst
s/ 16f73eb02d/arch/x86/entry_entry_64.S | https://github.com/torvalds/linux/blob/master/arch/x86/entry/entry_64.S
s/ 16f73eb02d/arch/x86/include/asm/calling.h | https://github.com/torvalds/linux/blob/master/arch/x86/entry/calling.h
s/ 16f73eb02d/arch/x86/include/asm/pgalloc. | https://github.com/torvalds/linux/blob/master/arch/x86/include/asm/pgalloc.h
s/ 16f73eb02d/arch/x86/include/bitops.h | https://github.com/torvalds/linux/blob/master/arch/x86/include/asm/bitops.h
s/ 16f73eb02d/arch/x86/include/irqflags.h | https://github.com/torvalds/linux/blob/master/arch/x86/include/asm/irqflags.h
s/ 16f73eb02d/arch/x86/include/uapi/asm/msr-index.h | https://github.com/torvalds/linux/blob/master/arch/x86/include/asm/msr-index.h
s/ 16f73eb02d/arch/x86/kernel.setup.c | https://github.com/torvalds/linux/blob/master/arch/x86/kernel/setup.c
s/ 16f73eb02d/arch/x86/kernel/entry_64.S | https://github.com/torvalds/linux/blob/master/arch/x86/entry/entry_64.S
s/ 16f73eb02d/arch/x86/kernel/vsyscall_64.c | https://github.com/torvalds/linux/blob/master/arch/x86/entry/vsyscall/vsyscall_64.c
s/ 16f73eb02d/arch/x86/kernel/vsyscall_emu_64.S | https://github.com/torvalds/linux/blob/master/arch/x86/entry/vsyscall/vsyscall_emu_64.S
s/ 16f73eb02d/blob/arch/x86/kernel/cpu/common.c | https://github.com/torvalds/linux/blob/master/arch/x86/kernel/cpu/common.c
s/ 16f73eb02d/drivers/clocksource_acpi_pm.c | https://github.com/torvalds/linux/blob/master/drivers/clocksource/acpi_pm.c
s/ 16f73eb02d/drivers/i2c/i2c-core.c | https://github.com/torvalds/linux/blob/master/drivers/i2c/i2c-core-base.c
s/ 16f73eb02d/include/asm-generic-sections.h | https://github.com/torvalds/linux/blob/master/include/asm-generic/sections.h
s/ 16f73eb02d/include/context_tracking.h | https://github.com/torvalds/linux/blob/master/include/linux/context_tracking.h
s/ 16f73eb02d/include/mm_types.h | https://github.com/torvalds/linux/blob/master/include/linux/mm_types.h
s/ 16f73eb02d/kernel/apic/io_apic.c | https://github.com/torvalds/linux/blob/master/arch/x86/kernel/apic/io_apic.c
s/ 16f73eb02d/kernel/apic/vector.c | https://github.com/torvalds/linux/blob/master/arch/x86/kernel/apic/vector.c
s/ 16f73eb02d/kernel/cgroup.c | https://github.com/torvalds/linux/blob/master/kernel/cgroup/cgroup.c
s/ 16f73eb02d/kernel/cpuset.c | https://github.com/torvalds/linux/blob/master/kernel/cgroup/cpuset.c
s/ 16f73eb02d/kernel/irqinit.c | https://github.com/torvalds/linux/blob/master/arch/x86/kernel/irqinit.c
s/ 16f73eb02d/kernel/locking/lockdep_insides.h | https://github.com/torvalds/linux/blob/master/kernel/locking/lockdep_internals.h
s/ 16f73eb02d/kernel/tick-common.c | https://github.com/torvalds/linux/blob/master/kernel/time/tick-common.c
s/ 16f73eb02d/kernel/time/tich-sched.c | https://github.com/torvalds/linux/blob/master/kernel/time/tick-sched.c
s/ 16f73eb02d/linux/binfmts.h | https://github.com/torvalds/linux/blob/master/include/linux/binfmts.h
s/ 16f73eb02d/locking/rwsem-xadd.c | https://github.com/torvalds/linux/blob/master/kernel/locking/rwsem.c
s/ 16f73eb02d/mm/block.c | https://github.com/torvalds/linux/blob/master/mm/memblock.c
s/ 16f73eb02d/sched/idle.c | https://github.com/torvalds/linux/blob/master/kernel/sched/idle.c
s/ 16f73eb02d/sound/isa/sscape | https://github.com/torvalds/linux/blob/master/sound/isa/sscape.c

Signed-off-by: Sebastian Fricke <sebastian.fricke.linux@gmail.com>
2020-06-18 17:22:10 +02:00
Sebastian Fricke
b241397c31
Merge pull request #716 from initBasti/linux-interrupts-2-update
Linux interrupts 2 update Part 2
2020-06-18 17:15:53 +02:00
0xAX
58928da0bb
Merge branch 'master' into linux-interrupts-2-update 2020-06-14 00:05:59 +06:00
0xAX
f3e33981e3
Merge pull request #721 from initBasti/misc-1-paragraph-improvement
Improve paragraph in Misc/linux-misc-1.md
2020-06-10 23:41:37 +06:00
Sebastian Fricke
890101e412 Improve paragraph in Misc/linux-misc-1.md
Increase word variety, fix grammatical errors, place missing
punctuations and add missing articles.

Signed-off-by: Sebastian Fricke <sebastian.fricke.linux@gmail.com>
2020-06-10 18:00:12 +02:00
GIHOLee
e2ee5a7368
fix content
fix content:`SIGILL` for overflow exception -> `SIGILL` for the invalid opcode
2020-06-10 18:29:11 +08:00
0xAX
e0b57fef56
Merge pull request #719 from initBasti/update-links-v2
Gitbook Links: replace old links with new ones
2020-06-02 13:38:10 +06:00
Sebastian Fricke
2cff4abf08 Gitbook Links: replace old links with new ones
The old links didn't point to valid locations.
Replace the old links with the new links and test those changes with a
small script: https://github.com/initBasti/markdown_link_check .

______________________________________________________________

In order to find and replace the links, I used the following commands:

grep -rwohP '.' -e "\(https\:\/\/0xax.gitbooks.io\/\S*\)" > links.txt
(Find all links recursivly in the project directories and print out the
 only the matches links)

Within links.txt:
Remove the '(' & ')' => :%s/\(//g  and :%s/\)//g
Remove duplicates => :sort u

Test if the links work with:
python3 md_link_check.py --pattern 0xax.gitbook --output-file bad.txt
(https://github.com/initBasti/markdown_link_check)

Create replace commands:
:%s/.*/grep -rl & '.' | xargs sed -i 's#&##g'
Enter replacement URL between the 2nd & 3rd '#'
Execute commands: :w !sh

Signed-off-by: Sebastian Fricke <sebastian.fricke.linux@gmail.com>
2020-05-31 17:23:17 +02:00
Alexander Kuleshov
09642cab4e fix calculation of 8086 available memory range
Thanks to @rodggerbr
2020-05-31 13:15:40 +06:00
Sebastian Fricke
4058f2418a linux-interrupts-2: Improve text block
Remove redundant 'the'
s/Now as we jumped on the startup_32 from the/Now as we jumped into `startup_32` from/

Remove redundant 'the', ensure a varied choice of words
s/we will not find anything related to the interrupt handling here/
  we will not encounter anything related to interrupt handling here/

Improve sentence structure
s/The startup_32 contains code that makes preparations before the transition into long mode and directly jumps in to it/
The code inside of `startup_32` makes necessary preparations, before transitioning into the long mode with a direct jump/

Improve sentence structure and ensure a varied choice of words.
s/it makes preparations before the kernel decompression that occurs in the decompress_kernel from the/
it makes arrangements for the kernel decompression that occurs in the `decompress_kernel` function inside of ../

Remove redundant 'the', vary the choice of words
s/we jump on the startup_64 from the/we jump into `startup_64` defined at/

Reduce repetition, improve sentence structure
s/we start to build identity-mapped pages. After we have built identity-mapped pages, checked the NX bit, setup the Extended Feature Enable Register (see in links), and updated the early Global Descriptor Table with the lgdt instruction, we need to setup gs register/

Signed-off-by: Sebastian Fricke <sebastian.fricke.linux@gmail.com>
2020-05-13 18:52:59 +02:00
Sebastian Fricke
55ebd12262 linux-interrupts-2: Reduce word repetion
Reduce the repetion of words and set missing punctuation.

Signed-off-by: Sebastian Fricke <sebastian.fricke.linux@gmail.com>
2020-05-13 18:01:36 +02:00
Sebastian Fricke
f9c54129a3 linux-interrupts-2: Deprecated Makefile assignment
Replace a deprecated Makefile assignment with the current version.
Change was introduced with the following commit:
https://lkml.org/lkml/2019/10/24/377

Signed-off-by: Sebastian Fricke <sebastian.fricke.linux@gmail.com>
2020-05-13 17:55:44 +02:00
0xAX
f87effa3dc
Merge pull request #715 from initBasti/linux-interrupts-2-update
Linux interrupts 2 update Part 1
2020-05-09 19:25:04 +06:00
0xAX
e58c06bfca
Merge pull request #712 from initBasti/linux-interrupts-1-update
Linux interrupts 1 update
2020-05-09 19:22:43 +06:00
Sebastian Fricke
a327d7237b linux-interrupts-2: rework pm jump part
Shorten the sentence to reduce repetition, as the correlation with the boot chapter
is already explained in the previous sentence.
Add 'function' to `protected_mode_jump`

s/We already know from the earliest parts that entry to protected mode is located
  in the `boot_params.hdr.code32_start` and you can see that we pass the entry of
  the protected mode and `boot_params` to the `protected_mode_jump`
 /The entry to protected mode is located in the `boot_params.hdr.code32_start`
  and passed together with the `boot_params` to the `protected_mode_jump` function/

Correct grammatical errors:
s/in the end of the/at the end of/

Improve word choices:
s/gets these two parameters in the/receives these two parameters within the/

Add missing punctuation and add filling words for a more fluent reading.

This commit introduced a new way of annotating functions: (https://lkml.org/lkml/2019/1/30/374)
s/GLOBAL(protected_mode_jump)/SYM_FUNC_START_NOALIGN(protected_mode_jump)/
s/ENDPROC(protected_mode_jump)/SYM_FUNC_END(protected_mode_jump)/
s/GLOBAL(in_pm32)/SYM_FUNC_START_LOCAL_NOALIGN(.Lin_pm32)/
s/ENDPROC(in_pm32)/SYM_FUNC_END(.Lin_pm32)/

This commit made in_pm32 local: (https://lkml.org/lkml/2019/10/11/192)
s/2:     .long   in_pm32/2:     .long   .Lin_pm32/

Signed-off-by: Sebastian Fricke <sebastian.fricke.linux@gmail.com>
2020-05-02 11:20:09 +02:00
Sebastian Fricke
d383e52ef7 linux-interrupts-2:missing punctuation,improve wording
s/So, as you can understand there is no sense to have two similar structures which differ only by name./
It would make no sense to create two structures that only differ in their names./

Set missing punctuation.

Signed-off-by: Sebastian Fricke <sebastian.fricke.linux@gmail.com>
2020-05-02 11:20:09 +02:00
Sebastian Fricke
83ab97a7b1 linux-interrupts-2: Remove wrong 's' @ end of a word
s/the `NULL` interrupts descriptor table/the `NULL` interrupt descriptor table/

Signed-off-by: Sebastian Fricke <sebastian.fricke.linux@gmail.com>
2020-05-02 11:20:09 +02:00
Sebastian Fricke
a03aff1a0f linux-interrupts-2: Improve sentence structure
s/in the `go_to_protected_mode` function by the call of the `setup_idt`/
  in the `go_to_protected_mode` function by calling `setup_idt`/

Signed-off-by: Sebastian Fricke <sebastian.fricke.linux@gmail.com>
2020-05-02 11:20:09 +02:00
Sebastian Fricke
256b27ef79 Improve wording and remove repetitions
Remove repetitive statements and improve wording choices.

Signed-off-by: Sebastian Fricke <sebastian.fricke.linux@gmail.com>
2020-05-02 11:20:09 +02:00
Sebastian Fricke
2dcb99f7f7 Update gate-descriptor initialization 2/2
Removed backslashes in links in front of underscores as they are
unnecessary.
Fixes problems of commit: 350c9715ee
2020-04-23 17:26:36 +02:00
0xAX
d87766cd88
Merge pull request #706 from andi8086/andreas-fix1
Fix description of 'rep stosl' in bootstrap-4
2020-04-22 14:43:58 +06:00