Author: ion
Date: Sun Nov 5 23:43:07 2006
New Revision: 24686
URL:
http://svn.reactos.org/svn/reactos?rev=24686&view=rev
Log:
- disk.sys: Don't fail IOCTL_GET_PARTITION_INFO for Partition 0. This is perfectly
valid (and needed for some code I'll add later).
- IopGetDiskInformation: Treat the partition buffer as a simple PULONG array.
- KeUpdateSystemTime: Fix memory addressing to silence GAS compile-time warning.
Modified:
trunk/reactos/drivers/storage/disk/disk.c
trunk/reactos/ntoskrnl/io/iomgr/arcname.c
trunk/reactos/ntoskrnl/ke/i386/clock.S
Modified: trunk/reactos/drivers/storage/disk/disk.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/disk/disk.…
==============================================================================
--- trunk/reactos/drivers/storage/disk/disk.c (original)
+++ trunk/reactos/drivers/storage/disk/disk.c Sun Nov 5 23:43:07 2006
@@ -1129,10 +1129,10 @@
{
Status = STATUS_INFO_LENGTH_MISMATCH;
}
- else if (DiskData->PartitionNumber == 0)
- {
- Status = STATUS_INVALID_DEVICE_REQUEST;
- }
+ //else if (DiskData->PartitionNumber == 0)
+// {
+// Status = STATUS_INVALID_DEVICE_REQUEST;
+ //}
else
{
PPARTITION_INFORMATION PartitionInfo;
Modified: trunk/reactos/ntoskrnl/io/iomgr/arcname.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/arcname.…
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/arcname.c (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/arcname.c Sun Nov 5 23:43:07 2006
@@ -134,7 +134,7 @@
PIRP Irp;
IO_STATUS_BLOCK StatusBlock;
LARGE_INTEGER PartitionOffset;
- PPARTITION_SECTOR PartitionBuffer;
+ PULONG PartitionBuffer;
/* Build the name */
sprintf(Buffer, "\\Device\\Harddisk%lu\\Partition0", i);
@@ -241,10 +241,7 @@
/* Calculate the MBR checksum */
Checksum = 0;
- for (j = 0; j < 128; j++)
- {
- Checksum += ((PULONG)PartitionBuffer)[j];
- }
+ for (j = 0; j < 128; j++) Checksum += PartitionBuffer[j];
/* Save the signature and checksum */
*CheckSum = ~Checksum + 1;
Modified: trunk/reactos/ntoskrnl/ke/i386/clock.S
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/clock.S?r…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/i386/clock.S (original)
+++ trunk/reactos/ntoskrnl/ke/i386/clock.S Sun Nov 5 23:43:07 2006
@@ -207,12 +207,12 @@
mov [_KeTickCount+4], edx
/* Store in in shared data too */
- mov [USER_SHARED_DATA+USER_SHARED_DATA_TICK_COUNT+8], edx
- mov [USER_SHARED_DATA+USER_SHARED_DATA_TICK_COUNT], ecx
- mov [USER_SHARED_DATA+USER_SHARED_DATA_TICK_COUNT+4], edx
+ mov ds:[USER_SHARED_DATA+USER_SHARED_DATA_TICK_COUNT+8], edx
+ mov ds:[USER_SHARED_DATA+USER_SHARED_DATA_TICK_COUNT], ecx
+ mov ds:[USER_SHARED_DATA+USER_SHARED_DATA_TICK_COUNT+4], edx
/* FIXME: HACK */
- mov [USER_SHARED_DATA], ecx
+ mov ds:[USER_SHARED_DATA], ecx
IncompleteTick: