feat: some extensions to kernel standard c library. Other minor
improvements and formats
This commit is contained in:
@@ -106,7 +106,8 @@ gdt_t gdts[num_gdts] = {
|
||||
.executable = true,
|
||||
.read_write = true,
|
||||
.privilege = 0,
|
||||
}, { // 0x10 kernel data
|
||||
},
|
||||
{ // 0x10 kernel data
|
||||
.present = true,
|
||||
.base = 0,
|
||||
.limit = 0xFFFFFFFF,
|
||||
@@ -115,7 +116,8 @@ gdt_t gdts[num_gdts] = {
|
||||
.granularity = true,
|
||||
.executable = false,
|
||||
.read_write = true,
|
||||
}, { // 0x18 user code
|
||||
},
|
||||
{ // 0x18 user code
|
||||
.present = true,
|
||||
.base = 0,
|
||||
.limit = 0xFFFFFFFF,
|
||||
@@ -125,7 +127,8 @@ gdt_t gdts[num_gdts] = {
|
||||
.granularity = true,
|
||||
.executable = true,
|
||||
.read_write = true,
|
||||
}, { // 0x20 user data
|
||||
},
|
||||
{ // 0x20 user data
|
||||
.present = true,
|
||||
.base = 0,
|
||||
.limit = 0xFFFFFFFF,
|
||||
@@ -135,7 +138,8 @@ gdt_t gdts[num_gdts] = {
|
||||
.granularity = true,
|
||||
.executable = true,
|
||||
.read_write = true,
|
||||
}, { // 0x28 tss
|
||||
},
|
||||
{ // 0x28 tss
|
||||
.base = (uint32_t) &tss,
|
||||
.limit = sizeof(tss_t),
|
||||
.present = true,
|
||||
|
||||
Reference in New Issue
Block a user