Modified: trunk/reactos/boot/freeldr/fdebug/fdebug.c
Modified: trunk/reactos/boot/freeldr/fdebug/resource.h
Modified: trunk/reactos/boot/freeldr/fdebug/rs232.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/hwcpu.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/i386disk.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/i386rtl.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/i386vid.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/pcvideo.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/portio.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxdisk.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/powerpc/mach.c
Modified: trunk/reactos/boot/freeldr/freeldr/cache/blocklist.c
Modified: trunk/reactos/boot/freeldr/freeldr/cmdline.c
Modified: trunk/reactos/boot/freeldr/freeldr/custom.c
Modified: trunk/reactos/boot/freeldr/freeldr/disk/partition.c
Modified: trunk/reactos/boot/freeldr/freeldr/drivemap.c
Modified: trunk/reactos/boot/freeldr/freeldr/freeldr.c
Modified: trunk/reactos/boot/freeldr/freeldr/fs/ext2.c
Modified: trunk/reactos/boot/freeldr/freeldr/fs/fat.c
Modified: trunk/reactos/boot/freeldr/freeldr/fs/fat.h
Modified: trunk/reactos/boot/freeldr/freeldr/fs/fs.c
Modified: trunk/reactos/boot/freeldr/freeldr/fs/ntfs.c
Modified: trunk/reactos/boot/freeldr/freeldr/fs/ntfs.h
Modified: trunk/reactos/boot/freeldr/freeldr/include/freeldr.h
Modified: trunk/reactos/boot/freeldr/freeldr/include/linux.h
Modified: trunk/reactos/boot/freeldr/freeldr/include/machine.h
Modified: trunk/reactos/boot/freeldr/freeldr/include/multiboot.h
Modified: trunk/reactos/boot/freeldr/freeldr/include/rtl.h
Modified: trunk/reactos/boot/freeldr/freeldr/inifile/parse.c
Modified: trunk/reactos/boot/freeldr/freeldr/linuxboot.c
Modified: trunk/reactos/boot/freeldr/freeldr/math/i386.h
Modified: trunk/reactos/boot/freeldr/freeldr/math/powerpc.h
Modified: trunk/reactos/boot/freeldr/freeldr/mm/meminit.c
Modified: trunk/reactos/boot/freeldr/freeldr/multiboot.c
Modified: trunk/reactos/boot/freeldr/freeldr/options.c
Modified: trunk/reactos/boot/freeldr/freeldr/oslist.c
Modified: trunk/reactos/boot/freeldr/freeldr/reactos/binhive.c
Modified: trunk/reactos/boot/freeldr/freeldr/reactos/reactos.c
Modified: trunk/reactos/boot/freeldr/freeldr/reactos/setupldr.c
Modified: trunk/reactos/boot/freeldr/freeldr/rtl/memset.c
Modified: trunk/reactos/boot/freeldr/freeldr/rtl/print.c
Modified: trunk/reactos/boot/freeldr/freeldr/ui/gui.c
Modified: trunk/reactos/boot/freeldr/freeldr/ui/tui.c
Modified: trunk/reactos/boot/freeldr/freeldr/ui/tuimenu.c
Modified: trunk/reactos/boot/freeldr/freeldr/ui/ui.c
Modified: trunk/reactos/boot/freeldr/freeldr/version.c
Modified: trunk/reactos/boot/freeldr/freeldr/video/bank.c
Modified: trunk/reactos/boot/freeldr/freeldr/video/fade.c
Modified: trunk/reactos/boot/freeldr/freeldr/video/palette.c
Modified: trunk/reactos/boot/freeldr/freeldr/video/pixel.c
Modified: trunk/reactos/boot/freeldr/freeldr/video/video.c
Modified: trunk/reactos/boot/freeldr/install/linux/finstext2.h
Modified: trunk/reactos/boot/freeldr/install/volume.c
Modified: trunk/reactos/boot/freeldr/ntvdmpat.c
--- trunk/reactos/boot/freeldr/fdebug/fdebug.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/fdebug/fdebug.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -57,7 +57,7 @@
MyRegisterClass(hInstance);
// Perform application initialization:
- if (!InitInstance (hInstance, nCmdShow))
+ if (!InitInstance (hInstance, nCmdShow))
{
return FALSE;
}
@@ -65,9 +65,9 @@
hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_FDEBUG);
// Main message loop:
- while (GetMessage(&msg, NULL, 0, 0))
+ while (GetMessage(&msg, NULL, 0, 0))
{
- if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
+ if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
@@ -96,7 +96,7 @@
{
WNDCLASSEX wcex;
- wcex.cbSize = sizeof(WNDCLASSEX);
+ wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = CS_HREDRAW | CS_VREDRAW;
wcex.lpfnWndProc = (WNDPROC)WndProc;
@@ -156,7 +156,7 @@
NONCLIENTMETRICS ncm;
HFONT hFont;
- switch (message)
+ switch (message)
{
case WM_CREATE:
@@ -174,7 +174,7 @@
break;
case WM_COMMAND:
- wmId = LOWORD(wParam);
+ wmId = LOWORD(wParam);
wmEvent = HIWORD(wParam);
if (lParam == (LPARAM)hEditWnd && wmEvent == EN_CHANGE)
@@ -312,7 +312,7 @@
return TRUE;
case WM_COMMAND:
- if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
+ if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
{
EndDialog(hDlg, LOWORD(wParam));
return TRUE;
@@ -340,7 +340,7 @@
GetWindowText(GetDlgItem(hDlg, IDC_BAUTRATE), strBaudRate, MAX_PATH);
}
- if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
+ if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
{
EndDialog(hDlg, LOWORD(wParam));
return TRUE;
@@ -392,7 +392,7 @@
GetWindowText(GetDlgItem(hDlg, IDC_CAPTUREFILENAME), strCaptureFileName, MAX_PATH);
}
- if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
+ if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
{
EndDialog(hDlg, LOWORD(wParam));
return TRUE;
--- trunk/reactos/boot/freeldr/fdebug/resource.h 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/fdebug/resource.h 2005-05-08 02:15:21 UTC (rev 15107)
@@ -29,7 +29,7 @@
#define IDC_STATIC -1
// Next default values for new objects
-//
+//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 132
--- trunk/reactos/boot/freeldr/fdebug/rs232.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/fdebug/rs232.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -83,16 +83,16 @@
// [in] Pointer to a null-terminated string that specifies device-control information.
// The string must have the same form as the mode command's command-line arguments.
//
-// For example, the following string specifies a baud rate of 1200, no parity, 8 data bits, and 1 stop bit:
+// For example, the following string specifies a baud rate of 1200, no parity, 8 data bits, and 1 stop bit:
// "baud=1200 parity=N data=8 stop=1"
//
// The following string specifies a baud rate of 115200, no parity, 8 data bits, and 1 stop bit:
// "115200,n,8,1"
//
-// The device name is ignored if it is included in the string, but it must specify a valid device, as follows:
+// The device name is ignored if it is included in the string, but it must specify a valid device, as follows:
// "COM1: baud=1200 parity=N data=8 stop=1"
//
-// For further information on mode command syntax, refer to the end-user documentation for your operating system.
+// For further information on mode command syntax, refer to the end-user documentation for your operating system.
BOOL Rs232ConfigurePortWin32(TCHAR* DeviceControlString)
{
DCB dcb;
@@ -157,28 +157,28 @@
}
// Members
-// ReadIntervalTimeout
-// Specifies the maximum time, in milliseconds, allowed to elapse between the arrival of two characters on the communications line. During a ReadFile operation, the time period begins when the first character is received. If the interval between the arrival of any two characters exceeds this amount, the ReadFile operation is completed and any buffered data is returned. A value of zero indicates that interval time-outs are not used.
-// A value of MAXDWORD, combined with zero values for both the ReadTotalTimeoutConstant and ReadTotalTimeoutMultiplier members, specifies that the read operation is to return immediately with the characters that have already been received, even if no characters have been received.
-//
-// ReadTotalTimeoutMultiplier
-// Specifies the multiplier, in milliseconds, used to calculate the total time-out period for read operations. For each read operation, this value is multiplied by the requested number of bytes to be read.
-// ReadTotalTimeoutConstant
-// Specifies the constant, in milliseconds, used to calculate the total time-out period for read operations. For each read operation, this value is added to the product of the ReadTotalTimeoutMultiplier member and the requested number of bytes.
-// A value of zero for both the ReadTotalTimeoutMultiplier and ReadTotalTimeoutConstant members indicates that total time-outs are not used for read operations.
-//
-// WriteTotalTimeoutMultiplier
-// Specifies the multiplier, in milliseconds, used to calculate the total time-out period for write operations. For each write operation, this value is multiplied by the number of bytes to be written.
-// WriteTotalTimeoutConstant
-// Specifies the constant, in milliseconds, used to calculate the total time-out period for write operations. For each write operation, this value is added to the product of the WriteTotalTimeoutMultiplier member and the number of bytes to be written.
-// A value of zero for both the WriteTotalTimeoutMultiplier and WriteTotalTimeoutConstant members indicates that total time-outs are not used for write operations.
-//
+// ReadIntervalTimeout
+// Specifies the maximum time, in milliseconds, allowed to elapse between the arrival of two characters on the communications line. During a ReadFile operation, the time period begins when the first character is received. If the interval between the arrival of any two characters exceeds this amount, the ReadFile operation is completed and any buffered data is returned. A value of zero indicates that interval time-outs are not used.
+// A value of MAXDWORD, combined with zero values for both the ReadTotalTimeoutConstant and ReadTotalTimeoutMultiplier members, specifies that the read operation is to return immediately with the characters that have already been received, even if no characters have been received.
+//
+// ReadTotalTimeoutMultiplier
+// Specifies the multiplier, in milliseconds, used to calculate the total time-out period for read operations. For each read operation, this value is multiplied by the requested number of bytes to be read.
+// ReadTotalTimeoutConstant
+// Specifies the constant, in milliseconds, used to calculate the total time-out period for read operations. For each read operation, this value is added to the product of the ReadTotalTimeoutMultiplier member and the requested number of bytes.
+// A value of zero for both the ReadTotalTimeoutMultiplier and ReadTotalTimeoutConstant members indicates that total time-outs are not used for read operations.
+//
+// WriteTotalTimeoutMultiplier
+// Specifies the multiplier, in milliseconds, used to calculate the total time-out period for write operations. For each write operation, this value is multiplied by the number of bytes to be written.
+// WriteTotalTimeoutConstant
+// Specifies the constant, in milliseconds, used to calculate the total time-out period for write operations. For each write operation, this value is added to the product of the WriteTotalTimeoutMultiplier member and the number of bytes to be written.
+// A value of zero for both the WriteTotalTimeoutMultiplier and WriteTotalTimeoutConstant members indicates that total time-outs are not used for write operations.
+//
// Remarks
-// If an application sets ReadIntervalTimeout and ReadTotalTimeoutMultiplier to MAXDWORD and sets ReadTotalTimeoutConstant to a value greater than zero and less than MAXDWORD, one of the following occurs when the ReadFile function is called:
-//
-// If there are any characters in the input buffer, ReadFile returns immediately with the characters in the buffer.
-// If there are no characters in the input buffer, ReadFile waits until a character arrives and then returns immediately.
-// If no character arrives within the time specified by ReadTotalTimeoutConstant, ReadFile times out.
+// If an application sets ReadIntervalTimeout and ReadTotalTimeoutMultiplier to MAXDWORD and sets ReadTotalTimeoutConstant to a value greater than zero and less than MAXDWORD, one of the following occurs when the ReadFile function is called:
+//
+// If there are any characters in the input buffer, ReadFile returns immediately with the characters in the buffer.
+// If there are no characters in the input buffer, ReadFile waits until a character arrives and then returns immediately.
+// If no character arrives within the time specified by ReadTotalTimeoutConstant, ReadFile times out.
BOOL Rs232SetCommunicationTimeoutsWin32(DWORD ReadIntervalTimeout, DWORD ReadTotalTimeoutMultiplier, DWORD ReadTotalTimeoutConstant, DWORD WriteTotalTimeoutMultiplier, DWORD WriteTotalTimeoutConstant)
{
COMMTIMEOUTS ct;
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -197,44 +197,44 @@
WRITE_PORT_UCHAR((PUCHAR)0x43, 0x34); /* binary, mode 2, LSB/MSB, ch 0 */
WRITE_PORT_UCHAR((PUCHAR)0x40, LATCH & 0xff); /* LSB */
WRITE_PORT_UCHAR((PUCHAR)0x40, LATCH >> 8); /* MSB */
-
+
/* Stage 1: Coarse calibration */
-
+
WaitFor8254Wraparound();
-
+
delay_count = 1;
-
+
do {
delay_count <<= 1; /* Next delay count to try */
WaitFor8254Wraparound();
-
+
__StallExecutionProcessor(delay_count); /* Do the delay */
-
+
CurCount = Read8254Timer();
} while (CurCount > LATCH / 2);
-
+
delay_count >>= 1; /* Get bottom value for delay */
-
+
/* Stage 2: Fine calibration */
-
+
calib_bit = delay_count; /* Which bit are we going to test */
-
+
for(i=0;i<PRECISION;i++) {
calib_bit >>= 1; /* Next bit to calibrate */
if(!calib_bit) break; /* If we have done all bits, stop */
-
+
delay_count |= calib_bit; /* Set the bit in delay_count */
-
+
WaitFor8254Wraparound();
-
+
__StallExecutionProcessor(delay_count); /* Do the delay */
-
+
CurCount = Read8254Timer();
if (CurCount <= LATCH / 2) /* If a tick has passed, turn the */
delay_count &= ~calib_bit; /* calibrated bit back off */
}
-
+
/* We're finished: Do the finishing touches */
delay_count /= (MILLISEC / 2); /* Calculate delay_count for 1ms */
}
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/hwcpu.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/hwcpu.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -464,7 +464,7 @@
if (ConfigTable->Signature != MP_CT_SIGNATURE)
return NULL;
- DbgPrint((DPRINT_HWDETECT,
+ DbgPrint((DPRINT_HWDETECT,
"MP Configuration Table at: %x\n",
(ULONG)ConfigTable));
@@ -538,7 +538,7 @@
CpuEntry = (PMP_PROCESSOR_ENTRY)Ptr;
DbgPrint((DPRINT_HWDETECT, "Processor Entry\n"));
- DbgPrint((DPRINT_HWDETECT,
+ DbgPrint((DPRINT_HWDETECT,
"APIC Id %u APIC Version %u Flags %x Signature %x Feature %x\n",
CpuEntry->LocalApicId,
CpuEntry->LocalApicVersion,
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/i386disk.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/i386disk.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -168,7 +168,7 @@
return TRUE;
}
-BOOL i386DiskGetBootVolume(PULONG DriveNumber, PULONGLONG StartSector, PULONGLONG SectorCount, int *FsType)
+BOOL i386DiskGetBootVolume(PULONG DriveNumber, PULONGLONG StartSector, PULONGLONG SectorCount, int *FsType)
{
PARTITION_TABLE_ENTRY PartitionTableEntry;
UCHAR VolumeType;
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/i386rtl.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/i386rtl.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -47,12 +47,12 @@
// interrupt from the AT real-time clock chip which is available on INT 70;
// because newer BIOSes may have much more precise timers available, it is
// not possible to use this function accurately for very short delays unless
- // the precise behavior of the BIOS is known (or found through testing)
+ // the precise behavior of the BIOS is known (or found through testing)
while (msec)
{
msec_this = msec;
-
+
if (msec_this > 4000)
{
msec_this = 4000;
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/i386vid.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/i386vid.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -88,7 +88,7 @@
// A search must then be made to find them, FFFFh will also terminate this
// second list. In some cases, only a "stub" VBE may be present, supporting
// only AX=4F00h; this case may be assumed if the list of supported video modes
-// is empty (consisting of a single word of FFFFh)
+// is empty (consisting of a single word of FFFFh)
VOID BiosSetVideoFont8x16(VOID)
{
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/pcvideo.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/pcvideo.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -136,7 +136,7 @@
* CH = feature connector bits
* CL = switch settings
* AH destroyed (at least by Tseng ET4000 BIOS v8.00n)
- *
+ *
* Installation check;EGA
*/
Regs.b.ah = 0x12;
@@ -161,7 +161,7 @@
* This function is commonly used to check for the presence of a VGA.
*
* Installation check;VGA
- *
+ *
* Values for display combination code:
* 00h no display
* 01h monochrome adapter w/ monochrome display
@@ -309,15 +309,15 @@
* CL = bottom scan line containing cursor (bits 0-4)
* Return:
* Nothing
- *
+ *
* Specify the starting and ending scan lines to be occupied
* by the hardware cursor in text modes.
*
* AMI 386 BIOS and AST Premier 386 BIOS will lock up the
* system if AL is not equal to the current video mode.
- *
+ *
* Bitfields for cursor start and options:
- *
+ *
* Bit(s) Description
* 7 should be zero
* 6,5 cursor blink
@@ -460,7 +460,7 @@
*
* Note: While VBE 1.1 and higher will zero out all unused bytes
* of the buffer, v1.0 did not, so applications that want to be
- * backward compatible should clear the buffer before calling
+ * backward compatible should clear the buffer before calling
*/
Regs.w.ax = 0x4F01;
Regs.w.cx = Mode;
@@ -563,7 +563,7 @@
* 121h 1600x1200x32K
* 122h 1600x1200x64K
* 81FFh special full-memory access mode
- *
+ *
* Notes: The special mode 81FFh preserves the contents of the video memory and gives
* access to all of the memory; VESA recommends that the special mode be a packed-pixel
* mode. For VBE 2.0+, it is required that the VBE implement the mode, but not place it
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/portio.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/portio.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -58,8 +58,8 @@
PUCHAR Buffer,
ULONG Count)
{
- __asm__ __volatile__ ("cld ; rep ; insb\n\t"
- : "=D" (Buffer), "=c" (Count)
+ __asm__ __volatile__ ("cld ; rep ; insb\n\t"
+ : "=D" (Buffer), "=c" (Count)
: "d" (Port),"0" (Buffer),"1" (Count));
}
@@ -71,7 +71,7 @@
ULONG Count)
{
__asm__ __volatile__ ("cld ; rep ; insw"
- : "=D" (Buffer), "=c" (Count)
+ : "=D" (Buffer), "=c" (Count)
: "d" (Port),"0" (Buffer),"1" (Count));
}
@@ -83,17 +83,17 @@
ULONG Count)
{
__asm__ __volatile__ ("cld ; rep ; insl"
- : "=D" (Buffer), "=c" (Count)
+ : "=D" (Buffer), "=c" (Count)
: "d" (Port),"0" (Buffer),"1" (Count));
}
#undef READ_PORT_UCHAR
-UCHAR
+UCHAR
STDCALL
READ_PORT_UCHAR (PUCHAR Port)
{
UCHAR Value;
-
+
__asm__("inb %w1, %0\n\t"
: "=a" (Value)
: "d" (Port));
@@ -107,7 +107,7 @@
READ_PORT_USHORT (USHORT* Port)
{
USHORT Value;
-
+
__asm__("inw %w1, %0\n\t"
: "=a" (Value)
: "d" (Port));
@@ -121,7 +121,7 @@
READ_PORT_ULONG (ULONG* Port)
{
ULONG Value;
-
+
__asm__("inl %w1, %0\n\t"
: "=a" (Value)
: "d" (Port));
@@ -130,14 +130,14 @@
}
#undef WRITE_PORT_BUFFER_UCHAR
-VOID
+VOID
STDCALL
WRITE_PORT_BUFFER_UCHAR (PUCHAR Port,
PUCHAR Buffer,
ULONG Count)
{
- __asm__ __volatile__ ("cld ; rep ; outsb"
- : "=S" (Buffer), "=c" (Count)
+ __asm__ __volatile__ ("cld ; rep ; outsb"
+ : "=S" (Buffer), "=c" (Count)
: "d" (Port),"0" (Buffer),"1" (Count));
}
@@ -149,7 +149,7 @@
ULONG Count)
{
__asm__ __volatile__ ("cld ; rep ; outsw"
- : "=S" (Buffer), "=c" (Count)
+ : "=S" (Buffer), "=c" (Count)
: "d" (Port),"0" (Buffer),"1" (Count));
}
@@ -160,8 +160,8 @@
ULONG* Buffer,
ULONG Count)
{
- __asm__ __volatile__ ("cld ; rep ; outsl"
- : "=S" (Buffer), "=c" (Count)
+ __asm__ __volatile__ ("cld ; rep ; outsl"
+ : "=S" (Buffer), "=c" (Count)
: "d" (Port),"0" (Buffer),"1" (Count));
}
@@ -172,7 +172,7 @@
UCHAR Value)
{
__asm__("outb %0, %w1\n\t"
- :
+ :
: "a" (Value),
"d" (Port));
SLOW_DOWN_IO;
@@ -185,7 +185,7 @@
USHORT Value)
{
__asm__("outw %0, %w1\n\t"
- :
+ :
: "a" (Value),
"d" (Port));
SLOW_DOWN_IO;
@@ -198,7 +198,7 @@
ULONG Value)
{
__asm__("outl %0, %w1\n\t"
- :
+ :
: "a" (Value),
"d" (Port));
SLOW_DOWN_IO;
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxdisk.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxdisk.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -149,7 +149,7 @@
#define IDEWriteDMAStatus(Address, Data) \
(WRITE_PORT_UCHAR((PUCHAR)((Address) + 2), (Data)))
#define IDEWritePRDTable(Address, Data) \
- (WRITE_PORT_ULONG((PULONG)((Address) + 4), (Data)))
+ (WRITE_PORT_ULONG((PULONG)((Address) + 4), (Data)))
/*
* Data block read and write commands
--- trunk/reactos/boot/freeldr/freeldr/arch/powerpc/mach.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/arch/powerpc/mach.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -31,11 +31,11 @@
BOOLEAN AcpiPresent = FALSE;
char BootPath[0x100];
-void le_swap( const void *start_addr_v,
- const void *end_addr_v,
+void le_swap( const void *start_addr_v,
+ const void *end_addr_v,
const void *target_addr_v ) {
- long *start_addr = (long *)ROUND_DOWN((long)start_addr_v,8),
- *end_addr = (long *)ROUND_UP((long)end_addr_v,8),
+ long *start_addr = (long *)ROUND_DOWN((long)start_addr_v,8),
+ *end_addr = (long *)ROUND_UP((long)end_addr_v,8),
*target_addr = (long *)ROUND_DOWN((long)target_addr_v,8);
long tmp;
while( start_addr <= end_addr ) {
@@ -107,7 +107,7 @@
void PpcPutChar( int ch ) {
char buf[3];
- if( ch == 0x0a ) { buf[0] = 0x0d; buf[1] = 0x0a; }
+ if( ch == 0x0a ) { buf[0] = 0x0d; buf[1] = 0x0a; }
else { buf[0] = ch; buf[1] = 0; }
buf[2] = 0;
ofw_print_string( buf );
@@ -167,12 +167,12 @@
return FALSE;
}
-VOID PpcVideoSetPaletteColor( UCHAR Color,
+VOID PpcVideoSetPaletteColor( UCHAR Color,
UCHAR Red, UCHAR Green, UCHAR Blue ) {
printf( "SetPaletteColor(%x,%x,%x,%x)\n", Color, Red, Green, Blue );
}
-VOID PpcVideoGetPaletteColor( UCHAR Color,
+VOID PpcVideoGetPaletteColor( UCHAR Color,
UCHAR *Red, UCHAR *Green, UCHAR *Blue ) {
printf( "GetPaletteColor(%x)\n", Color);
}
@@ -198,7 +198,7 @@
BiosMemoryMap[0].BaseAddress = 0;
BiosMemoryMap[0].Length = 32 * 1024 * 1024; /* Assume 32 meg for now */
- printf( "Returning memory map (%dk total)\n",
+ printf( "Returning memory map (%dk total)\n",
(int)BiosMemoryMap[0].Length / 1024 );
return 1;
@@ -226,7 +226,7 @@
return 0;
}
-VOID PpcRTCGetCurrentDateTime( PULONG Hear, PULONG Month, PULONG Day,
+VOID PpcRTCGetCurrentDateTime( PULONG Hear, PULONG Month, PULONG Day,
PULONG Hour, PULONG Minute, PULONG Second ) {
printf("RTCGeturrentDateTime\n");
}
@@ -256,7 +256,7 @@
MachVtbl.VideoSetTextCursorPosition = PpcVideoSetTextCursorPosition;
MachVtbl.VideoHideShowTextCursor = PpcVideoHideShowTextCursor;
MachVtbl.VideoPutChar = PpcVideoPutChar;
- MachVtbl.VideoCopyOffScreenBufferToVRAM =
+ MachVtbl.VideoCopyOffScreenBufferToVRAM =
PpcVideoCopyOffScreenBufferToVRAM;
MachVtbl.VideoIsPaletteFixed = PpcVideoIsPaletteFixed;
MachVtbl.VideoSetPaletteColor = PpcVideoSetPaletteColor;
@@ -276,13 +276,13 @@
MachVtbl.HwDetect = PpcHwDetect;
printf( "FreeLDR version [%s]\n", GetFreeLoaderVersionString() );
- BootMain("freeldr-ppc");
+ BootMain("freeldr-ppc");
}
void MachInit(char *CmdLine) {
int len;
printf( "Determining boot device:\n" );
- len = ofw_getprop(chosen_package, "bootpath",
+ len = ofw_getprop(chosen_package, "bootpath",
BootPath, sizeof(BootPath));
printf( "Got %d bytes of path\n", len );
BootPath[len] = 0;
--- trunk/reactos/boot/freeldr/freeldr/cache/blocklist.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/cache/blocklist.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -89,7 +89,7 @@
CacheBlock = (PCACHE_BLOCK)RtlListGetNext((PLIST_ITEM)CacheBlock);
}
}
-
+
return NULL;
}
--- trunk/reactos/boot/freeldr/freeldr/cmdline.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/cmdline.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -18,7 +18,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include <freeldr.h>
+#include <freeldr.h>
#include <cmdline.h>
#include <rtl.h>
--- trunk/reactos/boot/freeldr/freeldr/custom.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/custom.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
+
#include <freeldr.h>
#include <rtl.h>
#include <ui.h>
--- trunk/reactos/boot/freeldr/freeldr/disk/partition.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/disk/partition.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -109,7 +109,7 @@
// They want an extended partition entry so we will need
// to loop through all the extended partitions on the disk
// and return the one they want.
-
+
ExtendedPartitionNumber = PartitionNumber - 5;
// Set the initial relative starting sector to 0
--- trunk/reactos/boot/freeldr/freeldr/drivemap.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/drivemap.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
+
#include <freeldr.h>
#include <drivemap.h>
#include <rtl.h>
@@ -120,7 +120,7 @@
BOOL DriveMapIsValidDriveString(PCHAR DriveString)
{
ULONG Index;
-
+
// Now verify that the user has given us appropriate strings
if ((strlen(DriveString) < 3) ||
((DriveString[0] != 'f') && (DriveString[0] != 'F') && (DriveString[0] != 'h') && (DriveString[0] != 'H')) ||
--- trunk/reactos/boot/freeldr/freeldr/freeldr.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/freeldr.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
+
#include <freeldr.h>
#include <rtl.h>
#include <arch.h>
--- trunk/reactos/boot/freeldr/freeldr/fs/ext2.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/fs/ext2.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -949,7 +949,7 @@
{
return FALSE;
}
-
+
// Copy the data to their buffer
RtlCopyMemory(InodeBuffer, (PVOID)(FILESYSBUFFER + (InodeOffsetInBlock * EXT3_INODE_SIZE(Ext2SuperBlock))), sizeof(EXT2_INODE));
--- trunk/reactos/boot/freeldr/freeldr/fs/fat.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/fs/fat.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -318,8 +318,8 @@
SectorsPerFat = FatBootSector->SectorsPerFat ? FatBootSector->SectorsPerFat : Fat32BootSector->SectorsPerFatBig;
TotalSectors = FatBootSector->TotalSectors ? FatBootSector->TotalSectors : FatBootSector->TotalSectorsBig;
DataSectorCount = TotalSectors - (FatBootSector->ReservedSectors + (FatBootSector->NumberOfFats * SectorsPerFat) + RootDirSectors);
-
-//mjl
+
+//mjl
if (FatBootSector->SectorsPerCluster == 0)
CountOfClusters = 0;
else
@@ -861,7 +861,7 @@
}
fat = *((USHORT *) ((PVOID)FILESYSBUFFER + ThisFatEntOffset));
- if (Cluster & 0x0001)
+ if (Cluster & 0x0001)
fat = fat >> 4; /* Cluster number is ODD */
else
fat = fat & 0x0FFF; /* Cluster number is EVEN */
@@ -870,7 +870,7 @@
case FAT16:
case FATX16:
-
+
FatOffset = (Cluster * 2);
ThisFatSecNum = ActiveFatSectorStart + (FatOffset / BytesPerSector);
ThisFatEntOffset = (FatOffset % BytesPerSector);
@@ -1111,7 +1111,7 @@
break;
}
}
-
+
return TRUE;
}
--- trunk/reactos/boot/freeldr/freeldr/fs/fat.h 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/fs/fat.h 2005-05-08 02:15:21 UTC (rev 15107)
@@ -46,7 +46,7 @@
UCHAR BootCodeAndData[448]; // The remainder of the boot sector
USHORT BootSectorMagic; // 0xAA55
-
+
} PACKED FAT_BOOTSECTOR, *PFAT_BOOTSECTOR;
typedef struct _FAT32_BOOTSECTOR
@@ -82,7 +82,7 @@
UCHAR BootCodeAndData[420]; // The remainder of the boot sector
USHORT BootSectorMagic; // 0xAA55
-
+
} PACKED FAT32_BOOTSECTOR, *PFAT32_BOOTSECTOR;
typedef struct _FATX_BOOTSECTOR
@@ -93,7 +93,7 @@
USHORT NumberOfFats; /* Number of FAT tables */
ULONG Unknown; /* Always 0? */
UCHAR Unused[494]; /* Actually size should be 4078 (boot block is 4096 bytes) */
-
+
} PACKED FATX_BOOTSECTOR, *PFATX_BOOTSECTOR;
/*
--- trunk/reactos/boot/freeldr/freeldr/fs/fs.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/fs/fs.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -139,7 +139,7 @@
{
FileName++;
}
-
+
//
// Check file system type and pass off to appropriate handler
//
--- trunk/reactos/boot/freeldr/freeldr/fs/ntfs.c 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/fs/ntfs.c 2005-05-08 02:15:21 UTC (rev 15107)
@@ -110,7 +110,7 @@
{
AttrName = (PWCHAR)((PCHAR)AttrRecord + AttrRecord->NameOffset);
if (!RtlCompareMemory(AttrName, Name, NameLength << 1))
- {
+ {
/* Found it, fill up the context and return. */
Context->Record = AttrRecord;
if (AttrRecord->IsNonResident)
@@ -125,7 +125,7 @@
if (DataRunOffset != -1)
{
/* Normal run. */
- Context->CacheRunStartLCN =
+ Context->CacheRunStartLCN =
Context->CacheRunLastLCN = DataRunOffset;
}
else
@@ -200,7 +200,7 @@
ULONGLONG CurrentOffset;
ULONGLONG ReadLength;
ULONGLONG AlreadyRead;
-
+
if (!Context->Record->IsNonResident)
{
if (Offset > Context->Record->Resident.ValueLength)
@@ -286,7 +286,7 @@
/*
* Go to next run in the list.
*/
-
+
if (*DataRun == 0)
break;
DataRun = NtfsDecodeRun(DataRun, &DataRunOffset, &DataRunLength);
@@ -341,7 +341,7 @@
BOOL NtfsReadMftRecord(ULONG MFTIndex, PNTFS_MFT_RECORD Buffer)
{
ULONGLONG BytesRead;
-
+
BytesRead = NtfsReadAttribute(&NtfsMFTContext, MFTIndex * NtfsMftRecordSize, (PCHAR)Buffer, NtfsMftRecordSize);
if (BytesRead != NtfsMftRecordSize)
return FALSE;
@@ -433,7 +433,7 @@
MmFreeMemory(MftRecord);
return FALSE;
}
-
+
IndexRecord = MmAllocateMemory(NtfsIndexRecordSize);
if (IndexRecord == NULL)
{
@@ -514,7 +514,7 @@
break;
RecordOffset += IndexBlockSize;
}
-
+
if (RecordOffset >= IndexAllocationSize)
{
break;
@@ -533,7 +533,7 @@
while (IndexEntry < IndexEntryEnd &&
!(IndexEntry->Flags & NTFS_INDEX_ENTRY_END))
- {
+ {
if (NtfsCompareFileName(FileName, IndexEntry))
{
DbgPrint((DPRINT_FILESYSTEM, "File found\n"));
@@ -551,7 +551,7 @@
MmFreeMemory(BitmapData);
}
-
+
MmFreeMemory(IndexRecord);
}
else
--- trunk/reactos/boot/freeldr/freeldr/fs/ntfs.h 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/fs/ntfs.h 2005-05-08 02:15:21 UTC (rev 15107)
@@ -57,7 +57,7 @@
#define NTFS_FILE_NAME_POSIX 0
#define NTFS_FILE_NAME_WIN32 1
#define NTFS_FILE_NAME_DOS 2
-#define NTFS_FILE_NAME_WIN32_AND_DOS 3
+#define NTFS_FILE_NAME_WIN32_AND_DOS 3
typedef struct
{
--- trunk/reactos/boot/freeldr/freeldr/include/freeldr.h 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/include/freeldr.h 2005-05-08 02:15:21 UTC (rev 15107)
@@ -37,7 +37,7 @@
#define ROUND_UP(N, S) (((N) + (S) - 1) & ~((S) - 1))
#define ROUND_DOWN(N, S) ((N) & ~((S) - 1))
#define Ke386EraseFlags(x) __asm__ __volatile__("pushl $0 ; popfl\n")
-
+
extern BOOL UserInterfaceUp; /* Tells us if the user interface is displayed */
VOID BootMain(LPSTR CmdLine);
--- trunk/reactos/boot/freeldr/freeldr/include/linux.h 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/include/linux.h 2005-05-08 02:15:21 UTC (rev 15107)
@@ -102,9 +102,9 @@
ULONG Code32Start; // here loaders can put a different
// start address for 32-bit code.
- //
+ //
// 0x1000 = default for zImage
- //
+ //
// 0x100000 = default for big kernel
ULONG RamdiskAddress; // address of loaded ramdisk image
--- trunk/reactos/boot/freeldr/freeldr/include/machine.h 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/include/machine.h 2005-05-08 02:15:21 UTC (rev 15107)
@@ -39,7 +39,7 @@
VOID (*ConsPutChar)(int Ch);
BOOL (*ConsKbHit)(VOID);
int (*ConsGetCh)(VOID);
-
+
VOID (*VideoClearScreen)(UCHAR Attr);
VIDEODISPLAYMODE (*VideoSetDisplayMode)(char *DisplayMode, BOOL Init);
VOID (*VideoGetDisplaySize)(PULONG Width, PULONG Height, PULONG Depth);
--- trunk/reactos/boot/freeldr/freeldr/include/multiboot.h 2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/include/multiboot.h 2005-05-08 02:15:21 UTC (rev 15107)
@@ -1,16 +1,16 @@
/* multiboot.h - the header for Multiboot */
/* Copyright (C) 1999 Free Software Foundation, Inc.
-
+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
@@ -157,48 +157,48 @@
STDCALL
FrLdrCreateModule(LPSTR ModuleName);
-ULONG_PTR
-STDCALL
-FrLdrLoadModule(FILE *ModuleImage,
- LPSTR ModuleName,
+ULONG_PTR
+STDCALL
+FrLdrLoadModule(FILE *ModuleImage,
+ LPSTR ModuleName,
PULONG ModuleSize);
BOOL
STDCALL
FrLdrLoadKernel(PCHAR szFileName,
INT nPos);
-
+
BOOL
-FrLdrLoadNlsFile(PCHAR szSystemRoot,
+FrLdrLoadNlsFile(PCHAR szSystemRoot,
PCHAR szErrorOut);
-
+
BOOL
-FrLdrLoadDriver(PCHAR szFileName,
+FrLdrLoadDriver(PCHAR szFileName,
INT nPos);
BOOL
LoadSymbolFile(PCHAR szSystemRoot,
PCHAR ModuleName,
INT nPos);
-
+
VOID
-FrLdrLoadBootDrivers(PCHAR szSystemRoot,
+FrLdrLoadBootDrivers(PCHAR szSystemRoot,
INT nPos);
-
+
BOOL
STDCALL
-FrLdrCloseModule(ULONG_PTR ModuleBase,
+FrLdrCloseModule(ULONG_PTR ModuleBase,
ULONG dwModuleSize);
VOID
-STDCALL
+STDCALL
FrLdrStartup(ULONG Magic);
-VOID
-FASTCALL
+VOID
+FASTCALL
FrLdrGetKernelBase(VOID);
-VOID
-FASTCALL
+VOID
+FASTCALL
FrLdrSetupPae(ULONG Magic);
VOID
[truncated at 1000 lines; 1866 more skipped]