more minor fixes
authorRex Jolliff <rex@lvcablemodem.com>
Sat, 5 Dec 1998 00:15:50 +0000 (00:15 +0000)
committerRex Jolliff <rex@lvcablemodem.com>
Sat, 5 Dec 1998 00:15:50 +0000 (00:15 +0000)
svn path=/trunk/; revision=111

reactos/apps/utils/shell/shell.c
reactos/drivers/dd/ide/ide.c

index 1210c9a..095c3f5 100644 (file)
@@ -1,3 +1,6 @@
+
+#include <internal/mmhal.h>
+
 #include <ddk/ntddk.h>
 #include <stdarg.h>
 
@@ -12,6 +15,9 @@ void debug_printf(char* fmt, ...)
    va_end(args);
 }
 
+#define VIDMEM_BASE 0xb8000
+static char* vidmem = (char *)(VIDMEM_BASE + IDMAP_BASE);
+
 void main()
 {
    KEY_EVENT_RECORD KeyEvent[2];
@@ -19,12 +25,14 @@ void main()
    DWORD Result;
    HANDLE DefaultHeap;
    PVOID Buffer;
-     
+
+   vidmem[(80 * 50 - 1) * 2] = '0';    
    NtDisplayString("Simple Shell Starting...\n");
    
 //   DefaultHeap = HeapCreate(0,1024*1024,1024*1024);
 //   Buffer = HeapAlloc(DefaultHeap,0,1024);
    
+   vidmem[(80 * 50 - 1) * 2] = '1';
    FileHandle = CreateFile("\\Device\\Keyboard",
                           FILE_GENERIC_READ,
                           0,
@@ -33,6 +41,7 @@ void main()
                           0,
                           NULL);
    
+   vidmem[(80 * 50 - 1) * 2] = '2';
    debug_printf("C:\\");
    for(;;)
      {
index ec8dfe1..2a12d68 100644 (file)
@@ -969,7 +969,7 @@ IDECreateDevice(IN PDRIVER_OBJECT DriverObject,
 
   if (Win32Alias != NULL)
     {
-      DbgPrint("%s is %s %dMB\n", DeviceName, Win32Alias, (Size + 512) / 1024);
+      DbgPrint("%s is %s %dMB\n", DeviceName, Win32Alias, Size / 2048);
     }
 
   return  RC;