Skip to content

Commit 5e6096d

Browse files
doc(interrupt): remove type casting to uint64_t (#132)
* doc: remove type casting to uint64_t * chore: add to acknowledgements
1 parent 1fd5998 commit 5e6096d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

02_Architecture/05_InterruptHandling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ Because of the 16-byte alignment, we know that handler number `xyz` is offset by
224224
extern char vector_0_handler[];
225225

226226
for (size_t i = 0; i < 256; i++)
227-
set_idt_entry(i, (uint64_t)vector_0_handler + (i * 16), 0);
227+
set_idt_entry(i, vector_0_handler + (i * 16), 0);
228228
```
229229
230230
The type of vector_0_handler isn't important, we only care about the address it occupies. This address gets resolved by the linker, and we could just as easily use a pointer type instead of an array here.

99_Appendices/I_Acknowledgments.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ In no particular order:
2929
- @alexdev404 ([https://github.com/AlexDev404](https://github.com/AlexDev404))
3030
- @frischerZucker ([https://github.com/frischerZucker](https://github.com/frischerZucker))
3131
- @oito8bits ([https://github.com/oito8bits](https://github.com/oito8bits))
32+
- @realstealthninja ([https://github.com/realstealthninja](https://github.com/realstealthninja))

0 commit comments

Comments
 (0)