From 36d55511ba8af8da2b1e29f637b75d4a7afcab7f Mon Sep 17 00:00:00 2001 From: fslongjin Date: Wed, 3 Aug 2022 17:23:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=AD=A3=E4=BC=98=E5=8C=96=E7=BA=A7?= =?UTF-8?q?=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 +- kernel/lib/libUI/screen_manager.c | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index f3592417..1a87b4c1 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ export ARCH=__x86_64__ export ROOT_PATH=$(shell pwd) export DEBUG=DEBUG -export GLOBAL_CFLAGS := -mcmodel=large -fno-builtin -m64 -fno-stack-protector -D $(ARCH) -O0 +export GLOBAL_CFLAGS := -mcmodel=large -fno-builtin -m64 -fno-stack-protector -D $(ARCH) -O1 ifeq ($(DEBUG), DEBUG) GLOBAL_CFLAGS += -g diff --git a/kernel/lib/libUI/screen_manager.c b/kernel/lib/libUI/screen_manager.c index 5c30f01a..ef00e19a 100644 --- a/kernel/lib/libUI/screen_manager.c +++ b/kernel/lib/libUI/screen_manager.c @@ -8,12 +8,7 @@ #include #include -/** - * @brief 初始化屏幕管理模块 - * - */ -#pragma GCC push_options -#pragma GCC optimize("O0") + extern struct scm_buffer_info_t video_frame_buffer_info; static struct List scm_framework_list; @@ -84,6 +79,10 @@ static int __destroy_buffer(struct scm_buffer_info_t *buf) return 0; } +/** + * @brief 初始化屏幕管理模块 + * + */ void scm_init() { list_init(&scm_framework_list); @@ -316,4 +315,3 @@ void scm_reinit() } while (list_next(&ptr->list) != &scm_framework_list); return; } -#pragma GCC pop_options \ No newline at end of file