Skip to content

Commit d61927d

Browse files
authoredMar 6, 2025
osdev: userspace: switching modes fix wrong order (#112)
1 parent c673c5d commit d61927d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎06_Userspace/02_Switching_Modes.md

+2-2
Original file line numberDiff line numberDiff 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
3535
This means our selectors for `ss` and `cs` end up looking like this:
3636

3737
```c
38-
kernel_ss = 0x08 | 0;
39-
kernel_cs = 0x10 | 0;
38+
kernel_cs = 0x08 | 0;
39+
kernel_ss = 0x10 | 0;
4040
user_cs = 0x18 | 3;
4141
user_ss = 0x20 | 3;
4242
```

‎99_Appendices/I_Acknowledgments.md

+1
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ In no particular order:
2323
- @malletgaetan ([https://github.com/malletgaetan](https://github.com/malletgaetan))
2424
- @mrjbom ([https://github.com/mrjbom](https://github.com/mrjbom))
2525
- @IAmTheNerdNextDoor ([https://github.com/IAmTheNerdNextDoor](https://github.com/IAmTheNerdNextDoor))
26+
- @vasilisalmpanis ([https://github.com/vasilisalmpanis](https://github.com/vasilisalmpanis))

0 commit comments

Comments
 (0)