mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
define kernel data segment as 64bit data segment
This commit is contained in:
parent
81c7b8dac0
commit
e2803e606b
1 changed files with 2 additions and 2 deletions
|
@ -117,7 +117,7 @@ void gdt_install(void)
|
|||
* this entry's access byte says it's a Data Segment
|
||||
*/
|
||||
gdt_set_gate(num++, 0, 0,
|
||||
GDT_FLAG_RING0 | GDT_FLAG_SEGMENT | GDT_FLAG_DATASEG | GDT_FLAG_PRESENT, 0);
|
||||
GDT_FLAG_RING0 | GDT_FLAG_SEGMENT | GDT_FLAG_DATASEG | GDT_FLAG_PRESENT, GDT_FLAG_64_BIT);
|
||||
|
||||
/*
|
||||
* Create code segment for 32bit user-space applications (ring 3)
|
||||
|
@ -141,7 +141,7 @@ void gdt_install(void)
|
|||
* Create data segment for 64bit user-space applications (ring 3)
|
||||
*/
|
||||
gdt_set_gate(num++, 0, 0,
|
||||
GDT_FLAG_RING3 | GDT_FLAG_SEGMENT | GDT_FLAG_DATASEG | GDT_FLAG_PRESENT, 0);
|
||||
GDT_FLAG_RING3 | GDT_FLAG_SEGMENT | GDT_FLAG_DATASEG | GDT_FLAG_PRESENT, GDT_FLAG_64_BIT);
|
||||
|
||||
/*
|
||||
* Create TSS for each core (we use these segments for task switching)
|
||||
|
|
Loading…
Add table
Reference in a new issue