Merge trunk HEAD (r44067)
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 10 Nov 2009 02:40:48 +0000 (02:40 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 10 Nov 2009 02:40:48 +0000 (02:40 +0000)
svn path=/branches/ros-amd64-bringup/; revision=44069

103 files changed:
1  2 
reactos/base/applications/paint/rsrc.rc
reactos/base/setup/usetup/inffile.c
reactos/base/setup/usetup/inffile.h
reactos/base/setup/usetup/usetup.h
reactos/base/shell/explorer/dialogs/searchprogram.cpp
reactos/base/shell/explorer/explorer.cpp
reactos/base/shell/explorer/shell/filechild.cpp
reactos/base/shell/explorer/shell/mainframe.cpp
reactos/base/shell/explorer/shell/pane.cpp
reactos/base/shell/explorer/shell/shellbrowser.cpp
reactos/base/shell/explorer/taskbar/taskbar.cpp
reactos/base/shell/explorer/taskbar/traynotify.cpp
reactos/base/shell/explorer/utility/utility.cpp
reactos/base/shell/explorer/utility/window.cpp
reactos/base/shell/explorer/utility/window.h
reactos/boot/bootdata/packages/reactos.dff
reactos/boot/freeldr/freeldr/bootmgr.c
reactos/boot/freeldr/freeldr/freeldr_arch.rbuild
reactos/boot/freeldr/freeldr/freeldr_base.rbuild
reactos/boot/freeldr/freeldr/include/arch/amd64/amd64.h
reactos/boot/freeldr/freeldr/include/arch/i386/i386.h
reactos/boot/freeldr/freeldr/include/freeldr.h
reactos/boot/freeldr/freeldr/mm/mm.c
reactos/boot/freeldr/freeldr/options.c
reactos/boot/freeldr/freeldr/windows/winldr.c
reactos/dll/ntdll/rtl/libsupp.c
reactos/dll/win32/acledit/acledit.c
reactos/dll/win32/gdi32/misc/wingl.c
reactos/dll/win32/iphlpapi/resinfo_reactos.c
reactos/dll/win32/kernel32/misc/errormsg.c
reactos/dll/win32/kernel32/thread/thread.c
reactos/dll/win32/odbc32/proxyodbc.c
reactos/dll/win32/odbc32/proxyodbc.h
reactos/dll/win32/shell32/fprop.c
reactos/dll/win32/shell32/she_ocmenu.c
reactos/dll/win32/shell32/shfldr_admintools.c
reactos/dll/win32/shell32/shfldr_netplaces.c
reactos/dll/win32/shell32/shfldr_printers.c
reactos/dll/win32/user32/windows/defwnd.c
reactos/dll/win32/user32/windows/menu.c
reactos/dll/win32/user32/windows/nonclient.c
reactos/dll/win32/wdmaud.drv/wdmaud.c
reactos/dll/win32/wdmaud.drv/wdmaud.rbuild
reactos/drivers/network/afd/afd/main.c
reactos/drivers/network/dd/pcnet/pcnet.c
reactos/drivers/network/tcpip/tcpip/dispatch.c
reactos/drivers/storage/floppy/floppy.c
reactos/drivers/storage/scsiport/scsiport.c
reactos/drivers/video/videoprt/agp.c
reactos/drivers/video/videoprt/int10.c
reactos/drivers/video/videoprt/interrupt.c
reactos/drivers/video/videoprt/resource.c
reactos/drivers/video/videoprt/services.c
reactos/drivers/video/videoprt/videoprt.c
reactos/drivers/wdm/audio/legacy/wdmaud/interface.h
reactos/hal/halamd64/generic/generic.rbuild
reactos/hal/halamd64/generic/halinit.c
reactos/hal/halamd64/generic/systimer.S
reactos/hal/halx86/hal_generic_amd64.rbuild
reactos/hal/halx86/mp/apic.c
reactos/include/ddk/winddk.h
reactos/include/ndk/amd64/asm.h
reactos/include/ndk/amd64/ketypes.h
reactos/include/ndk/i386/ketypes.h
reactos/include/ndk/ldrtypes.h
reactos/include/psdk/commctrl.h
reactos/include/psdk/dsdriver.h
reactos/include/psdk/mmddk.h
reactos/include/psdk/winsock2.h
reactos/include/psdk/winternl.h
reactos/include/reactos/win32k/ntuser.h
reactos/lib/drivers/sound/mmebuddy/midi/midMessage.c
reactos/lib/drivers/sound/mmebuddy/midi/modMessage.c
reactos/lib/drivers/sound/mmebuddy/mixer/mxdMessage.c
reactos/lib/drivers/sound/mmebuddy/wave/widMessage.c
reactos/lib/drivers/sound/mmebuddy/wave/wodMessage.c
reactos/lib/rtl/rtlp.h
reactos/lib/sdk/crt/include/internal/wine/cppexcept.h
reactos/ntoskrnl/ex/init.c
reactos/ntoskrnl/include/internal/arch/intrin_i.h
reactos/ntoskrnl/include/internal/arch/ke.h
reactos/ntoskrnl/include/internal/arch/mm.h
reactos/ntoskrnl/include/internal/ke.h
reactos/ntoskrnl/include/internal/ke_x.h
reactos/ntoskrnl/include/internal/mm.h
reactos/ntoskrnl/kd/kdmain.c
reactos/ntoskrnl/kd64/kdapi.c
reactos/ntoskrnl/kdbg/i386/i386-dis.c
reactos/ntoskrnl/kdbg/kdb_symbols.c
reactos/ntoskrnl/ke/freeldr.c
reactos/ntoskrnl/ke/i386/cpu.c
reactos/ntoskrnl/mm/ARM3/miarm.h
reactos/ntoskrnl/mm/i386/page.c
reactos/ntoskrnl/mm/section.c
reactos/ntoskrnl/mm/sysldr.c
reactos/ntoskrnl/ntoskrnl-generic.rbuild
reactos/ntoskrnl/ntoskrnl.pspec
reactos/ntoskrnl/ps/kill.c
reactos/ntoskrnl/ps/query.c
reactos/ntoskrnl/rtl/libsupp.c
reactos/subsystems/win32/win32k/eng/engwindow.c
reactos/subsystems/win32/win32k/ntuser/misc.c
reactos/tools/rbuild/backend/mingw/mingw.cpp

Simple merge
Simple merge
Simple merge
@@@ -662,14 -661,17 +662,16 @@@ media\sounds\ReactOS_LogOn.wa
  boot\bootdata\bootcdregtest\regtest.cmd             7   optional
  
  ; Subsystems
 -subsystems\win32\csrss\csrss.exe                    1
 -subsystems\win32\csrss\win32csr\win32csr.dll        1
 -subsystems\ntvdm\ntvdm.exe                          1
 -subsystems\win32\win32k\win32k.sys                  1
 +;subsystems\win32\csrss\csrss.exe                    1
 +;subsystems\win32\csrss\win32csr\win32csr.dll        1
 +;subsystems\ntvdm\ntvdm.exe                          1
 +;subsystems\win32\win32k\win32k.sys                  1
  
  ; Optional/proprietary files
 -modules\optional\netkvm2k.inf                       6  optional
 -modules\optional\netkvm2k.cat                       6  optional
 -modules\optional\netkvm.sys                         2  optional
 +modules\optional\kvmnet.inf                         6  optional
 +modules\optional\kvmnet.sys                         2  optional
+ modules\optional\alcxwdm.inf                        6  optional
+ modules\optional\alcxwdm.sys                        2  optional
  modules\optional\mfc42.dll                          1  optional
  modules\optional\mfc42u.dll                         1  optional
  modules\optional\mfc71.dll                          1  optional
@@@ -143,8 -140,8 +140,8 @@@ VOID RunLoader(VOID
                        // to have different install methods, etc.
                        LoadReactOSSetup();
                }
 -#ifdef __i386__
 +#if defined(__i386__) || defined(__x86_64__)
-               else if (_stricmp(SettingValue, "ReactOSSetup2") == 0)
+               else if (_stricmp(BootType, "ReactOSSetup2") == 0)
                {
                        // WinLdr-style boot
                        LoadReactOSSetup2();
Simple merge
@@@ -102,16 -113,6 +113,7 @@@ VOID DoOptionsMenu(VOID
        case REBOOT:
                OptionMenuReboot();
                break;
 -      }
+ #endif
 +      }
  }
- VOID OptionMenuReboot(VOID)
- {
-       UiMessageBox("The system will now reboot.");
- #ifdef __i386__
-       DiskStopFloppyMotor();
-       SoftReboot();
- #else
- #endif
- }
 +
Simple merge
@@@ -14,9 -14,9 +14,9 @@@
   *
   * You should have received a copy of the GNU Lesser General Public
   * License along with this library; if not, write to the Free Software
-  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
   */
 -/* $Id: acledit.c 35011 2008-08-01 16:29:40Z sginsberg $
 +/* $Id$
   *
   * PROJECT:         ReactOS Access Control List Editor
   * FILE:            lib/acledit/acledit.c
Simple merge
@@@ -651,33 -651,32 +651,37 @@@ SetThreadPriorityBoost(IN HANDLE hThrea
  /*
   * @implemented
   */
- BOOL WINAPI
+ BOOL
+ WINAPI
  GetThreadSelectorEntry(IN HANDLE hThread,
-                      IN DWORD dwSelector,
-                      OUT LPLDT_ENTRY lpSelectorEntry)
+                        IN DWORD dwSelector,
+                        OUT LPLDT_ENTRY lpSelectorEntry)
  {
-   DESCRIPTOR_TABLE_ENTRY DescriptionTableEntry;
-   NTSTATUS Status;
-   DescriptionTableEntry.Selector = dwSelector;
-   Status = NtQueryInformationThread(hThread,
-                                     ThreadDescriptorTableEntry,
-                                     &DescriptionTableEntry,
-                                     sizeof(DESCRIPTOR_TABLE_ENTRY),
-                                     NULL);
-   if(!NT_SUCCESS(Status))
-   {
-     SetLastErrorByStatus(Status);
-     return FALSE;
-   }
 +#ifdef _M_IX86
+     DESCRIPTOR_TABLE_ENTRY DescriptionTableEntry;
+     NTSTATUS Status;
  
-   *lpSelectorEntry = DescriptionTableEntry.Descriptor;
-   return TRUE;
+     /* Set the selector and do the query */
+     DescriptionTableEntry.Selector = dwSelector;
+     Status = NtQueryInformationThread(hThread,
+                                       ThreadDescriptorTableEntry,
+                                       &DescriptionTableEntry,
+                                       sizeof(DESCRIPTOR_TABLE_ENTRY),
+                                       NULL);
+     if (!NT_SUCCESS(Status))
+     {
+         /* Fail */
+         SetLastErrorByStatus(Status);
+         return FALSE;
+     }
+     /* Success, return the selector */
+     *lpSelectorEntry = DescriptionTableEntry.Descriptor;
+     return TRUE;
 +#else
 +    DPRINT1("Calling GetThreadSelectorEntry!\n");
 +    return FALSE;
 +#endif
  }
  
  /*
   *
   * You should have received a copy of the GNU Lesser General Public
   * License along with this library; if not, write to the Free Software
-  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
   *
   * NOTES:
 - *   Proxy ODBC driver manager.  This manager delegates all ODBC
 - *   calls to a real ODBC driver manager named by the environment
 + *   Proxy ODBC driver manager.  This manager delegates all ODBC 
 + *   calls to a real ODBC driver manager named by the environment 
   *   variable LIB_ODBC_DRIVER_MANAGER, or to libodbc.so if the
   *   variable is not set.
   *
Simple merge
Simple merge
@@@ -449,10 -448,10 +448,10 @@@ StoreNewSettings(LPCWSTR szFileName, WC
      }
  
      /* insert the entry */
 -    result = (*AddMRUStringW)((HANDLE)hList, szAppName);
 +    result = (*AddMRUStringW)(hList, szAppName);
  
      /* close mru list */
