Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dreamportdev/Osdev-Notes
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.5
Choose a base ref
...
head repository: dreamportdev/Osdev-Notes
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 3 commits
  • 3 files changed
  • 3 contributors

Commits on Feb 12, 2025

  1. Update I_Acknowledgments.md for new username (#111)

    IAmTheNerdNextDoor authored Feb 12, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    d285ddd View commit details

Commits on Feb 23, 2025

  1. improve formatting of systemcalls chapter

    dreamos82 committed Feb 23, 2025
    Copy the full SHA
    c673c5d View commit details

Commits on Mar 6, 2025

  1. osdev: userspace: switching modes fix wrong order (#112)

    vasilisalmpanis authored Mar 6, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    d61927d View commit details
Showing with 6 additions and 5 deletions.
  1. +2 −2 06_Userspace/02_Switching_Modes.md
  2. +2 −2 06_Userspace/04_System_Calls.md
  3. +2 −1 99_Appendices/I_Acknowledgments.md
4 changes: 2 additions & 2 deletions 06_Userspace/02_Switching_Modes.md
Original file line number Diff line number Diff line change
@@ -35,8 +35,8 @@ So if we're going to ring 0 (supervisor), RPL can be left at 0. If going to ring
This means our selectors for `ss` and `cs` end up looking like this:

```c
kernel_ss = 0x08 | 0;
kernel_cs = 0x10 | 0;
kernel_cs = 0x08 | 0;
kernel_ss = 0x10 | 0;
user_cs = 0x18 | 3;
user_ss = 0x20 | 3;
```
4 changes: 2 additions & 2 deletions 06_Userspace/04_System_Calls.md
Original file line number Diff line number Diff line change
@@ -135,7 +135,7 @@ First things first, the `syscall`/`sysret` pair uses three MSRs: `STAR` (0xC0000
An example of properly configured GDT and MSRs for 64-bit-only operation:
GDT:
* GDT:
|Offset|Name|Access byte|
|------|----|-----------|
|0x0|NULL|`0`|
@@ -144,7 +144,7 @@ GDT:
|0x18|User Data|`0b11110010`|
|0x20|User Code|`0b11111010`|
MSRs:
* MSRs:
|MSR|Name|Value|
|---|----|-----|
|`0xC0000081`|`STAR`| `0x0013000800000000` |
3 changes: 2 additions & 1 deletion 99_Appendices/I_Acknowledgments.md
Original file line number Diff line number Diff line change
@@ -22,4 +22,5 @@ In no particular order:
- @Hqnnqh ([https://github.com/Hqnnqh](https://github.com/Hqnnqh))
- @malletgaetan ([https://github.com/malletgaetan](https://github.com/malletgaetan))
- @mrjbom ([https://github.com/mrjbom](https://github.com/mrjbom))
- @AFellowSpeedrunner ([https://github.com/AFellowSpeedrunner](https://github.com/AFellowSpeedrunner))
- @IAmTheNerdNextDoor ([https://github.com/IAmTheNerdNextDoor](https://github.com/IAmTheNerdNextDoor))
- @vasilisalmpanis ([https://github.com/vasilisalmpanis](https://github.com/vasilisalmpanis))