Commit graph

43711 commits

Author SHA1 Message Date
Timo Kreuzer
3995cce1ba [USETUP]
The VBR (volume boot sector) contains a structure called BPB (bios parameter block) that describes the disk and the partition. The HiddenSectors member contains the number of the first sector of the partition. This is used by the VBR code to load the secondary sector containing additional boot code that is located at secor 14 relative to the partition start. Previously we were copying the BPB (plus additionally the OemName, which makes no sense) from the old VBR. Now Linux is a bit lame and doesn't put the correct value into the HiddenSectors field. Instead it sets it to the number of sectors per track which seems to be the default value. When now the linux partition manager decides to do a non standard partitioning, aligning the partition to 0x800, then the VBR fails to load it's 2nd sector. Fix this by correcting the value in the BPB with the value from the partition info.

See issue #2733 for more details.

svn path=/trunk/; revision=48706
2010-09-06 01:46:06 +00:00
Michael Martin
74d5088c7d [usb/usbhub]
- Start rewrite of usbhub driver using the old and dead usbhub driver in trunk.
- Implement QueryRootHub for sending USB request to miniport driver.
- Implement new IRP_MN_START_DEVICE.  
Get the roothubs PDO and FDO and forward the start device down to start the PDO.
Get USBDI and HUB interfaces. Set all ports as returned by DCI GetExtendedHubInformation to powered and reset.
- Temporary add some usb specific defines until header is fixed.
- Fix Formatting.



svn path=/trunk/; revision=48705
2010-09-05 19:00:37 +00:00
Michael Martin
639f26f1b5 [usb/usbehci]
- Fix flags settings for PortStatus and PortChange so that the correct flags are set when hub driver sets/requests them.
- Use FastMutex to protect access to async queue and frame list.
- For USB CONFIG DESC, Check the output buffer size before attempting to write all configuration descriptors.
- Fix a bug that caused bmRequestType to be incorret value when requesting configuration and string descriptors.
- Modify some debugging to make it easier to see debug messages from usbhub driver.

svn path=/trunk/; revision=48704
2010-09-05 18:43:17 +00:00
Cameron Gutman
38a87f0176 [USETUP]
- Add the option to write only the VBR so FreeLoader can easily be chain loaded by GRUB or another boot loader
- Dedicated to James Tabor :)

svn path=/trunk/; revision=48703
2010-09-05 17:09:18 +00:00
Amine Khaldi
07d976dff7 [FREELDR]
- Update fathelp.S to reflect Timo's recent changes in trunk.

svn path=/branches/cmake-bringup/; revision=48702
2010-09-05 16:31:06 +00:00
Timo Kreuzer
113c47805c Update the GAS compatible fathelp.S file to reflect the latest changes to the original file (freeldr PE conversion). This version is tested and works.
svn path=/trunk/; revision=48701
2010-09-05 16:03:08 +00:00
Cameron Gutman
f276fcd056 [USETUP]
- Remove code that was corrupting disk data and causing setup to fail in rare cases
- Write the MBR in all cases (Windows setup behavior too)
- We can overwrite GRUB and LILO now but we still can't boot because we have trouble reading the partition table if it was made in Linux

svn path=/trunk/; revision=48700
2010-09-04 20:56:19 +00:00
Amine Khaldi
626eb6f07b [CMAKE]
- Mark nci_output and nci_folders as lists.

svn path=/branches/cmake-bringup/; revision=48699
2010-09-04 16:59:33 +00:00
Amine Khaldi
7dbd1be0fe [CMAKE]
- Mark nci output as generated.

svn path=/branches/cmake-bringup/; revision=48698
2010-09-04 16:12:21 +00:00
Amine Khaldi
1d2ab448d9 [CMAKE]
- Add floppy to build.

svn path=/branches/cmake-bringup/; revision=48697
2010-09-04 14:14:45 +00:00
Amine Khaldi
7ff72cbf64 [CMAKE]
- Add fastfat and isapnp to build.

svn path=/branches/cmake-bringup/; revision=48696
2010-09-04 13:43:01 +00:00
Amine Khaldi
cf6293b311 [CMAKE]
- Add cdrom, class2, disk and ramdisk to build.

svn path=/branches/cmake-bringup/; revision=48695
2010-09-04 13:36:49 +00:00
Amine Khaldi
f136f67feb [CMAKE]
- Add buslogic to build.
- Fix a typo.

svn path=/branches/cmake-bringup/; revision=48694
2010-09-04 13:16:29 +00:00
Amine Khaldi
dc95036f5a [CMAKE]
- Add atapi, blue, cdfs and uniata to build.

svn path=/branches/cmake-bringup/; revision=48693
2010-09-04 12:57:01 +00:00
Sir Richard
edfb344c53 [NTOS]: Remove useless variables in kernel code that were set, but never actually used (dead code, tests, copy/pasters). If a variable was set but not used because of missing/#if'ed out code, a note was added instead.
[NTOS]: In the process, fix bugs in the Event dispatcher code that used Win32 EVENT_TYPE instead of NT KOBJECTS enumeration.
[NTOS]: Fix a bug in ObpInsertHandleCount, where the object access check was being done with the previous mode, instead of honoring the probe mode, which is defined by OBJ_FORCE_ACCESS_CHECK.
[NTOS]: Fix a bug in a section function which was always returning STATUS_SUCCESS, now it returns the result of the previous Status = function assignment. If this isn't desired, then don't check for the Status anymore.
[NTOS]: Note that MDL code does not support SkipBytes argument. If it is used, MDL could be invalid.
[NTOS]: Add checks for VerifierAllocation and set it when needed (WIP).
[NTOS]: Clarify what _WORKING_LINKER_ is, and the legal risks in continuing to use a linker that builds non-Microsoft drivers when used with headers whose EULA specify that they can only be used for Microsoft drivers.

svn path=/trunk/; revision=48692
2010-09-04 08:17:17 +00:00
Amine Khaldi
abf5238858 [CMAKE]
- Add battc, acpica and acpi to build.

svn path=/branches/cmake-bringup/; revision=48691
2010-09-03 14:33:39 +00:00
Amine Khaldi
f61be19dd9 [CMAKE]
- Improve gendib build.
- Add gendib generated source files.
- Add win32k to build. Dedicated to Timo ;)

svn path=/branches/cmake-bringup/; revision=48690
2010-09-03 00:03:00 +00:00
Amine Khaldi
50bf553ad0 [CMAKE]
- Add ftfd driver to build.

svn path=/branches/cmake-bringup/; revision=48689
2010-09-02 22:38:36 +00:00
Amine Khaldi
1c24a9bbdd [FREELDR]
- Use fathelp.S from r43775 (amd64 branch by timo)
[CMAKE]
- Improve hal, ntoskrnl and freeldr/setupldr build.

svn path=/branches/cmake-bringup/; revision=48688
2010-09-02 21:00:02 +00:00
Amine Khaldi
c988b66126 [FREELDR]
- Convert fat12/16 boot sector helper code to gas syntax. Brought to you by the Arty.
[CMAKE]
- Add freeldr and setupldr to build.

svn path=/branches/cmake-bringup/; revision=48687
2010-09-02 17:39:45 +00:00
Cameron Gutman
93ae36ab99 [OSKITTCP]
- Check for a shutdown connection that we missed a few times
- Remove some junk and stop playing with flags behind oskit's back
- Fix an invalid parameter check
- Enable a check to ensure that accept doesn't get called for a socket that isn't listening
- Use the queue manipulation function instead of manually changing the queue
- Signal that we accepted/connected a socket
[IP]
- Set the network mask and destination address in TCPGetInterfaceData

