2 Copyright � 1995-2017, The AROS Development Team. All rights reserved.
6 #include <bootconsole.h>
8 #include "kernel_base.h"
9 #include "kernel_intern.h"
10 #include "kernel_debug.h"
12 #if defined(__AROSEXEC_SMP__)
13 volatile ULONG safedebug
= 1;
16 int krnPutC(int c
, struct KernelBase
*KernelBase
)
23 * stegerg: Don't use Disable/Enable, because we want interrupt enabled flag
24 * to stay the same as it was before the Disable() call
29 * If we got 0x03, this means graphics driver wants to take over the screen.
30 * If VESA hack is activated, it will use only upper half of the screen
31 * because y resolution was adjusted.
32 * In our turn, we need to switch over to lower half.
33 * VESA hack is supported only on graphical console of course. And do not
34 * expect it to work with native mode video driver. :)
36 if ((c
== 0x03) && (scr_Type
== SCR_GFX
) && __KernBootPrivate
->debug_framebuffer
)
38 /* Reinitialize boot console with decreased height */
39 scr_FrameBuffer
= __KernBootPrivate
->debug_framebuffer
;
40 fb_Resize(__KernBootPrivate
->debug_y_resolution
);
46 * Interrupt flag is stored in flags - if it was enabled before,
47 * it will be renabled when the flags are restored
49 __restore_flags(flags
);