1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2025-02-24 04:51:59 +00:00
Go to file
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
Booting Make all Github links reference a specific commit 2017-07-30 15:56:26 -04:00
Cgroups Make all Github links reference a specific commit 2017-07-30 15:56:26 -04:00
Concepts Make all Github links reference a specific commit 2017-07-30 15:56:26 -04:00
DataStructures Make all Github links reference a specific commit 2017-07-30 15:56:26 -04:00
Initialization Merge pull request #504 from jbcayrou/patch-2 2017-08-04 23:52:45 +06:00
interrupts Make all Github links reference a specific commit 2017-07-30 15:56:26 -04:00
KernelStructures Add KernelStructures/idt.md 2016-08-21 01:18:18 +06:00
Misc Improved picture of stack layout 2017-08-11 12:17:23 +02:00
mm Make all Github links reference a specific commit 2017-07-30 15:56:26 -04:00
SyncPrim Make all Github links reference a specific commit 2017-07-30 15:56:26 -04:00
SysCall Minor language improvement 2017-08-10 14:15:14 +02:00
Theory Make all Github links reference a specific commit 2017-07-30 15:56:26 -04:00
Timers Make all Github links reference a specific commit 2017-07-30 15:56:26 -04:00
CONTRIBUTING.md Improved CONTRIBUTING.md 2016-04-01 17:59:52 +02:00
contributors.md Improved picture of stack layout 2017-08-11 12:17:23 +02:00
cover.jpg added cover.jpg 2015-03-22 22:43:13 +06:00
LINKS.md Make all Github links reference a specific commit 2017-07-30 15:56:26 -04:00
README.md remove dead badge 2017-07-14 17:54:53 +06:00
SUMMARY.md Update SUMMARY.md 2017-07-30 13:49:44 +06:00

linux-insides

A book-in-progress about the linux kernel and its insides.

The goal is simple - to share my modest knowledge about the insides of the linux kernel and help people who are interested in linux kernel insides, and other low-level subject matter.

Questions/Suggestions: Feel free about any questions or suggestions by pinging me at twitter @0xAX, adding an issue or just drop me an email.

Support

Support If you like linux-insides you can support me with:

Support with bitcoin Join the chat at https://gitter.im/0xAX/linux-insides

On other languages

LICENSE

Licensed BY-NC-SA Creative Commons.

Contributions

Feel free to create issues or pull-requests if you have any problems.

Please read CONTRIBUTING.md before pushing any changes.

image

Author

@0xAX