diff --git a/include/ubixos/bcd.h b/include/ubixos/bcd.h index 8a6fa48..be97ca9 100644 --- a/include/ubixos/bcd.h +++ b/include/ubixos/bcd.h @@ -29,9 +29,14 @@ #ifndef _UBIXOS_BCD_H_ #define _UBIXOS_BCD_H_ + +/* XXX Putting this here for now as I'm not sure where is the best place for them yet. */ +#define toupper(c) ((c) - 0x20 * (((c) >= 'a') && ((c) <= 'z'))) +#define tolower(c) ((c) + 0x20 * (((c) >= 'A') && ((c) <= 'Z'))) + extern const u_char bcd2bin_data[]; extern const u_char bin2bcd_data[]; -extern const char hex2ascii_data[]; +extern char const hex2ascii_data[]; #define bcd2bin(bcd) (bcd2bin_data[bcd]) #define bin2bcd(bin) (bin2bcd_data[bin]) diff --git a/sys/lib/string.c b/sys/lib/string.c index d984a8c..4864390 100644 --- a/sys/lib/string.c +++ b/sys/lib/string.c @@ -26,6 +26,11 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include +#include + +const char hex2ascii_data[] = "0123456789abcdefghijklmnopqrstuvwxyz"; + const u_char bcd2bin_data[] = { 0, 1, @@ -284,4 +289,3 @@ 0x98, 0x99 }; -const char hex2ascii_data[] = "0123456789abcdefghijklmnopqrstuvwxyz"; diff --git a/sys/vmm/vmm_memory.c b/sys/vmm/vmm_memory.c index 9db6706..ee021b5 100644 --- a/sys/vmm/vmm_memory.c +++ b/sys/vmm/vmm_memory.c @@ -92,6 +92,9 @@ systemVitals->freePages = freePages; /* Print Out Amount Of Memory */ + kprintf("T\n"); + kprintf("[%i]\n", 1024); + kprintf("E\n"); kprintf("Real Memory: %iKB\n", numPages * 4); kprintf("Available Memory: %iKB\n", freePages * 4);