Skip to content

Commit d61927d

Browse files
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 0 deletions
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)