metalsvm/libkern
Jacek Galowicz 394befa3a8 Color management for procedures using vga_putchar
As seen in some BSD operating systems, you can now push and pop foreground and background colors onto a stack to change the colors you see on the screen whenever kprintf/kputchar is used.

This could become useful if one wants to see kernel space kprintfs in other colors than user space printfs or error messages in red and other debugging purposes.

Beware: This is just a small and dirty hack which protects the colorstack with locks and so on. But on task switching the color will not be switched. That makes different colors for different colors persistent for all the time difficult/impossible. But I considered adding colors to the task structures a bit overdone for a small debugging-help.

[Sorry for those commit-and-pull-back-mails. Forgot that I had this stuff on the master branch while pushing my own branch onto the server.]
2011-05-25 09:26:00 +02:00
..
divdi3.c move some type and macro definitions to quad.h 2011-03-26 13:29:50 +01:00
lshrdi3.c move some type and macro definitions to quad.h 2011-03-26 13:29:50 +01:00
Makefile add standard C function strtoul 2011-04-04 08:51:15 +02:00
moddi3.c move some type and macro definitions to quad.h 2011-03-26 13:29:50 +01:00
printf.c Color management for procedures using vga_putchar 2011-05-25 09:26:00 +02:00
qdivrem.c move some type and macro definitions to quad.h 2011-03-26 13:29:50 +01:00
quad.h move some type and macro definitions to quad.h 2011-03-26 13:29:50 +01:00
sprintf.c - add implementation of ksprintf and ksnprintf 2010-10-26 08:09:43 +00:00
stdio.c redesign of the SCC bootloader and rename kernel file to metalsvm.elf 2011-03-31 12:50:42 -07:00
string.c add fallback code for memcpy 2011-04-21 07:31:44 +02:00
strtol.c move some type and macro definitions to quad.h 2011-03-26 13:29:50 +01:00
strtoul.c add standard C function strtoul 2011-04-04 08:51:15 +02:00
ucmpdi2.c move some type and macro definitions to quad.h 2011-03-26 13:29:50 +01:00
udivdi3.c move some type and macro definitions to quad.h 2011-03-26 13:29:50 +01:00
umoddi3.c move some type and macro definitions to quad.h 2011-03-26 13:29:50 +01:00