From b161ff0650f368ae2296a90937c2354b66f40a8a Mon Sep 17 00:00:00 2001 From: David Welch Date: Mon, 21 Dec 1998 15:48:21 +0000 Subject: [PATCH] Fixed bug svn path=/trunk/; revision=131 --- reactos/README | 83 ++++++++-------------------- reactos/ntoskrnl/cc/view.c | 89 +++++++++++++++++++++++++++++++ reactos/ntoskrnl/hal/x86/printk.c | 2 +- reactos/ntoskrnl/ke/main.c | 2 +- 4 files changed, 112 insertions(+), 64 deletions(-) create mode 100644 reactos/ntoskrnl/cc/view.c diff --git a/reactos/README b/reactos/README index 1df8492d051..9accce17b5d 100644 --- a/reactos/README +++ b/reactos/README @@ -1,62 +1,21 @@ -Last updated 30/09/98 - --- Compiling - -Type 'make' to build the kernel on linux using a djgpp cross compiler, or -'make -fmakefile.dos' to build the kernel from dos using djgpp. No other -configuration are supported at the moment, sorry. - --- Running - -To run the kernel start from a clean dos system (no emm386 or windows) and -run 'boot.bat'. The kernel should boot, print diagnostic messages and begin -executing a simple user-mode shell. By default the kernel boots with a -minimum set of drivers but additional ones can be specified as the arguments -to 'boot.bat'. - --- Problems - -This is strictly alpha quality software so expect plenty of those. If you -are submitting a bug report, please see the section below. If you have a fix -for the problem, even better, please send all patches, fixes, enhancements etc -to me (David Welch), our coordinator Dennis Winkley or the kernel mailing -list. (See contact addresses below) - --- Bug Reports - -Thank you for taking the time to do this, we can only fix the bugs we know -about, however please include as much information as possible. Say what you -were trying to do at the time, what messages (if any) were displayed. If the -kernel crashed, it should print a message like this - - Exception s(r) - CS:EIP p(q) - DS xxxxx ES xxxx FS xxxx - ... - Frames: xxxxx xxxxx xxxxx - -Please include the exception type and error code (s and r). The eip -address (q) is specific to your kernel, to be of use in fixing the problem -it needs to be translated to a function name. Do this by running - - nm --numeric-sort kimage > kernel.sym - -kernel.sym should include a list of functions and their address, look for the -last function with an address less than the eip value. The functions should -sorted in ascending order by address. - -If you suspect the problem is hardware related also include details of what -hardware devices you have installed. - --- Contact addresses - -Overall coordinator, Jason Filby (jasonfilby@yahoo.com) -Kernel coordinator, Dennis Winkley (dwinkley@mail.whitworth.edu) -Me, David Welch (welch@mcmail.com) - -Specific components will probably have contact details for the authors in -the source file, a partial list of those working on the kernel can be found -on the kernel website. - --- Additional documentation - +DIRECTORIES + +system : compiled versions of the various system components and + libraries +ntoskrnl : microkernel source +ntoskrnl/hal : hardware abstraction layer source +ntoskrnl/mm : memory managment subsystem source +ntoskrnl/io : IO manager subsystem source +include : win32 headers +include/internal : kernel private header files +include/ntdll : system library private header files +include/kernel32 : system library private header files +include/user32 : user interface private header files +include/gdi32 : graphics interface private header files +include/ddk : header files for modules +lib/ntdll : NT dll source +lib/kernel32 : kernel32 source +doc : documentation +loaders/dos : DOS based loader +loaders/boot : boot loader +services : various services (device drivers, filesystems etc) diff --git a/reactos/ntoskrnl/cc/view.c b/reactos/ntoskrnl/cc/view.c new file mode 100644 index 00000000000..4cc10a9a82e --- /dev/null +++ b/reactos/ntoskrnl/cc/view.c @@ -0,0 +1,89 @@ +/* + * COPYRIGHT: See COPYING in the top level directory + * PROJECT: ReactOS kernel + * FILE: ntoskrnl/cc/view.c + * PURPOSE: Cache manager + * PROGRAMMER: David Welch (welch@mcmail.com) + * UPDATE HISTORY: + * Created 22/05/98 + */ + +/* INCLUDES *****************************************************************/ + +#include +#include + +#define NDEBUG +#include + +/* TYPES *********************************************************************/ + +typedef struct _CACHE_SEGMENT +{ + ULONG Type; + ULONG Size; + LIST_ENTRY ListEntry; + PVOID BaseAddress; + ULONG Length; + ULONG State; + MEMORY_AREA* MemoryArea; + ULONG FileOffset; + ULONG InternalOffset; +} CACHE_SEGMENT, *PCACHE_SEGMENT; + +typedef struct _CC1_CCB +{ + ULONG Type; + ULONG Size; + LIST_ENTRY CacheSegmentListHead; + LIST_ENTRY ListEntry; +} CC1_CCB, PCC1_CCB; + +/* FUNCTIONS *****************************************************************/ + +PVOID Cc1FlushView(PFILE_OBJECT FileObject, + ULONG FileOffset, + ULONG Length) +{ +} + +PVOID Cc1PurgeView(PFILE_OBJECT FileObject, + ULONG FileOffset, + ULONG Length) +{ +} + +VOID Cc1ViewIsUpdated(PFILE_OBJECT FileObject, + ULONG FileOffset) +{ +} + +typedef + +BOOLEAN Cc1RequestView(PFILE_OBJECT FileObject, + ULONG FileOffset, + ULONG Length, + BOOLEAN Wait, + BOOLEAN AcquireForWrite) +/* + * FUNCTION: Request a view for caching data + * ARGUMENTS: + * FileObject = File to have information cached in the view + * FileOffset = Offset within the file of the cached information + * Length = Length of the information to be cached + * Wait = If the view is being created then wait for the creater + * to make the view valid + * AcquireForWrite = True if the view is being acquired for writing + * Buffer = Pointer to a variable to hold the base address of the view + * RETURNS: True if the view contains valid data, + * False otherwise + */ +{ +} + +BOOLEAN Cc1InitializeFileCache(PFILE_OBJECT FileObject) +/* + * FUNCTION: Initialize caching for a file + */ +{ +} diff --git a/reactos/ntoskrnl/hal/x86/printk.c b/reactos/ntoskrnl/hal/x86/printk.c index 8f791993da8..9142f8d7062 100644 --- a/reactos/ntoskrnl/hal/x86/printk.c +++ b/reactos/ntoskrnl/hal/x86/printk.c @@ -16,7 +16,7 @@ #include #include -#define BOCHS_DEBUGGING 1 +//#define BOCHS_DEBUGGING 1 //#define SERIAL_DEBUGGING #define SERIAL_PORT 0x03f8 #define SERIAL_BAUD_RATE 19200 diff --git a/reactos/ntoskrnl/ke/main.c b/reactos/ntoskrnl/ke/main.c index f470c28af97..77c6d059a55 100644 --- a/reactos/ntoskrnl/ke/main.c +++ b/reactos/ntoskrnl/ke/main.c @@ -127,7 +127,7 @@ asmlinkage void _main(boot_param* _bp) /* * Initalize the console (before printing anything) */ - HalInitConsole(&_bp); + HalInitConsole(&bp); DbgPrint("Starting ReactOS "KERNEL_VERSION"\n"); -- 2.17.1