Commit graph

29981 commits

Author SHA1 Message Date
ReactOS Portable Systems Group 9901f9409a - Finish implementing very basic system call dispatcher. Our very first system call to NtClose works properly.
- The rest of Phase 0 initialization continues smoothly, we now reach the while(TRUE) loop at the end of KiSystemStartup!
- Phase 0 bring-up is complete: The phase 1 thread should now start (once thread scheduling works).
- Next steps: IRQLs, HAL Initialization (Timers and IRQs) to get the interval clock timer running for quantum end/scheduling/time accounting.
- After that: context switching code to be able to switch to the Phase 1 thread.
- Then: Phase 1 bring-up!


svn path=/trunk/; revision=32671
2008-03-12 22:06:42 +00:00
Daniel Reimer e4a3ca1233 Polish Translation Update by Olaf Siejka.
svn path=/trunk/; revision=32670
2008-03-12 21:32:45 +00:00
Gregor Brunmar 13f9fd3700 Removed false unimplemented output :)
svn path=/trunk/; revision=32669
2008-03-12 19:40:31 +00:00
Gregor Brunmar 8bca78461c * Made IDirect3D9 structure more MS compatible.
* Removed duplicate initing of internal structure
* Started implementing IDirect3D9::CreateDevice() error return values

svn path=/trunk/; revision=32668
2008-03-12 19:29:10 +00:00
Aleksey Bragin bae787dbd9 - Fix build.
svn path=/trunk/; revision=32667
2008-03-12 19:07:32 +00:00
ReactOS Portable Systems Group 465f0c0e28 - We now define a much simpler system call interface -- instead of using interrupt 2E with the system call ID in the ip register, we use the system call ID as the interrupt number! On ARM, all software interrupts have a generic handler, so ANY software interrupt will be a system call, and the interrupt number is the system call ID!
- Removed a bunch more i386-only exports from the ARM kernel.
- Implemented all the READ/WRITE_REGISTER* routines for ARM/PPC.
- Implement half of KiSoftwareInterruptException, which calls KiSoftwareInterruptHandler, which calls KiSystemService. We now reach the first kernel-mode system call! (ZwClose from PspInitPhase0).
- Reformat fastinterlck.c and change the way it's included per-architecture.


svn path=/trunk/; revision=32666
2008-03-12 18:17:55 +00:00
Colin Finck 374a272eac [FORMATTING] Fix indentation
svn path=/trunk/; revision=32665
2008-03-12 13:50:30 +00:00
ReactOS Portable Systems Group 0d376b34fa - Make another kind of page fault also be handleable by our hacked-up handler: paged pool now fully works.
- Current status: we now make it all the way to the first system call at the end of Phase 0!
- We now make the IRQL routines modify the IRQL saved in the KPCR, to make some assertions work.
- Build mem.c and memgen.c from RTL in order to get non-optimized but portable Rtl*Memory routines and Rtl*Swap routines.
- Take the PPC non-optimized but portable Ex*Interlocked* routines and make them available for ARM as well. Play with the code a bit to get other routines in there too.
- Major TODO: Cleanup these routines, re-format them, make them compatible for all architectures, and later on, provided optimized ARM versions.
- Remove _all* _aull* MSVC-i386 helper exports from the kernel, as well as Exfi386* routines -- they're only for x86 kernels.

svn path=/trunk/; revision=32664
2008-03-12 00:13:09 +00:00
Daniel Reimer ec0c36d5e6 Update German language File
svn path=/trunk/; revision=32663
2008-03-11 19:44:22 +00:00
Aleksey Bragin ed5a4088f7 - Update FSRTL_ADVANCED_FCB_HEADER to support newer version headers.
- Split Reserved into two bitfields: Reserved and Version.