svn path=/trunk/; revision=48686
2010-09-02 04:18:17 +00:00
Aleksey Bragin
33fffd0b38 [PSDK]
- Add BS_TYPEMASK definition.

svn path=/trunk/; revision=48678
2010-09-01 13:40:35 +00:00
Amine Khaldi
b1e8d151a2 [CMAKE]
- Add mini_hal to build.

svn path=/branches/cmake-bringup/; revision=48672
2010-08-31 23:48:26 +00:00
Amine Khaldi
aec35b5416 [CMAKE]
- libcntpr needs buildno.h

svn path=/branches/cmake-bringup/; revision=48671
2010-08-31 21:24:12 +00:00
Amine Khaldi
10cf790c3c [CMAKE]
- Add boot sectors to build.

svn path=/branches/cmake-bringup/; revision=48669
2010-08-31 18:40:19 +00:00
Amine Khaldi
28f74e6701 [CMAKE]
- Add scsiport to build.

svn path=/branches/cmake-bringup/; revision=48668
2010-08-31 17:55:28 +00:00
Amine Khaldi
ea213941ac [CMAKE]
- Add bootvid, kddll, kdcom, nmidebug and null drivers to build.

svn path=/branches/cmake-bringup/; revision=48666
2010-08-31 16:30:02 +00:00
Amine Khaldi
d84e219b0b [CMAKE]
- Add input drivers (i8042prt, kbdclass, mouclass and sermouse) to build.

svn path=/branches/cmake-bringup/; revision=48664
2010-08-31 14:05:07 +00:00
Amine Khaldi
b28db78efe [CMAKE]
- Improve handling buildno.h

svn path=/branches/cmake-bringup/; revision=48663
2010-08-31 13:25:10 +00:00
Amine Khaldi
c961b36495 [CMAKE]
- Add placeholders for the remaining dlls.

svn path=/branches/cmake-bringup/; revision=48662
2010-08-31 11:11:11 +00:00
Amine Khaldi
5712f8489b [CMAKE]
- Add beep driver to build.

svn path=/branches/cmake-bringup/; revision=48661
2010-08-31 10:34:15 +00:00
Amine Khaldi
b41fc0f134 [CMAKE]
- Add ze kirnel to build.

svn path=/branches/cmake-bringup/; revision=48659
2010-08-30 14:31:44 +00:00
Amine Khaldi
def27fd0d4 [CMAKE]
- Improve rossym lib.

svn path=/branches/cmake-bringup/; revision=48658
2010-08-30 14:30:09 +00:00
Amine Khaldi
ef43524fff [CRT]
- Fix __MINGW_MSC_PREREQ logic.

svn path=/trunk/; revision=48657
2010-08-30 13:48:40 +00:00
Amine Khaldi
5ba1569888 [CMAKE]
- Improve pseh.

svn path=/branches/cmake-bringup/; revision=48656
2010-08-30 13:00:41 +00:00
Amine Khaldi
8719ae188a [CMAKE]
- Improve rtl.

svn path=/branches/cmake-bringup/; revision=48655
2010-08-30 12:37:44 +00:00
Michael Martin
9b7e628d96 Patch by Pierre Schweitzer.
[CDFS]
- Several fixes for directory information query.
- Fixed a null access memory under certain circumstances.
- Added support for media ejection.
[FASTFAT]
- Fixed calls to CcMapData(), CcPinRead().
- Fixed an endless loop in FCB management under certain circumstances.
[NTOSKRNL]
- Fixed wrong prototype for IopParseDevice().

svn path=/trunk/; revision=48654
2010-08-30 11:51:17 +00:00
Amine Khaldi
5598df126e [CMAKE]
- Improve ntdll.

