[LinksOS CVS Commit]kernel/hal/prototypes kio.h,NONE,1.1 hal.h,1.1,1.2
Status: Inactive
Brought to you by:
terencevs
|
From: <ke...@to...> - 2003-01-13 04:47:17
|
Update of /cvsroot/linksos/kernel/hal/prototypes In directory router-internal.tossell.net:/tmp/cvs-serv10427/hal/prototypes Modified Files: hal.h Added Files: kio.h Log Message: Title: Kernel IO Changes: Replaced old kprintf() global with consolestream hal::kio::console. Effects: hal::kio::console << "Hello World!\n"; We can, like, call an object dude. a=kennyt b=19 --- NEW FILE: kio.h --- #ifndef _KIO_H #define _KIO_H #include "types.h" class consolestream { /* kernel-mode console stream */ public: void operator<< (char*); }; namespace hal { namespace kio { /* Basic Kernel IO */ // void printf(char*, ...); static consolestream console; } /* kio */ } #endif /* ! _KIO_H */ Index: hal.h =================================================================== RCS file: /cvsroot/linksos/kernel/hal/prototypes/hal.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** hal.h 13 Jan 2003 02:35:12 -0000 1.1 --- hal.h 13 Jan 2003 04:47:09 -0000 1.2 *************** *** 4,8 **** namespace hal { /* Hardware Abstraction Layer Root */ ! namespace raw { /* Raw Port IO */ --- 4,8 ---- namespace hal { /* Hardware Abstraction Layer Root */ ! namespace raw { /* Raw Port IO */ *************** *** 17,28 **** /* Output a byte to a port */ asm volatile ("outb %%al,%%dx": :"d" (port), "a" (value)); ! } } /* raw */ ! ! namespace kio { ! /* Basic Kernel IO */ ! void printf(char*, ...); ! } /* kio */ ! } /* hal */ --- 17,23 ---- /* Output a byte to a port */ asm volatile ("outb %%al,%%dx": :"d" (port), "a" (value)); ! } } /* raw */ ! } /* hal */ |