Commit graph

4443 commits

Author SHA1 Message Date
Casper Hornstrup 37f29ead4b 2003-04-28 Casper S. Hornstrup <chorns@users.sourceforge.net>
* lib/fslib/vfatlib/vfatlib.h: New file.
	* subsys/system/usetup/format.c: Ditto.
	* subsys/system/usetup/format.h: Ditto.
	* lib/fslib/vfatlib/vfatlib.c (GetShiftCount): Define.
	(VfatWriteBootSector, VfatWriteFsInfo, VfatWriteFAT,
	VfatWriteRootDirectory): New function.
	(VfatFormat): Implement.
	* subsys/system/usetup/bootsup.c: (InstallFat32BootCodeToFile): Use
	0x0000 as marker to disable backup boot sector.
	(InstallFat32BootCodeToDisk): Add lower 8-bit to BackupBootSector.
	Also treat 0x0000 as no backup boot sector is available.
	* subsys/system/usetup/makefile (TARGET_SDKLIBS): Define.
	(TARGET_OBJECTS): Add format.o.
	* subsys/system/usetup/partlist.c (AddPartitionList): Initialize
	PartNumber field.
	(GetSelectedPartition): Set PartEntryNumber correctly.
	(CreateSelectedPartition): Write partition information to disk.
	(DeleteSelectedPartition): New function.
	* subsys/system/usetup/partlist.h (PARTDATA): Add field CreatePartition.
	(DeleteSelectedPartition): Prototype.
	* subsys/system/usetup/usetup.c (ConfirmDeletePartition): New function.
	(SelectPartitionPage): Support deletion of partition.
	(FormatPartitionPage): Support formatting of partition.

svn path=/trunk/; revision=4612
2003-04-28 19:44:13 +00:00
Aleksey Bragin 55300ebbf2 Added DbgPrint-notification for stubbed function KeSetAffinityThread()
svn path=/trunk/; revision=4611
2003-04-28 14:32:36 +00:00
Aleksey Bragin 331899f621 Added notification for partly-implemented NdisMSetAttributesEx()
svn path=/trunk/; revision=4610
2003-04-28 14:31:47 +00:00
Eric Kohl 29a610ad56 Use disk signature or MBR checksum to find the right disk.
Add missing device objects to device extensions.

svn path=/trunk/; revision=4609
2003-04-28 11:05:34 +00:00
Gé van Geldorp ffebf21131 RegionSize in MEMORY_BASIC_INFORMATION is relative to BaseAddress, not to
AllocationBase

svn path=/trunk/; revision=4608
2003-04-28 10:37:40 +00:00
Gé van Geldorp 458d8d250c Layout stat structures exactly the same as in Microsoft MSVCRT, for
binary compatibility

svn path=/trunk/; revision=4607
2003-04-27 23:14:04 +00:00
guido 8429d49021 fixed file dates in root directory
svn path=/trunk/; revision=4606
2003-04-27 20:23:30 +00:00
Hartmut Birr b5d5cf6145 - Initialize the fpu control register within the context structure.
svn path=/trunk/; revision=4605
2003-04-27 18:58:00 +00:00
Casper Hornstrup 371b0fd87e - Query BIOS for supported disk drives
svn path=/trunk/; revision=4604
2003-04-27 18:18:51 +00:00
Eric Kohl 3f270ca3d4 Removed unused bios32 support.
svn path=/trunk/; revision=4603
2003-04-27 18:12:15 +00:00
Eric Kohl 392883e81f Detect and print BIOS disk geometry.
svn path=/trunk/; revision=4602
2003-04-27 18:10:38 +00:00
Eric Kohl 0f71890bc8 Added disk geometry structures for hardware detection.
svn path=/trunk/; revision=4601
2003-04-27 18:08:56 +00:00
Emanuele Aliberti 52fa46b090 FsRtlNumberOfRunsInLargeMcb() implemented (simple).
svn path=/trunk/; revision=4600
2003-04-27 16:25:25 +00:00
Hartmut Birr 676d1d9ebf - Fixed the frame layout for trap 15 and 16.
svn path=/trunk/; revision=4599
2003-04-27 16:21:16 +00:00
Casper Hornstrup a80496b963 2003-04-27 Casper S. Hornstrup <chorns@users.sourceforge.net>
* tools/helper.mk (TARGET_ASFLAGS): Add -march and define MK_ARCH_ID.
	* lib/ntdll/makefile (TARGET_ASFLAGS): Define as
	"-I $(PATH_TO_TOP)/include".
	(TARGET_OBJECTS): Add ldr/entry.o.
	* lib/ntdll/ldr/startup.c: Move inline assembly code...
	* lib/ntdll/ldr/entry.S: ...here. New file.

