Skip to content

Commit

Permalink
i tried to use reinterpret_cast to fix warnings, but it doesnt exist.…
Browse files Browse the repository at this point in the history
… forgot to remove it in last commit tho
  • Loading branch information
Kazthwak committed Apr 19, 2023
1 parent 8eb12d0 commit d3b9c81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/pic.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ for(uint32_t i = 0; i < idt_entries; i++){
*isr_low = (uint16_t)(loc & 0xffff);
joffset+= 2;
// #gdt offset
uint16_t* kernel_cs = reinterpret_cast<uint16_t*>(j+joffset);
uint16_t* kernel_cs = (uint16_t*)(j+joffset);
*kernel_cs = (uint16_t)gdt_ent;
joffset+= 2;
//reserved
Expand Down
Binary file modified os-image
Binary file not shown.

0 comments on commit d3b9c81

Please sign in to comment.