diff --git a/src/include/kernel/kernel.h b/src/include/kernel/kernel.h index 5ed0bda..b3c645c 100644 --- a/src/include/kernel/kernel.h +++ b/src/include/kernel/kernel.h @@ -7,7 +7,7 @@ #include -#define ISA_STRING "x86_64" +#define ISA_NAME "x86_64" #endif diff --git a/src/kernel/arch/x86_64/memm_x86_64.c b/src/kernel/arch/x86_64/memm_x86_64.c index 2eeec75..6112c03 100644 --- a/src/kernel/arch/x86_64/memm_x86_64.c +++ b/src/kernel/arch/x86_64/memm_x86_64.c @@ -123,8 +123,8 @@ bool memm_map_pageframes_to( } map_pageframe_to(target, physical, user, write, align); - usize step = min(size, (usize)align * MEMM_PAGE_SIZE); + usize step = min(size, (usize)align * MEMM_PAGE_SIZE); size -= step; target += step; physical += step; diff --git a/src/kernel/main.c b/src/kernel/main.c index 9eda2e9..9da9895 100644 --- a/src/kernel/main.c +++ b/src/kernel/main.c @@ -65,7 +65,7 @@ void get_frame_buffer_with_bootinfo(framebuffer *fb, bootinfo_t *bootinfo) fb->width = fbinfo->framebuffer_width; fb->height = fbinfo->framebuffer_height; fb->pixsize = fbinfo->framebuffer_bpp / 8; - fb->pixtype = rgb; + fb->pixtype = rgb; // 绝大多数显示器配置都是rgb,不需要特意判断 memm_map_pageframes_to( (u64)fb->pointer, (u64)fb->pointer, fb->width * fb->height * fb->pixsize,