Skip to content

Commit a00bc60

Browse files
authored
Fix informations in Userspace/Handling_Interrupts (#115)
* fix informations in tss struct and layout of tss system descriptor * add AntoninRuan in acknowledgments
1 parent 8165f52 commit a00bc60

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

06_Userspace/03_Handling_Interrupts.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,15 @@ typedef struct tss
2222
uint64_t rsp1;
2323
uint64_t rsp2;
2424
uint64_t reserved1;
25-
uint64_t reserved2;
2625
uint64_t ist1;
2726
uint64_t ist2;
2827
uint64_t ist3;
2928
uint64_t ist4;
3029
uint64_t ist5;
3130
uint64_t ist6;
3231
uint64_t ist7;
33-
uint64_t reserved3;
34-
uint16_t reserved4;
32+
uint64_t reserved2;
33+
uint16_t reserved3;
3534
uint16_t io_bitmap_offset;
3635
}__attribute__((__packed__)) tss_t;
3736
```
@@ -60,7 +59,7 @@ The layout of the TSS system descriptor is broken down below in the following ta
6059
| 39:32 | TSS address bits 23:16 | Contains the next 8 bits of the tss address. |
6160
| 47:40 | 0b10001001 | Sets the type of GDT descriptor, its DPL (bits 45:46) to 0, marks it as present (bit 47). Bit 44 (S) along with bits 40 to 43 indicate the type of descriptor. If curious as to how this value was created, see the intel SDM manual or our section about the GDT.|
6261
| 48:51 | Limit 16:9 | The higher part of the limit field, bits 9 to 16 |
63-
| 55:52 | 0bG000A | Additional fields for the TSS entry. Where G (bit 55) is the granularity bit and A (bit 52) is a bit left available to the operating system. The other bits must be left as 0 |
62+
| 55:52 | 0bG00A | Additional fields for the TSS entry. Where G (bit 55) is the granularity bit and A (bit 52) is a bit left available to the operating system. The other bits must be left as 0 |
6463
| 63:56 | TSS address bits 31:24 | Contains the next 8 bits of the tss address. |
6564
| 95:64 | TSS address bits 63:32 | Contains the upper 32 bits of the tss address. |
6665
| 96:127 | Reserved | They should be left as 0. |

99_Appendices/I_Acknowledgments.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ In no particular order:
2424
- @mrjbom ([https://github.com/mrjbom](https://github.com/mrjbom))
2525
- @IAmTheNerdNextDoor ([https://github.com/IAmTheNerdNextDoor](https://github.com/IAmTheNerdNextDoor))
2626
- @vasilisalmpanis ([https://github.com/vasilisalmpanis](https://github.com/vasilisalmpanis))
27+
- @AntoninRuan ([https://github.com/AntoninRuan](https://github.com/AntoninRuan))

0 commit comments

Comments
 (0)