not sure whaat this is
This commit is contained in:
1
grub.cfg
1
grub.cfg
@@ -1,4 +1,3 @@
|
|||||||
menuentry "RockOS" {
|
menuentry "RockOS" {
|
||||||
multiboot /boot/rockos
|
multiboot /boot/rockos
|
||||||
module /boot/origin.elf
|
|
||||||
}
|
}
|
||||||
@@ -38,7 +38,7 @@ void read_iso(ide_device_t* dev) {
|
|||||||
uint32_t lba_path_table = pvd->path_table_l_loc;
|
uint32_t lba_path_table = pvd->path_table_l_loc;
|
||||||
uint32_t path_table_sz = pvd->path_table_sz_le;
|
uint32_t path_table_sz = pvd->path_table_sz_le;
|
||||||
uint32_t sectors = path_table_sz / 2048;
|
uint32_t sectors = path_table_sz / 2048;
|
||||||
if (sectors % 2048 > 0) {
|
if (sectors % 2048 > 0 || sectors == 0) {
|
||||||
sectors++;
|
sectors++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,7 +50,6 @@ void read_iso(ide_device_t* dev) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
kprintf("iterating path table\n");
|
|
||||||
iso_path_table_entry_t* path = (iso_path_table_entry_t*)path_table_sec;
|
iso_path_table_entry_t* path = (iso_path_table_entry_t*)path_table_sec;
|
||||||
while ((uint32_t)path - (uint32_t)path_table_sec < 2048) {
|
while ((uint32_t)path - (uint32_t)path_table_sec < 2048) {
|
||||||
size_t entry_sz = sizeof(iso_path_table_entry_t) + (path->dir_ident_len - 1);
|
size_t entry_sz = sizeof(iso_path_table_entry_t) + (path->dir_ident_len - 1);
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ int strlen(const char* str) {
|
|||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void* kernel_heap = (void*)0xE0000000;
|
static void* kernel_heap = (void*)0xE0000000;
|
||||||
static size_t kernel_heap_sz = 0;
|
static size_t kernel_heap_sz = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user