svn path=/trunk/; revision=32662
2008-03-11 19:03:29 +00:00
Dmitry Chapyshev 5e375382ea - Fix typo (part 2/2)
svn path=/trunk/; revision=32661
2008-03-11 17:03:20 +00:00
Dmitry Chapyshev b730023197 - Fix typo (part 1/2)
svn path=/trunk/; revision=32660
2008-03-11 16:39:58 +00:00
ReactOS Portable Systems Group a31f9d1367 - Convert all Loader Block structures to virtual addresses (By adding KSEG0_BASE) since the kernel eventually unmaps the page table responsible for the physical->virtual identity mapping, but we'll still need to access the loader block.
- Implement proper trap prolog/epilog code -- currently used and tested in the data abort handler. Currently hacked away some KTRAP_FRAME stuff on ARM.
- The data abort handler has a very rudimentary check to detect page faults and will call MmAccessFaults, this means we now support paged pool!
- We now succesfully go past MmInitSystem and go all the way until ObInitSystem (still in Phase 0).


svn path=/trunk/; revision=32659
2008-03-11 16:13:43 +00:00
Dmitry Chapyshev f5402d88df - Fix build
svn path=/trunk/; revision=32658
2008-03-11 16:13:26 +00:00
Aleksey Bragin be684e0471 - Remove kilobyte of unneeded MS support database text copypaste.
- Rename and add two application compatibility flags to W32THREADINFO structure (one for ancient compat flags, and one for a bit more modern flags).
- Implement GetAppCompatFlags2() too.

svn path=/trunk/; revision=32657
2008-03-11 15:58:31 +00:00
Dmitry Chapyshev e121cc7e3d - Rewrite input.dll
- Delete unused resources
- Update all languages

svn path=/trunk/; revision=32656
2008-03-11 15:52:27 +00:00
ReactOS Portable Systems Group f955e35cab - We missed this one -- fix the x86 build.
svn path=/trunk/; revision=32655
2008-03-11 06:05:57 +00:00
ReactOS Portable Systems Group 3d10a2eabc - Forgot to commit previous HAL changes.
- There is no reason to implement the Interlocked* APIs in assembly in the kernel -- just have them call the intrinsics.
- Also fix the way we were overloading the exported APIs, we now use the intrinsics all the time.
- Convert loader block address to virtual, and parse the addresses inside it and convert them to virtual too, after we don't use them in FreeLDR anymore -- the kernel will delete the p->v identity mapping, and eventually still need to touch the loader block.
- Implement MmGetPhysicalAddress and MiGetUserPageDirectoryCount for ARM.
- We now reach the point where we start initializing the boot drivers' memory information.

svn path=/trunk/; revision=32654
2008-03-11 04:42:54 +00:00
ReactOS Portable Systems Group a6b9a98b82 - Fix incorrect definition of PCR and USERPCR which was making us incorrect memory.
- Fix incorrect definition of ARM_CONTROL_REGISTER, which was stopping us from correctly enabling High Vectors.
- The RtlCaptureStackLimits and RtlWakeChainFrame routines in libsupp.c cannot possibly be portable across all architectures -- separated ARM versions in an arm directory.
- Setup the panic stack for abort/undefined exceptions, and the interrupt stack for FIQs.
- Implement support for exceptions! We can now display the address which caused a data abort, and begin handling exceptions.
- Implement all the HAL Spinlock/IRQL functions except KfRaise/LowerIrql which actually do the work.
- We're booting all the way to setting up the user_shared_data memory area.

svn path=/trunk/; revision=32653
2008-03-11 02:45:13 +00:00
Magnus Olsen cfb18d14ea part 2/2 for implement GetAppCompatFlags
left todo implemented set AppCompatFlags 

svn path=/trunk/; revision=32652
2008-03-11 00:09:23 +00:00
Magnus Olsen 50b6c2d1d0 part 1/2 for implement GetAppCompatFlags
svn path=/trunk/; revision=32651
2008-03-11 00:08:07 +00:00
Magnus Olsen 0b1f2480f3 partly implement gdi32 Escape
implemented command STARTDOC: Escape

 

