From ba3a0030fc34b352e15d3f104f9cf4fca17798c9 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Sun, 15 Mar 2020 10:50:59 +0800 Subject: [PATCH] Do not init the fields in the shared resource segment for DRM engine; left them for DRM engine --- src/kernel/init-lite.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kernel/init-lite.c b/src/kernel/init-lite.c index 5c8eecbb..03d3a216 100644 --- a/src/kernel/init-lite.c +++ b/src/kernel/init-lite.c @@ -480,6 +480,8 @@ int InitGUI (int argc, const char* agr[]) */ strncpy (SHAREDRES_VIDEO_ENGINE, engine, LEN_ENGINE_NAME); strncpy (SHAREDRES_VIDEO_MODE, mode, LEN_VIDEO_MODE); +#if 0 /* deprecated code */ + // these fileds will be initialized by DRM engine. if (GetMgEtcValue (engine, "device", SHAREDRES_VIDEO_DEVICE, LEN_DEVICE_NAME) < 0) *SHAREDRES_VIDEO_DEVICE = 0; @@ -489,6 +491,7 @@ int InitGUI (int argc, const char* agr[]) if (GetMgEtcValue (engine, "exdriver", SHAREDRES_VIDEO_EXDRIVER, LEN_EXDRIVER_NAME) < 0) *SHAREDRES_VIDEO_EXDRIVER = 0; +#endif /* deprecated code */ SHAREDRES_VIDEO_DPI = __gal_screen->dpi; SHAREDRES_VIDEO_HRES = __gal_screen->w;