svn path=/branches/cmake-bringup/; revision=48652
2010-08-29 21:32:32 +00:00
Sir Richard
c574f50663 [NTOS]: Add an extra layer of protection for freed nonpaged pool: write a 4-byte signature on freed blocks, and assert its valid on checked builds. Use a slightly less egocentric ASCII value than on Windows (name of the developer who wrote the first memory manager).
svn path=/trunk/; revision=48651
2010-08-29 19:32:25 +00:00
Sir Richard
b85ab20f13 [NTOS]: Missed a bunch of codepaths, protected pool "should" work now.
svn path=/trunk/; revision=48650
2010-08-29 19:27:58 +00:00
Sir Richard
cf28a01e5e [NTOS]: Add DRIVER_CAUGHT_MODIFYING_FREED_POOL bugcheck code.
[NTOS]: Add support for protected freed nonpaged pool. This is controlled through MmProtectFreedNonPagedPool, which is initialized based on a registry value (see cmdata.c). This is not "Special Pool", but a useful debugging feature Windows implements that we now have too, since I noticed a lot of mj's work was with freed pool access.
NB. It's 3AM and I have not tested this, it should be off in trunk by default, you'll need to try turning it on and testing it. Hope it helps.
--This line, and those low, will be ignored--

M    ntoskrnl/mm/ARM3/pagfault.c
M    ntoskrnl/mm/ARM3/pool.c
M    include/reactos/mc/bugcodes.mc

svn path=/trunk/; revision=48649
2010-08-29 19:13:08 +00:00
Cameron Gutman
1afef0ace6 [ACPI]
- Read and report ACPI_RESOURCE_TYPE_FIXED_MEMORY32

svn path=/trunk/; revision=48648
2010-08-29 18:40:33 +00:00
Amine Khaldi
252d2d95f5 [CMAKE]
- Improve kernel32.

svn path=/branches/cmake-bringup/; revision=48647
2010-08-29 18:32:17 +00:00
Michael Martin
52929981d9 [cdfs]
- Working with Pierre Schweitzer for yet another NonPaged Pool corruption fix. When copying VolumeLabel the VolumeLabelLength is in Unicode, so theres no need to mulitply it by size of WCHAR. 

svn path=/trunk/; revision=48646
2010-08-29 17:46:18 +00:00
Amine Khaldi
a867182e64 [CMAKE]
- Add hal (yes, hal) to build.

svn path=/branches/cmake-bringup/; revision=48645
2010-08-29 17:30:24 +00:00
Amine Khaldi
1e684c2d24 [CMAKE]
- Add samsrv, sccbase, schannel, sensapi, serialui, shdoclc, shfolder, shlwapi, slbcsp, smdll, sndblst, snmpapi, spoolss, srclient, sxs, t2embed, tapi32, tapiui, traffic, updspapi, url, usp10 and uxtheme to build.
- Add mlang, mpr, and shell32 import libs.
- Fix shdoclc and shlwapi translations (patches will be sent upstream).
- Improve mmebuddy.

svn path=/branches/cmake-bringup/; revision=48644
2010-08-29 14:13:38 +00:00
Amine Khaldi
a999e307d8 [CMAKE]
- Rewrite crt and libcntpr targets, with support for other than i386.
- Bring-in logf.c from trunk.

svn path=/branches/cmake-bringup/; revision=48643
2010-08-29 11:07:31 +00:00
Timo Kreuzer
69814e0c5b [NTOSKRNL]
Modified version of r48640: 
- update the NodeHint to the root node when deleting a node
- remove this code from MmCleanProcessAddressSpace

svn path=/trunk/; revision=48642
2010-08-29 08:35:54 +00:00
Michael Martin
fbf071095a [ntoskrnl]
- Revert 48640, as it was incorrect.

svn path=/trunk/; revision=48641
2010-08-29 07:18:47 +00:00
Michael Martin
690399c881 [ntoskrnl]
- When a node is removed, check the NodeHint of the table to see if it matches the one being removed. If so update the NodeHint to the PreviousNode. FIxes VAD corruption messages.

svn path=/trunk/; revision=48640
2010-08-29 07:00:52 +00:00