Commit graph

23025 commits

Author SHA1 Message Date
Magnus Olsen 708c9d5c71 adding one new ddk header, the info are base/got from windows xp ddk kit version 3790.1830
svn path=/trunk/; revision=24814
2006-11-23 20:09:07 +00:00
Magnus Olsen 2700e7a12c adding two new ddk header, the info are base/got from windows xp ddk kit version 3790.1830
svn path=/trunk/; revision=24813
2006-11-23 20:06:14 +00:00
Magnus Olsen 2d36c9b726 update : ddk header, the info are base/got from windows xp ddk kit version 3790.1830
svn path=/trunk/; revision=24812
2006-11-23 19:48:12 +00:00
Magnus Olsen 3ffeae3d50 update : ddk header, the info are base/got from windows xp ddk kit version 3790.1830
svn path=/trunk/; revision=24811
2006-11-23 18:49:17 +00:00
Magnus Olsen 5995f74c17 adding three new ddk header, the info are base/got from windows xp ddk kit version 3790.1830
svn path=/trunk/; revision=24810
2006-11-23 18:41:41 +00:00
Magnus Olsen cc4a3eac21 1. adding two new ddk header, the info are base/got from windows xp ddk kit version 3790.1830
2. change bit of layout in usbkern

svn path=/trunk/; revision=24809
2006-11-23 18:38:19 +00:00
Magnus Olsen dfeb2d6b14 adding two new ddk header, the info are base/got from windows xp ddk kit version 3790.1830
svn path=/trunk/; revision=24808
2006-11-23 18:35:38 +00:00
Aleksey Bragin 46e065bf4e Partial shell32 wine-sync
svn path=/trunk/; revision=24807
2006-11-23 16:57:58 +00:00
Aleksey Bragin b1d908abe5 comctl32 auto-winesync
svn path=/trunk/; revision=24806
2006-11-23 15:49:53 +00:00
Christoph von Wittich 2de78f3052 -always keep the correct file extension (fixes building of control panel applets)
-escape defines (fixes loading of some project files)

svn path=/trunk/; revision=24805
2006-11-23 11:38:49 +00:00
Christoph von Wittich 6fd65c6155 better subsystem handling
svn path=/trunk/; revision=24804
2006-11-22 21:37:56 +00:00
Magnus Olsen 7635779c5e written header usbkern.h
svn path=/trunk/; revision=24803
2006-11-22 20:38:40 +00:00
Christoph von Wittich 4959cbb837 use the correct compiler for .c/.cpp files
svn path=/trunk/; revision=24802
2006-11-22 20:35:11 +00:00
Christoph von Wittich d26cca517a fixed a function declaration
some minor formatting changes

svn path=/trunk/; revision=24801
2006-11-22 20:19:12 +00:00
Christoph von Wittich f0e69a1925 -fix line endings
-set eol-style:native

svn path=/trunk/; revision=24800
2006-11-22 15:23:17 +00:00
Christoph von Wittich 754c08251f Code::Blocks backend
svn path=/trunk/; revision=24799
2006-11-22 15:18:51 +00:00
Aleksey Bragin 48953bfa71 The code expects synchronous behaviour here, so until a better solution exists, IoSynchronousInvalidateDeviceRelations() is going to be used.
This fixes the "Loading ndis.sys" problems.

Thanks to Dmitry Gorbachev, confirmed by Herve Poussineau.
See issue #1875 for more details.

svn path=/trunk/; revision=24798
2006-11-22 10:15:51 +00:00
Alex Ionescu 0b5c955898 - Update kernel fun.
svn path=/trunk/; revision=24797
2006-11-22 07:45:30 +00:00
Alex Ionescu 9bd055bf1e - Fix boot CD with 10 lines of code. That's right Fireball, go shame yourself!
svn path=/trunk/; revision=24796
2006-11-22 07:01:32 +00:00
Aleksey Bragin 732eec1ad8 Fix warning when compiled with DBG=0
svn path=/trunk/; revision=24795
2006-11-20 13:07:57 +00:00
Ged Murphy 0ecf7d35d0 tab -> space
svn path=/trunk/; revision=24794
2006-11-19 22:36:37 +00:00
Magnus Olsen 1cae12f9ba fixing a small bug, do not known why, with this change I getting 19 of 20 booting working for me. I have not update to lates svn yet.
old change I did get 11 of 12 booting working

svn path=/trunk/; revision=24793
2006-11-19 21:17:52 +00:00
Eric Kohl 3f3741f6eb Remove the obsolete STDCALL decorations from .def files.
svn path=/trunk/; revision=24792
2006-11-19 21:17:42 +00:00
Thomas Bluemel eb04d1528e - Correct definition of DbgPrompt
- Add definitions for the CSTRING structure