-     (*FreeMRUList)(hList);
+     (*FreeMRUListProc)((HANDLE)hList);
      /* create mru list key */
      RegCloseKey(hKey);
  }
Simple merge
Simple merge
@@@ -11,6 -10,6 +11,7 @@@
                <file>misc.c</file>
                <file>mps.S</file>
                <file>systimer.S</file>
++              <file>usage.c</file>
                <pch>../include/hal.h</pch>
        </module>
  </group>
@@@ -130,8 -130,8 +130,8 @@@ DPRINT1("HalInitSystem 6\n")
      }
      else if (BootPhase == 1)
      {
--        /* Initialize the default HAL stubs for bus handling functions */
--        HalpInitNonBusHandler();
++        /* Initialize bus handlers */
++        //HalpInitBusHandler();
  
          /* Enable the clock interrupt */
          PKIDTENTRY64 IdtEntry = &((PKIPCR)KeGetPcr())->IdtBase[0x30];
@@@ -17,12 -17,12 +17,38 @@@ _HalpLastPerfCounterLow:    .long 
  _HalpLastPerfCounterHigh:   .long 0
  _HalpPerfCounterLow:        .long 0
  _HalpPerfCounterHigh:       .long 0
++_HalpSystemHardwareFlags:   .long 0
  
  _UnhandledMsg:
      .asciz "\n\x7\x7!!! Unhandled or Unexpected Code at line: %lx!!!\n"
  
  /* FUNCTIONS *****************************************************************/
  
++.global _HalpReleaseCmosSpinLock
++.func HalpReleaseCmosSpinLock
++_HalpReleaseCmosSpinLock:
++
++.endfunc
++
++.global _HalpAcquireSystemHardwareSpinLock
++.func HalpAcquireSystemHardwareSpinLock
++_HalpAcquireSystemHardwareSpinLock:
++
++.endfunc
++
++.global _HalpCalibrateStallExecution@0
++.func HalpCalibrateStallExecution@0
++_HalpCalibrateStallExecution@0:
++
++.endfunc
++
++.globl _HalpProfileInterrupt
++.func HalpProfileInterrupt
++_HalpProfileInterrupt:
++
++.endfunc
++
++
  .globl _KeStallExecutionProcessor
  .func KeStallExecutionProcessor
  _KeStallExecutionProcessor:
@@@ -4,16 -4,21 +4,22 @@@
        <module name="hal_generic_amd64" type="objectlibrary">
                <include>include</include>
                <include base="ntoskrnl">include</include>
 +              <define name="_DISABLE_TIDENTS" />
                <define name="_NTHAL_" />
                <directory name="generic">
+                       <directory name="bus">
+                               <file>bushndlr.c</file>
+                               <file>isabus.c</file>
+                               <file>halbus.c</file>
++                              <file>pcibus.c</file>
+                               <file>pcidata.c</file>
+                               <file>sysbus.c</file>
+                       </directory>
                        <file>beep.c</file>
-                       <file>bus.c</file>
                        <file>cmos.c</file>
                        <file>dma.c</file>
                        <file>drive.c</file>
                        <file>display.c</file>
--                      <file>pci.c</file>
                        <file>profil.c</file>
                        <file>reboot.c</file>
                        <file>sysinfo.c</file>
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -9,16 -9,16 +9,16 @@@
  /* INCLUDES *****************************************************************/
  
  #include <ntoskrnl.h>
//#define NDEBUG
+ #define NDEBUG
  #include <debug.h>
  
- #ifdef _M_PPC
+ #if defined(_PPC_)
  #include <ppcmmu/mmu.h>
  #define KERNEL_RVA(x) RVA(x,0x80800000)
 -#define KERNEL_DESCRIPTOR_PAGE(x) (((ULONG_PTR)x + KernelBase) >> PAGE_SHIFT)
 +#define KERNEL_DESCRIPTOR_PAGE(x) (((ULONG_PTR)(x) + KernelBase) >> PAGE_SHIFT)
  #else
  #define KERNEL_RVA(x) RVA(x,KSEG0_BASE)
 -#define KERNEL_DESCRIPTOR_PAGE(x) (((ULONG_PTR)x &~ KSEG0_BASE) >> PAGE_SHIFT)
 +#define KERNEL_DESCRIPTOR_PAGE(x) (((ULONG_PTR)(x) & ~KSEG0_BASE) >> PAGE_SHIFT)
  #endif
  
  typedef struct _BIOS_MEMORY_DESCRIPTOR
  
  /* GLOBALS *******************************************************************/
  
 +/* Function pointer for early debug prints */
 +ULONG (*FrLdrDbgPrint)(const char *Format, ...);
 +
  /* FreeLDR Loader Data */
  PROS_LOADER_PARAMETER_BLOCK KeRosLoaderBlock;
- BOOLEAN AcpiTableDetected = FALSE;
  ADDRESS_RANGE KeMemoryMap[64];
  ULONG KeMemoryMapRangeCount;
  
@@@ -952,7 -974,7 +977,7 @@@ KiRosFrldrLpbToNtLpb(IN PROS_LOADER_PAR
      /* Build entries for ReactOS memory ranges, which uses ARC Descriptors */
      KiRosBuildOsMemoryMap();
  
- #if defined(_M_IX86) || defined(_M_AMD64)
 -#if defined(_X86_)
++#if defined(_X86_) || defined(_M_AMD64)
      /* Build entries for the reserved map, which uses ARC Descriptors */
      KiRosBuildReservedMemoryMap();
  #endif
Simple merge
@@@ -89,9 -86,12 +90,12 @@@ typedef struct _POOL_HEADE
  // Everything depends on this
  //
  C_ASSERT(sizeof(POOL_HEADER) == 8);
 -C_ASSERT(sizeof(POOL_HEADER) == sizeof(LIST_ENTRY));
 +//C_ASSERT(sizeof(POOL_HEADER) == sizeof(LIST_ENTRY));
  
+ extern ULONG ExpNumberOfPagedPools;
  extern POOL_DESCRIPTOR NonPagedPoolDescriptor;
+ extern PPOOL_DESCRIPTOR ExpPagedPoolDescriptor[16 + 1];
+ extern PVOID PoolTrackTable;
  
  //
  // END FIXFIX
@@@ -155,11 -155,17 +159,17 @@@ extern PVOID MmPagedPoolStart
  extern PVOID MmPagedPoolEnd;
  extern PVOID MmNonPagedSystemStart;
  extern PVOID MiSystemViewStart;
 -extern ULONG MmSystemViewSize;
 +extern ULONG_PTR MmSystemViewSize;
  extern PVOID MmSessionBase;
  extern PVOID MiSessionSpaceEnd;
 -extern ULONG MmSizeOfPagedPoolInBytes;
 +extern ULONG_PTR MmSizeOfPagedPoolInBytes;
  extern PMMPTE MmSystemPagePtes;
+ extern PVOID MmSystemCacheStart;
+ extern PVOID MmSystemCacheEnd;
+ extern MMSUPPORT MmSystemCacheWs;
+ extern SIZE_T MmAllocatedNonPagedPool;
+ extern ULONG_PTR MmSubsectionBase;
+ extern ULONG MmSpecialPoolTag;
  
  NTSTATUS
  NTAPI
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge