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

1422 Commits

Author SHA1 Message Date
diekmann
9f269b41df Improved picture of stack layout
* Added dots around envp and argv since those are arrays of pointers.
  While argc and NULL are just 8B, argv and envp are of variable size,
  usually more than 8B. The dots visualize this.

* In the first image, moved rsp to point to argc. This is the initial
  stack and register layout at the beginning of _start. Only after libc
  popped the top of the stack into rsi, rsp will point to beginning of
  argv. (*)

(*)
I verified this by writing my own _start implementation:
  039ac7c03c/start.asm (L61)
2017-08-11 12:17:23 +02:00
0xAX
d0c8fc5c01 Merge pull request #508 from diekmann/patch-2
Language: Added articles. Content: exec* family
2017-08-10 23:21:51 +06:00
Cornelius Diekmann
8dbc839a8a Language: Added articles. Content: exec* family
Language improvement: Added articles like `the`, `a`, ...

Content: The `exec*` family is a `C` wrapper, the syscall is usually only `execve`.
2017-08-10 18:36:59 +02:00
Cornelius Diekmann
a87d46fd66 Clarify: vDSO is linked automatically with glibc
Change is partly a verbatim copy of https://www.kernel.org/doc/Documentation/ABI/stable/vdso

Quote: "Programs that dynamically link to glibc will use the vDSO automatically. Otherwise, you can use the reference parser in tools/testing/selftests/vDSO/parse_vdso.c."

The old version of the book was slightly imprecise. It was unclear to me whether this is an optional or a default behavior.
2017-08-10 14:55:35 +02:00
0xAX
848436789f Merge pull request #506 from diekmann/patch-1
Minor language improvement
2017-08-10 18:40:54 +06:00
Cornelius Diekmann
4b0704fecf Minor language improvement
There are multiple different system calls. Starting the introduction in plural gives a better bridge to the examples "like to read or to write to a file, to open a socket" ...
2017-08-10 14:15:14 +02:00
0xAX
9c65648dd0 Merge pull request #504 from jbcayrou/patch-2
Fix typo linux-initialization-3
2017-08-04 23:52:45 +06:00
0xAX
30c5150968 Merge pull request #505 from jbcayrou/fix-initialization-4-arch_local_irq_disable
Fix arch_local_irq_disable C code extract
2017-08-04 20:28:47 +06:00
JB Cayrou
b96b249fdf Fix arch_local_irq_disable C code extract
In linux-initialization-4.md part, 'arch_local_irq_disable' is explained but the
code displayed is the 'arch_local_irq_enable' function.
2017-08-04 15:44:22 +02:00
Jean-Baptiste Cayrou
c546f39a95 Fix typo linux-initialization-3 2017-08-04 12:22:11 +02:00
Chandan Rai
976c775471 corrected typos 2017-08-02 00:44:53 +05:30
Chandan Rai
fc5cdbb0e7 corrected typos 2017-08-02 00:12:24 +05:30
0xAX
ddeb923d7f Merge pull request #501 from Aaron1011/absolute-links
Make all Github links reference a specific commit
2017-07-31 23:55:21 +06:00
Aaron Hill
17da4af718
Make all Github links reference a specific commit
Closes #480
2017-07-30 15:56:26 -04:00
0xAX
6023bc9cb7 Merge pull request #500 from int3rrupt/syscall-fix
Update sentence grammar
2017-07-30 21:54:08 +06:00
int3rrupt
9979317453 Update sentence grammar
Remove "never" from end of sentence and change "can't exceed to "can never exceed"
2017-07-30 08:24:36 -07:00
0xAX
0c1a6c534a Merge pull request #499 from jwilk-forks/spelling
SysCall/syscall-6: Fix typos
2017-07-30 18:32:15 +06:00
Jakub Wilk
307605b854 SysCall/syscall-6: Fix typos 2017-07-30 14:14:45 +02:00
0xAX
cf40a49fc9 Update SUMMARY.md 2017-07-30 13:49:44 +06:00
0xAX
6e6835c76b Update README.md 2017-07-30 13:49:13 +06:00
0xAX
8b4faeac4b Create syscall-6.md 2017-07-30 13:47:57 +06:00
0xAX
27bb6fc8f3 Merge pull request #497 from dasty/RDO-typos
Rdo typos
2017-07-23 00:22:19 +06:00
Radek Dostál
4e08a7e426 Initialization: make grep command more precise
Idea is clearly to grep for "kthreadd", even though grepping for "kthread"
will also work.

Signed-off-by: Radek Dostál <rd@radekdostal.com>
2017-07-22 20:12:21 +02:00
Radek Dostál
684c5ee70b Initialization: fix spelling
"hierarcy" => "hierarchy"
"hierarcies" => "hierarcies"

Signed-off-by: Radek Dostál <rd@radekdostal.com>
2017-07-22 20:12:21 +02:00
Radek Dostál
9dafe28254 Initialization: fix copy paste error
replace "will have will have" with only "will have"

Signed-off-by: Radek Dostál <rd@radekdostal.com>
2017-07-22 20:12:11 +02:00
0xAX
3ed1bd1b70 Merge pull request #495 from litao91/fix_typo
Typo fixes on booting part1
2017-07-17 23:57:21 +06:00
Tao LI
cda7e02da7 Typo fixes on booting part1 2017-07-17 11:40:31 +08:00
Alexander Kuleshov
0ce272fc6a fix #14 issue 2017-07-16 23:10:48 +06:00
Alexander Kuleshov
6ed0589b83 many fixes in boot part 1
including links fixes
2017-07-14 18:44:35 +06:00
Alexander Kuleshov
83cc5501b5 update description 2017-07-14 18:00:49 +06:00
Alexander Kuleshov
34f7ef4aad remove dead badge 2017-07-14 17:54:53 +06:00
Alexander Kuleshov
29771f71d8 typo fixed 2017-07-14 17:53:49 +06:00
Alexander Kuleshov
62916fb719 fix a typo 2017-07-14 17:52:40 +06:00
Alexander Kuleshov
e09dc5d53c remove dead badges 2017-07-14 17:41:27 +06:00
Alexander Kuleshov
6792d39c66 fix a typo 2017-07-14 17:34:50 +06:00
0xAX
874b34407c Merge pull request #492 from gerryqd/master
Update the 'kernel parameter' link address
2017-07-14 17:13:08 +06:00
Gerry WANG
571d9ac0ee Update the 'kernel parameter' link address
The old address is outdated, it is updated by the new one.
2017-07-11 12:09:43 +08:00
Alexander Kuleshov
30600495c4
fix articles 2017-07-08 00:22:46 +06:00
0xAX
9cf6442de9 Merge pull request #491 from kavi-nikhurpa/booting-typo-fix
fix typos in "Booting"
2017-06-28 14:02:59 +06:00
Kavindra Nikhurpa
ece5ad6f25 fix typos 2017-06-28 01:27:15 +05:30
0xAX
f7f7e96d15 Merge pull request #490 from mauri870/add-ptbr-translation
Update README with brazilian portuguese translation
2017-06-20 20:33:21 +06:00
Mauri de Souza Nunes
7b1c628462 Update README with brazilian portuguese translation 2017-06-20 08:16:19 -03:00
0xAX
c189df1c53 Merge pull request #489 from cirosantilli/patch-1
Mention Buildroot in addition to ivandaviov/minimal
2017-06-20 12:45:04 +06:00
Ciro Santilli 六四事件 法轮功 包卓轩scriptalert(1)/script
88170c12ef Mention Buildroot in addition to ivandaviov/minimal
It is more configurable.
2017-06-19 10:13:03 +01:00
Alexander Kuleshov
4521637d9c Merge branch 'master' of github.com:0xAX/linux-insides 2017-06-09 00:26:34 +06:00
Alexander Kuleshov
af4d2701fa mark some constants 2017-06-09 00:25:25 +06:00
0xAX
9838897740 Merge pull request #486 from TomasJuocepis/patch-1
correct minor mistake - list 3 bits instead of 4
2017-06-08 00:22:51 +06:00
Alexander Kuleshov
896411ad17 use 64-bit registers everywher in Theory/asm.md 2017-06-08 00:19:40 +06:00
Tomas Juocepis
f29bd4aebf correct minor mistake - list 3 bits instead of 4
Sentence starts with "The next three bits(40, 41, 42, 43)" Should exclude 43.
2017-06-06 08:41:10 -05:00
0xAX
a5105b4c8d Merge pull request #484 from phantez/memory
[contributors.md] Add Stéphan Gorget to the contributor list
2017-06-01 19:36:44 +06:00