diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-07-22 11:28:01 +0400 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-07-22 11:28:01 +0400 |
| commit | 8f248101c05599c97ed546cbdf2e3202facf7629 (patch) | |
| tree | 6bb77ac0a7b1349e3d01ebe69424adb0831c31a4 | |
| parent | bf7548410f2f34007ddfe084ce7f34f4c6017fcc (diff) | |
Externalize memPrint
| -rw-r--r-- | kernel/Helpers/memPrint.cpp | 10 | ||||
| -rw-r--r-- | kernel/Helpers/memPrint.hpp | 39 | ||||
| -rw-r--r-- | kernel/Helpers/memory.hpp | 26 |
3 files changed, 49 insertions, 26 deletions
diff --git a/kernel/Helpers/memPrint.cpp b/kernel/Helpers/memPrint.cpp new file mode 100644 index 0000000..92112e9 --- /dev/null +++ b/kernel/Helpers/memPrint.cpp @@ -0,0 +1,10 @@ +#include "./memPrint.hpp" + + +memPrint::memPrint(){ + +} + +memPrint::~memPrint(){ + +} diff --git a/kernel/Helpers/memPrint.hpp b/kernel/Helpers/memPrint.hpp new file mode 100644 index 0000000..7b67778 --- /dev/null +++ b/kernel/Helpers/memPrint.hpp @@ -0,0 +1,39 @@ +#ifndef __memPrint__ +#define __memPrint__ + +//Define the bios color +enum colorBios{ + + BLACK=0x0, + BLUE=0x1, + GREEN=0x2, + CYAN=0x3, + RED=0x4, + MAGENTA=0x5, + BROWN=0x6, + LIGHTGRAY=0x7, + DARKGRAY=0x8, + LIGHTBLUE=0x9, + LIGHTGREEN=0xA, + LIGHTCYAN=0xB, + LIGHTRED=0xC, + LIGHTMAGENTA=0xD, + YELLOW=0xE, + WHITE=0xF + +}; + +//Type def for biosColor +typedef enum colorBios colorBios; + +class memPrint{ + + private: + + + public: + memPrint(); + ~memPrint(); +}; + +#endif diff --git a/kernel/Helpers/memory.hpp b/kernel/Helpers/memory.hpp index d27ac29..07045c8 100644 --- a/kernel/Helpers/memory.hpp +++ b/kernel/Helpers/memory.hpp @@ -3,32 +3,6 @@ #include "./types.hpp" -//Define the bios color -enum colorBios{ - - BLACK=0x0, - BLUE=0x1, - GREEN=0x2, - CYAN=0x3, - RED=0x4, - MAGENTA=0x5, - BROWN=0x6, - LIGHTGRAY=0x7, - DARKGRAY=0x8, - LIGHTBLUE=0x9, - LIGHTGREEN=0xA, - LIGHTCYAN=0xB, - LIGHTRED=0xC, - LIGHTMAGENTA=0xD, - YELLOW=0xE, - WHITE=0xF - -}; - -//Type def for biosColor -typedef enum colorBios colorBios; - - int memcpy(u32 source, u32 dest, u32 size); |
