metalsvm/arch/x86/kernel
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
..
apic.c use memory barriers instead of read memory barriers to determine the current TSC 2011-04-18 15:07:45 +02:00
entry.asm set CR0's MP flag to monitor the coprocessor 2011-04-21 19:46:55 +02:00
gdt.c Encapsulated IDT-/GDT-descriptor configuring code into helper functions. 2011-04-21 07:31:45 +02:00
idt.c Encapsulated IDT-/GDT-descriptor configuring code into helper functions. 2011-04-21 07:31:45 +02:00
irq.c add the support of inter core interrupts 2011-05-17 08:13:20 -07:00
isrs.c add basic support of sbrk and fix bug in saving of the fpu context 2011-04-21 07:32:20 +02:00
kb.c - huge commit 2010-12-10 06:16:58 +00:00
Makefile create a separate directory for SCC specific code 2011-03-24 07:13:55 +01:00
multiboot.c Continued the small documentation journey. 2011-04-04 11:27:49 +02:00
pci.c - remove an awful bug in the calculation of the io address 2010-11-29 02:36:40 +00:00
pcihdr.h Commented another bunch of header files. 2011-04-04 18:12:08 +02:00
processor.c cosmetic changes, minor code optimization 2011-04-18 15:10:24 +02:00
string.asm use .text instead of .code section 2011-03-31 12:38:04 -07:00
timer.c add the support of inter core interrupts 2011-05-17 08:13:20 -07:00
vga.c Color management for procedures using vga_putchar 2011-05-25 09:26:00 +02:00