kernel: adjust formatting
This commit is contained in:
@@ -36,7 +36,9 @@ void e820_scan(multiboot_memory_map_t *mmap, size_t len)
|
|||||||
}
|
}
|
||||||
|
|
||||||
printk("e820: [mem 0x%016llx-0x%016llx] %s",
|
printk("e820: [mem 0x%016llx-0x%016llx] %s",
|
||||||
entry->addr, entry->addr + entry->len - 1, type);
|
entry->addr,
|
||||||
|
entry->addr + entry->len - 1,
|
||||||
|
type);
|
||||||
|
|
||||||
memblock_add(entry->addr, entry->len);
|
memblock_add(entry->addr, entry->len);
|
||||||
|
|
||||||
@@ -53,7 +55,12 @@ void e820_scan(multiboot_memory_map_t *mmap, size_t len)
|
|||||||
|
|
||||||
char str_mem_total[64], str_mem_reserved[64];
|
char str_mem_total[64], str_mem_reserved[64];
|
||||||
data_size_to_string(mem_total, str_mem_total, sizeof str_mem_total);
|
data_size_to_string(mem_total, str_mem_total, sizeof str_mem_total);
|
||||||
data_size_to_string(mem_reserved, str_mem_reserved, sizeof str_mem_reserved);
|
data_size_to_string(
|
||||||
|
mem_reserved,
|
||||||
|
str_mem_reserved,
|
||||||
|
sizeof str_mem_reserved);
|
||||||
|
|
||||||
printk("e820: total memory: %s, hw reserved: %s", str_mem_total, str_mem_reserved);
|
printk("e820: total memory: %s, hw reserved: %s",
|
||||||
|
str_mem_total,
|
||||||
|
str_mem_reserved);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -366,7 +366,7 @@ syscall_gate:
|
|||||||
movq %rsp, %gs:20 # GS+20 = rsp2 in the current TSS block (user stack storage)
|
movq %rsp, %gs:20 # GS+20 = rsp2 in the current TSS block (user stack storage)
|
||||||
movq %gs:4, %rsp # GS+4 = rsp0 in the current TSS block (per-thread kstack)
|
movq %gs:4, %rsp # GS+4 = rsp0 in the current TSS block (per-thread kstack)
|
||||||
|
|
||||||
# start building a pf_cpu_context
|
# start building a ml_cpu_context
|
||||||
pushq $0x1b
|
pushq $0x1b
|
||||||
pushq %gs:20
|
pushq %gs:20
|
||||||
push %r11
|
push %r11
|
||||||
|
|||||||
Reference in New Issue
Block a user