From 14a2de0f7ff41945a9dcf20184685f7f8453604d Mon Sep 17 00:00:00 2001 From: yufeng <321353225@qq.com> Date: Sun, 4 Aug 2024 19:38:16 +0800 Subject: [PATCH] feat: support graphic --- kernel/Cargo.toml | 2 +- kernel/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/Cargo.toml b/kernel/Cargo.toml index d9fd705..cd410d4 100644 --- a/kernel/Cargo.toml +++ b/kernel/Cargo.toml @@ -19,7 +19,7 @@ logging = { git = "https://github.com/Byte-OS/logging.git", features = []} log = "0.4" devices = { git = "https://github.com/Byte-OS/devices.git" } hal = { git = "https://github.com/Byte-OS/hal.git" } -polyhal = { git = "https://github.com/Byte-OS/polyhal.git", features = ["trap"]} +polyhal = { git = "https://github.com/Byte-OS/polyhal.git", features = ["trap", "graphic", "logger"]} fs = { git = "https://github.com/Byte-OS/fs.git" } fdt = "0.1.5" executor = { git = "https://github.com/Byte-OS/executor.git" } diff --git a/kernel/src/main.rs b/kernel/src/main.rs index f46c6f0..9b9cd8a 100644 --- a/kernel/src/main.rs +++ b/kernel/src/main.rs @@ -155,7 +155,7 @@ fn main(hart_id: usize) { println!("{}", str); // initialize logging module - logging::init(option_env!("LOG")); + // logging::init(option_env!("LOG")); polyhal::common::init(&PageAllocImpl); get_mem_areas().into_iter().for_each(|(start, size)| {