svn path=/trunk/; revision=24791
2006-11-19 21:14:49 +00:00
Eric Kohl 8a2cb65283 Use '-enable-stdcall-fixup' linker option for all mingw builds.
svn path=/trunk/; revision=24790
2006-11-19 21:10:56 +00:00
Eric Kohl b49d1db6bf - Remove some global variables.
- Clean up the source code.
- Display the names of the screen savers.
- Sort the screen saver list by the screen saver names.
- Disable setting controls when 'None' screen saver is selected.

svn path=/trunk/; revision=24789
2006-11-19 21:06:30 +00:00
Magnus Olsen a919bba10c adding a wcsstrlen to make msg "Unable to start , error" when no screensaver have been set.
I hope it is all check we need. hpousin if u dislike this check u are wellcome to remove it. 
 

svn path=/trunk/; revision=24788
2006-11-19 20:35:11 +00:00
Aleksey Bragin 59f8fd9675 Add PsInitialSystemProcess declaration into winddk.h (fixes win32k compilation)
svn path=/trunk/; revision=24787
2006-11-19 20:24:46 +00:00
Magnus Olsen 07f3fc4c5d remove the start of reactos vbe directdraw support until it is ready. allot problem with current code. so I discde to remove it from reactos, untill it is stable.
svn path=/trunk/; revision=24786
2006-11-19 20:24:15 +00:00
Aleksey Bragin 0cd52c45f5 Add a typecast to remove a warning
svn path=/trunk/; revision=24785
2006-11-19 20:06:44 +00:00
Ged Murphy fc73d244e4 - merge the latest code from my minibranch:
- use a static image to refer to when choosing your image brightness so returning to normal (100) displays the original colours
- allow  individual colours (RGB) to be adjusted as well as adjusting them all simultaneously
- apply the chosen brightness from the dialog to the main image
- implement greyscale, so an image can be displayed in black and white
- implement inverting of colours so an image can be displayed as a negative.



svn path=/trunk/; revision=24784
2006-11-19 19:49:45 +00:00
Johannes Anderwald 54b8308c2b - fix prototype
svn path=/trunk/; revision=24783
2006-11-19 19:43:54 +00:00
Magnus Olsen 67e5e2ef0a the new desgin of ddraw are in place some files need be rename.
1. this version does not working and contain allot of bugs
2. HAL are not setup right yet
3. HEL are not setup right yet
4. crashing VS when u try debug it from vs if it compile with gcc. 
5. implement HEL in user mode. 
6. remove some code that was working for it is not longer compatible with new desgin

