more minor fixes

svn path=/trunk/; revision=111
This commit is contained in:
Rex Jolliff 1998-12-05 00:15:50 +00:00
parent b097125d77
commit 4bc8aa3713
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,6 @@
#include <internal/mmhal.h>
#include <ddk/ntddk.h> #include <ddk/ntddk.h>
#include <stdarg.h> #include <stdarg.h>
@ -12,6 +15,9 @@ void debug_printf(char* fmt, ...)
va_end(args); va_end(args);
} }
#define VIDMEM_BASE 0xb8000
static char* vidmem = (char *)(VIDMEM_BASE + IDMAP_BASE);
void main() void main()
{ {
KEY_EVENT_RECORD KeyEvent[2]; KEY_EVENT_RECORD KeyEvent[2];
@ -20,11 +26,13 @@ void main()
HANDLE DefaultHeap; HANDLE DefaultHeap;
PVOID Buffer; PVOID Buffer;
vidmem[(80 * 50 - 1) * 2] = '0';
NtDisplayString("Simple Shell Starting...\n"); NtDisplayString("Simple Shell Starting...\n");
// DefaultHeap = HeapCreate(0,1024*1024,1024*1024); // DefaultHeap = HeapCreate(0,1024*1024,1024*1024);
// Buffer = HeapAlloc(DefaultHeap,0,1024); // Buffer = HeapAlloc(DefaultHeap,0,1024);
vidmem[(80 * 50 - 1) * 2] = '1';
FileHandle = CreateFile("\\Device\\Keyboard", FileHandle = CreateFile("\\Device\\Keyboard",
FILE_GENERIC_READ, FILE_GENERIC_READ,
0, 0,
@ -33,6 +41,7 @@ void main()
0, 0,
NULL); NULL);
vidmem[(80 * 50 - 1) * 2] = '2';
debug_printf("C:\\"); debug_printf("C:\\");
for(;;) for(;;)
{ {

View file

@ -969,7 +969,7 @@ IDECreateDevice(IN PDRIVER_OBJECT DriverObject,
if (Win32Alias != NULL) 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; return RC;