svn path=/trunk/; revision=4598
2003-04-27 14:45:52 +00:00
Casper Hornstrup 3568bb9b50 2003-04-27 Casper S. Hornstrup <chorns@users.sourceforge.net>
* include/kernel32/kernel32.h (assert): Define.
	* tools/mkhive/.cvsignore: New file.

svn path=/trunk/; revision=4597
2003-04-27 11:43:31 +00:00
Eric Kohl a950079369 Moved disk manager related offset calculation to class2.
Implemented dynamic partition management.
Removed unused header files.

svn path=/trunk/; revision=4596
2003-04-27 10:50:07 +00:00
KJK::Hyperion 879b1f5754 My biggest commit so far (everything compiles and apparently runs fine):
- replaced DWORD with ULONG in a couple of places
 - replaced some ULONGs with LONGs in the KD GDB stub
 - replaced INITIAL_TEB with USER_STACK, as per Nebbet's book, to support both fixed size and expandable stacks
 - added InterlockedExchangePointer
 - added the ASM_BREAKPOINT macro as the architecture-dependent assembler code to raise a breakpoint exception
 - corrected definitions of INT, LONG, DWORD, UINT, ULONG and ULONG32
 - corrected IoSetCancelRoutine to use InterlockedExchangePointer
 - corrected definition of NtCurrentTeb and NtCurrentPeb
 - corrected DbgBreakPoint and DbgUserBreakPoint not to set up a stack frame (temporary fix with inline assembler - why doesn't GCC understand __declspec(naked)?)
 - corrected various calls to Interlocked* functions to cast OUT operands to LONG *
 - corrected various printf format strings
 - corrected DbgUiIssueRemoteBreakin to use the smallest possible stack  (this is what started everything)
 - removed a DPRINT that accessed pageable memory at non-PASSIVE_LEVEL IRQL
 - beautified CreateProcessA (another temporary fix - all the new functions will be isolated in the upcoming stand-alone RTL)
 - prefixed LdrInitializeThunk with a nop that can be overwritten with a breakpoint for debugging purposes (temporary debugging aid until we have user-mode debugger support). Will add support for this to the breakin utility soon
 - thread creation code rewritten from scratch (some glitches documented inline, but works fine)
 - thread creation code now duplicated just twice, as opposed to five times (temporary fix - three new, non standard functions have been exported from NTDLL.DLL, will fix later)

svn path=/trunk/; revision=4595
2003-04-26 23:13:33 +00:00
Eric Kohl f2c91805a0 Added missing newline.
svn path=/trunk/; revision=4594
2003-04-26 22:51:21 +00:00
Steven Edwards 71df58baf5 Fixed wm_paint test to use ReactOS build system.
svn path=/trunk/; revision=4593
2003-04-26 21:39:36 +00:00
Steven Edwards 91316fff93 Fixed bitblt test to use ReactOS build system.
svn path=/trunk/; revision=4592
2003-04-26 21:37:09 +00:00
Eric Kohl 8b4929f41e Improved command line completion. Patch by Marc Schuetz.
svn path=/trunk/; revision=4591
2003-04-26 16:38:05 +00:00
Gé van Geldorp 01a868d4b8 Remove SetLastErrorByStatus, since it's no longer needed (it is a macro
now) and is giving compile errors

svn path=/trunk/; revision=4590
2003-04-26 12:50:56 +00:00
Gé van Geldorp ffa4267973 Silence debug messages
svn path=/trunk/; revision=4589
2003-04-26 10:06:10 +00:00
Gé van Geldorp 1139966a4e If name of DLL to load contains a path and it has been loaded before,
find the previous entry

svn path=/trunk/; revision=4588
2003-04-26 10:05:38 +00:00
Gé van Geldorp 1e0a179dd4 FileNameLength and ShortNameLength are in bytes, adjust offset for writing
terminating NUL character accordingly

