Skip to content

Commit 533deac

Browse files
committed
Fix: Build failure after dee59af
1 parent c2c2c57 commit 533deac

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

include/kdebug.h

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@ typedef enum KernelDebugLogType {
2121
*/
2222

2323
#if defined(PORT_E9_ENABLED)
24-
typedef enum DisplayControls {
25-
DISP_GETCOORDS,
26-
DISP_SETCOORDS,
27-
DISP_COORDS_MAX,
28-
DISP_SETATTR,
29-
DISP_GETATTR
30-
} DisplayControls;
31-
3224
void kdebug_log_ndu (KernelDebugLogType type, const char* func, UINT line, char* fmt, ...);
3325

3426
#define INFO(...) kdebug_log_ndu (KDEBUG_LOG_TYPE_INFO, __func__, __LINE__, __VA_ARGS__)
@@ -38,11 +30,6 @@ typedef enum KernelDebugLogType {
3830
#define ERROR(...) kdebug_log_ndu (KDEBUG_LOG_TYPE_ERROR, __func__, __LINE__, __VA_ARGS__)
3931
#define WARN(...) kdebug_log_ndu (KDEBUG_LOG_TYPE_WARN, __func__, __LINE__, __VA_ARGS__)
4032

41-
INT kdisp_ioctl (INT request, ...);
42-
void kdisp_scrollDown();
43-
void kdisp_init();
44-
void kdisp_putc (CHAR c);
45-
4633
#else
4734
#define INFO(...) (void)0
4835
#define FUNC_ENTRY(...) (void)0
@@ -51,6 +38,20 @@ typedef enum KernelDebugLogType {
5138
#endif
5239

5340
#if defined(DEBUG)
41+
#if !defined(GRAPHICS_MODE_ENABLED)
42+
typedef enum DisplayControls {
43+
DISP_GETCOORDS,
44+
DISP_SETCOORDS,
45+
DISP_COORDS_MAX,
46+
DISP_SETATTR,
47+
DISP_GETATTR
48+
} DisplayControls;
49+
50+
INT kdisp_ioctl (INT request, ...);
51+
void kdisp_scrollDown();
52+
void kdisp_init();
53+
void kdisp_putc (CHAR c);
54+
#endif
5455
INT kearly_printf (const CHAR* fmt, ...);
5556
#else
5657
#define kearly_printf(...) (void)0

0 commit comments

Comments
 (0)