svn path=/trunk/; revision=32650
2008-03-10 22:12:12 +00:00
Aleksey Bragin be3386232b - Sync STORAGE_PROPERTY_ID enum with WDK.
svn path=/trunk/; revision=32646
2008-03-10 20:26:03 +00:00
Aleksey Bragin c74b0b6ad8 - A better freebsd/macosx fix.
svn path=/trunk/; revision=32645
2008-03-10 20:04:46 +00:00
Aleksey Bragin 3a17306654 - Add sys/types.h and sys/stat.h includes for mkfifo() declaration, for *nix-builds.
svn path=/trunk/; revision=32644
2008-03-10 19:28:33 +00:00
Aleksey Bragin a70da8b4d0 - Fix rgenstat build on FreeBSD and MacOSX
svn path=/trunk/; revision=32643
2008-03-10 19:24:19 +00:00
ReactOS Portable Systems Group 0b44376e27 ARM Port Memory Management Checkpoint:
- Implemented and defined the MMU-OS architecture for the ARM port. The details are too long for a commit message, but we have decided to replicate the x86 NT memory manager layout. We've defined a PTE_BASE at 0xC0000000 just like on x86, and we use a PDE_BASE at 0xC1000000. Unlike the x86, we can't use PDE-PTE self-mapping because ARM has different formats (and sizes!) for PDE vs PTEs! We emulate the behavior however (which adds a small performance hit) and the Mm porting is thus at least 10 times easier.
- Moved serial port to 0xE0000000 for now.
- We now parse the board memory map from u-boot.
- Added memory allocation code to FreeLDR -- we now build a full ARC memory map for the kernel.
- FreeLDR allocates page tables and sets up the initial support for our memory layout (see comments for some lengthier explenations)
- Allocations made by FreeLDR for loading ReactOS are now made from a "shared heap" page that's also marked in the memory map.
- Registry and NLS data are now being put into the loader block.
- We now create a loader entry for the kernel (but not anything else -- we'll have to parse the list properly later).
- Defined correct _HARDWARE_PTE_ARM and _MMPTE_HARDWARE for ARM.
- ARM_COARSE_PAGE_TABLE is now 4KB instead of 1KB, going against the architecture! We do this for proper OS support of the PTE_BASE.
- Fixed build due to KiSystemStartulReal change.
- Fixed a bug on the x86 build when creating memory allocation descriptors. Memory corruption could occur in certain scenarios.
- Implemented significant portions of the ARM memory manager code in the kernel:
  - MmGetPageDirectory.
  - MmDeletePageTable (for the kernel address space only).
  - MmIsPagePresent (for the kernel address space only).
  - MmCreateVirtualMappingForKernel.
  - MmCreateVirtualMapping (calls MmCreateVirtualMappingUnsafe).
  - MmCreateVirtualMappingUnsafe (for the kernel address space only).
  - MmSetPageProtect (unused on ARM).
  - MmCreateHyperspaceMapping.
  - MmDeleteHyperspaceMapping.
  - MmInitGlobalKernelPageDirectory.
  - MmInitPageDirectoryMap.
- With the above, this means we now go well inside MmInit1: the PFN database is setup and works, memory areas are functional, and non-paged pool is fully working.
- We currently hit a data abort during paged pool setup -- this is to be expected, since we don't have any exception handlers yet. These are coming up next -- we have to start handling crashes (and page faults).


svn path=/trunk/; revision=32640
2008-03-10 17:27:14 +00:00
James Tabor 6f83c4fcb6 - Cleanup GreatLordisms and half implement GdiRealizationInfo.
svn path=/trunk/; revision=32637
2008-03-10 04:02:49 +00:00
Magnus Olsen fc93cf79dd partly implement gdi32 Escape
implemented command ENDDOC: Escape

 

svn path=/trunk/; revision=32636
2008-03-10 00:27:25 +00:00
Magnus Olsen b6b6d6b267 partly implement gdi32 Escape need it for getting opengl icd driver working, if they are using ms icd ddk
implemented command DRAFTMODE, FLUSHOUTPUT, SETCOLORTABLE for they are not longer supported in windows XP/2003
implemented command SETABORTPROC it is still stub in gdi32/misc/stubs.c

 

svn path=/trunk/; revision=32635
2008-03-09 23:32:52 +00:00
Magnus Olsen b9cb142148 partly implement gdi32 Escape
implemented command ABORTDOC Escape

 

svn path=/trunk/; revision=32634
2008-03-09 22:58:13 +00:00
Franz Lehner 15c1c603c3 Revert Change in readme.txt -- HTTP DAV access working
svn path=/trunk/; revision=32633
2008-03-09 21:56:42 +00:00
Franz Lehner 179fe706d2 SVN TEST
svn path=/trunk/; revision=32632
2008-03-09 21:48:27 +00:00
Magnus Olsen ba482d4a66 partly implement gdi32 Escape
implemented command GETSCALINGFACTOR Escape
change from if to switch statment for it is faster and cleaner
 

svn path=/trunk/; revision=32631
2008-03-09 21:36:09 +00:00
Aleksey Bragin 1a8cf7342c - Move MiGetPfnEntry into arch-independent mm.h header, along with a few defines, structures, and function prototypes which are going to be used with the new pool implementation in future.
- Add two new fields into PHYSICAL_PAGE structure, they will be used (in the future new pool implementation) to find end/start of a non-paged pool allocation without storing the actual pointers (based on NTs own PFN entry optimization for this) - thanks to Alex for providing this great idea!

svn path=/trunk/; revision=32630
2008-03-09 21:15:12 +00:00
Aleksey Bragin a5ffbcd185 - Move some PTE/PDE macros from i386/page.c into arch-specific mm.h. Also change some macros operation from integer division to bit shifting.
- Remove unused/#if0-ed stuff from mm.h.

svn path=/trunk/; revision=32629
2008-03-09 20:30:28 +00:00
Magnus Olsen 746ac9c644 partly implement gdi32 Escape
implemented command GETCOLORTABLE and GETEXTENDEDTEXTMETRICS in Escape
MS have releae docs over this api in msdn, u can also found docs in nt4 ddk and win98 ddk how this api works. 
and thanks to Filip and Blight that have explain how this api works time to time, in gdi32 


svn path=/trunk/; revision=32628
2008-03-09 19:04:26 +00:00
Johannes Anderwald 06471d3eb5 - fix enumeration of available time zones
svn path=/trunk/; revision=32626
2008-03-09 15:34:13 +00:00
Colin Finck c1c402a4e6 Add missing cast
svn path=/trunk/; revision=32625
2008-03-09 14:28:23 +00:00
Aleksey Bragin 379a429aa9 - Remove autoupdated "$Id:" lines from the kernel source code.
svn path=/trunk/; revision=32623
2008-03-09 14:11:42 +00:00
Gregor Brunmar 2df3af106c Second iteration of Direct3DCreate9()
svn path=/trunk/; revision=32622
2008-03-09 14:11:32 +00:00
Pierre Schweitzer 7d27fdf54b - Reworked NtfsAllocateIrpContext to avoid working with null IRP....
- Rewritten NtfsFsdDirectoryControl (using IrpContext, etc)

svn path=/trunk/; revision=32621
2008-03-09 13:58:25 +00:00
Colin Finck 8083445324 Forgot to change this one as well
svn path=/trunk/; revision=32620
2008-03-09 12:01:59 +00:00
Colin Finck 6b6e759d1c - It is enough to just add a "const" to fix the "deprecated conversion from string constant to 'char*'" warning.
Remove the TempName variable from the previous cabman commit and pass the temp file directly again.
- Add the same "const"'s to sysreg, so that it compiles with gcc >= 4.2 as well

svn path=/trunk/; revision=32619
2008-03-09 11:53:14 +00:00
Colin Finck 54ab4d0d04 Add an arHostRule2 to build host .a files
Fixes building on 64-bit hosts

svn path=/trunk/; revision=32618
2008-03-09 10:59:00 +00:00
Christoph von Wittich 204f88a1f3 disable sysreg - it isn't working anyways
svn path=/trunk/; revision=32617
2008-03-09 10:43:00 +00:00
Christoph von Wittich 1b27484fea fix cabman build with gcc >= 4.2
svn path=/trunk/; revision=32616
2008-03-09 10:41:55 +00:00
Pierre Schweitzer bec091e658 - Updated NTFS header with the "new" FSF address
- Removed useless field $id in ntfs.rc

svn path=/trunk/; revision=32615
2008-03-08 21:45:51 +00:00
Pierre Schweitzer 246b2527c7 Updated French translation for vgafontedit
svn path=/trunk/; revision=32614
2008-03-08 18:30:37 +00:00
Aleksey Bragin ac644e6d90 - Leftovers.
svn path=/trunk/; revision=32613
2008-03-08 17:23:03 +00:00