svn path=/trunk/; revision=4587
2003-04-26 08:56:50 +00:00
Hartmut Birr 4b11a99bfe - Fixed the offset in ReadPciConfigUshort.
svn path=/trunk/; revision=4586
2003-04-26 07:09:26 +00:00
Hartmut Birr 40b6b22911 - Fixed the offset in ReadPciConfigUshort/WritePciConfigUshort.
svn path=/trunk/; revision=4585
2003-04-26 07:06:55 +00:00
Steven Edwards 63e4fdcdc6 Replace SetLastErrorByStatus with RtlNtStatusToDosError
svn path=/trunk/; revision=4584
2003-04-26 01:19:31 +00:00
KJK::Hyperion b9269e59c8 SetLastErrorByStatus() now a macro, for binary compatibility with Windows
svn path=/trunk/; revision=4583
2003-04-26 00:25:01 +00:00
Aleksey Bragin 2e6c5e5a92 Implement part of the functionality of NdisMSetAttributesEx(). (So ROS doesn't complain while loading VMWare net driver -- though it still doesn't load)
svn path=/trunk/; revision=4582
2003-04-25 21:22:48 +00:00
Casper Hornstrup b119bad3fa - Detect PCI busses
- Detect IDE controllers and devices
- Improved RegEnumValue()

svn path=/trunk/; revision=4581
2003-04-25 19:32:51 +00:00
Hartmut Birr 37339cbf6b - Fixed the detection of a fat32 boot sector.
svn path=/trunk/; revision=4580
2003-04-25 18:45:06 +00:00
Aleksey Bragin 143395e386 KeSetAffinityThread stub added (returns STATUS_SUCCESS and thus VMWare network driver won't crash ReactOS)
svn path=/trunk/; revision=4579
2003-04-25 18:37:44 +00:00
Aleksey Bragin 79c386dcf3 KeSetAffinityThread added (uncommented in def files)
svn path=/trunk/; revision=4578
2003-04-25 18:36:10 +00:00
Hartmut Birr 9282a443a1 - Fixed a rounding bug within the translation from float values to printable wstrings.
svn path=/trunk/; revision=4577
2003-04-25 17:49:07 +00:00
Eric Kohl 80b2784520 - Added memmove().
- Added hardware hive export.

svn path=/trunk/; revision=4576
2003-04-25 09:54:52 +00:00
Eric Kohl 323bc49a36 - Added memmove().
- Added hardware hive export.

svn path=/trunk/; revision=4575
2003-04-25 09:45:17 +00:00
Gé van Geldorp 6aa450d7d9 Moved _ftol to NTDLL
svn path=/trunk/; revision=4574
2003-04-24 22:21:13 +00:00
Hartmut Birr f4e4a5dd14 - Call KeBugCheckWithTf for not handled kernel mode exceptions in KiDispatchException.
svn path=/trunk/; revision=4573
2003-04-24 16:55:08 +00:00
Hartmut Birr 3eb21f737e - Implemented KeBugCheckWithTf like KeBugCheckEx.
svn path=/trunk/; revision=4572
2003-04-24 16:53:59 +00:00
Hartmut Birr d7982ea298 - Do not free the initial environment block, if the environment changed.
svn path=/trunk/; revision=4571
2003-04-24 16:34:26 +00:00
Hartmut Birr 0d54f93d31 - Fixed a rounding bug within the translation from float values to printable strings.
svn path=/trunk/; revision=4570
2003-04-24 16:28:57 +00:00
Eric Kohl 33b0769d71 Enable hardware hive import.
svn path=/trunk/; revision=4569
2003-04-24 12:28:57 +00:00
Gé van Geldorp a94c5d7e28 Fix _ftol() and move it to NTDLL i386 subdir
svn path=/trunk/; revision=4568
2003-04-23 22:58:02 +00:00
Brian Palmer fb8745e1ef Turned the FreeLoader debugger into a GUI app.
Basically just a terminal program that logs the RS232 data to a file.

svn path=/trunk/; revision=4567
2003-04-23 20:59:30 +00:00
Eric Kohl 0abf32e9f6 Fixed returning an undefined value.
svn path=/trunk/; revision=4566
2003-04-23 19:36:04 +00:00
Brian Palmer 201324d607 Changes in v1.8.7 (4/22/2003) (brianp)
- Added a file system recognizer to get around problems where
  the partition id did not match the file system type.

svn path=/trunk/; revision=4565
2003-04-23 16:47:24 +00:00
Eric Kohl 198be0032b Remove gstart.exe from boot CD.
svn path=/trunk/; revision=4563
2003-04-23 12:43:23 +00:00
Eric Kohl e39c8f7e42 Use cdmake.exe to create reactos.iso file.
Remove gstart.exe from boot CD.

svn path=/trunk/; revision=4562
2003-04-23 12:42:59 +00:00