svn path=/trunk/; revision=24782
2006-11-19 19:13:35 +00:00
Johannes Anderwald d926e80e5c fix typo
svn path=/trunk/; revision=24781
2006-11-19 19:08:42 +00:00
Alex Ionescu 62f904960f - Change kdcom.sys to kdcom.dll.
- Remove all kdcom exports and files from HAL and link with kdcom.dll instead.
- Add support in freeldr for loading kdcom.dll (and theoretically any other import, such as the Code Integrity DLL for kernel-mode signing, but for now I've only tested this one).
- Refactor some of the HAL loading code to make it generic for any image.
- Load HAL manually when loading kernel, before processing imports, to make sure that HAL is index 1 in the loader modules and loads before KDCOM.
- Fix some build problems.

svn path=/trunk/; revision=24780
2006-11-19 19:00:03 +00:00
Alex Ionescu 4c45bdc2ea - Fix last-minute compiler bug.
svn path=/trunk/; revision=24779
2006-11-19 18:12:27 +00:00
Alex Ionescu 312f07d0e5 - Major changes to HAL/kernel loading and freeldr hacks:
- Add PE routines for traversing the import table and fixing up the imports.
  - Add routine for getting the LOADER_MODULE for a freeldr module by name.
  - Add the ability to load a not-yet-loaded-driver that's in an import entry (ie: dependencies). Only used for HAL now.
  - Map HAL in the same was as the kernel, instead of relocating it as a hack from within the kernel.
  - Refactor some routines to better share code. Don't read freed memory anymore.
  - Use LdrRelocateImageWithBias instead of quintuplicating relocation code.
  - Parse kernel and HAL imports while PE-loading from within freeldr.
  - Remove dozens of freeldr.c hacks from the kernel. Remove slow code which was making two copies of the parameter block and wasting over 30KB in static strings that were immediately copied to other strings...
  - Don't use HalModuleObject and NtoskrnlModuleObject anymore. Remove LdrSafePEProcessModule and other similar boot-time hacks. Reimplement MmGetSystemRoutineAddress.
- NDK/DDK fixes.
- Add KDCOM to bootcd/installation.

svn path=/trunk/; revision=24778
2006-11-19 17:53:31 +00:00
Aleksey Bragin c157acf875 - Add a null-check to the IopLoadServiceModule.
- Add a DPRINT1 saying about the possible memory-overwrite bug. This is a hack to get a bootable tree, but still have a note when The Bug happens (look for 'weird' in the debug log).

svn path=/trunk/; revision=24777
2006-11-19 17:22:18 +00:00
Magnus Olsen a24ea27b47 - Change movw $0x0000,%ax to xorw %ax,%ax (because of probable bug in binutils, which compiles the first instruction into something weird)
- Add segment registers save+restore in Int386() in FreeLdr (thanks to tamlin too)

svn path=/trunk/; revision=24776
2006-11-19 17:01:23 +00:00
Alex Ionescu e59260f8cb - Add kdcom driver. It contains the exact same functions as in HAL/kdbg.c (not yet used).
- Fix halxbox compile.

svn path=/trunk/; revision=24775
2006-11-17 06:14:31 +00:00
Alex Ionescu 1a3b63b4c4 - Fix some more MSVC problems.
- Get rid of HAL's own intrisics and use intrin_i.h and/or MSVC intrinsics from intrin.h
- If anyone knows how to make a .DEF file that is not only understood by both compilers, but also creates a proper import library, please let me know.

svn path=/trunk/; revision=24774
2006-11-17 04:18:41 +00:00
Alex Ionescu 5ec8f2dc40 - MSVC VCPROJ Maker:
* Don't insert NDEBUG as a define, files define this manually already.
  * Don't add _CRT flags, since the RTM WDK defines them properly.
  * Force warning.h to be included just like the WDK does.
  * Disable WPO and LTCG for now.
  * Disable 64-bit warnings for now.
  * Fix assembly custom steps. NASMW for .asm, and GAS for .S.
- Please remember that you NEED the WDK 6000 RTM installed to use MSVC for building ReactOS. Don't change global build settings just because you were too lazy to download it and think that because your Win32 app doesn't need it, it's ok to break other people's native/system/kernel/hal builds. Change it locally if you're lazy, but don't revert these changes again.

svn path=/trunk/; revision=24773
2006-11-17 02:44:37 +00:00
Hervé Poussineau deefef4098 Fix HAL compilation
svn path=/trunk/; revision=24772
2006-11-16 20:52:13 +00:00
Ged Murphy 265fc33b63 - Add test code for adjusting the brightness of an image. It's a bit of a hack at the moment, but adjusting the trackbar in the brightness dialog will alter the brightness of the small image.
- save pointer to the bitmap header and bitmap bits in the image struct.

svn path=/trunk/; revision=24771
2006-11-16 18:49:58 +00:00
Alex Ionescu 596c3bee62 - Reorganize HAL exports and export KeTRyToAcquireQueuedSpinlock and KeTryToAcquireQueuedSpinLockRaisetoSynch.
- Add stub for HalSetTimeIncrement.
- Cleanup CMOS-related routines (Get/Set environment value and get/set RTC). Fixup some prototypes as well. Inline HalpReadCmos/HalpWriteCmos instead of having a separate function.
- Fixup wrong protypes for various Queued Spinlock functions.
- Use __rdtsc intrinsic instead of Ke386RdTsc.
- Other MSVC compilation fixes.

svn path=/trunk/; revision=24770
2006-11-16 17:30:52 +00:00
Aleksey Bragin 4a33b4c040 Use Uint32x32To64() function instead of ULONG * ULONG. Fixes partition length truncation.
See issue #1871 for more details.

svn path=/trunk/; revision=24769
2006-11-16 17:26:31 +00:00
Magnus Olsen cb8322a4e3 remove two compiling warnings thx frik85 to notice it.
svn path=/trunk/; revision=24768
2006-11-16 15:56:10 +00:00
Alex Ionescu 0cb9e0fd78 - Purposefully add 6 debug prints to RtlpGetRegistryHandle, which, while ndis.sys is initializing, should BSOD the system. I have seen this "RtlpGetRegistryHandle" BSOD randomly during boot (But always with the same stack trace), and a local HAL patch managed to cause it 100% of the time. I know that the problem had nothing to do with the HAL or registry paths, because it came up before too when I added debug prints to fstub. These 6 prints 100% reproduce the problem on my machine with GCC 3.4.5. It is my hope it will do the same for everyone. This is a nasty bug, either stack related or some critical structure is being damaged. I am breaking trunk because it's been here for a long time, but now I found a way to repro it so that we can work together to try finding it. In a way, trunk was always broken, but this patch should force a freeze. Please help.
svn path=/trunk/; revision=24767
2006-11-16 07:09:37 +00:00
Alex Ionescu 8c3485a307 - Remove internal HAL function from ntifs
- Make sure obfuncs.h includes obtypes.h if it's ever included separately.
- Add ARC_STATUS and ARC Error Codes.

svn path=/trunk/; revision=24766
2006-11-16 06:55:59 +00:00
Thomas Bluemel a1e3bd38a5 Fix some compilation errors
svn path=/trunk/; revision=24765
2006-11-15 20:24:55 +00:00