Author: tkreuzer
Date: Thu Jul 24 14:09:03 2008
New Revision: 34748
URL:
http://svn.reactos.org/svn/reactos?rev=34748&view=rev
Log:
- remove ip and oskittcp from build
- add fastfat to build
- add PLATFORM property "PC" also to i386 rbuild file to allow sharing of
related code between i386 and amd64
- disable a few debug channels in freeldr
- winnt.h: add IMAGE_REL_BASED_MIPS_JMPADDR16, IMAGE_REL_BASED_IA64_IMM64 and
IMAGE_REL_BASED_DIR64, the latter used for PE64 relocation
- rtl: implement case IMAGE_REL_BASED_DIR64 in LdrProcessRelocationBlockLongLong
- rtl: add SWAPQ macro for _PPC and fix macros SWAP macros for other architectures
(remember: always put a macro argument in brackets)
Status: setupldr now loads a few files and finally wants to load fastfat.sys. But it fails
when it comes to imports from ntoskrnl, no wonder we don't have an ntoskrnl yet...
Modified:
branches/ros-amd64-bringup/reactos/ReactOS-amd64.rbuild
branches/ros-amd64-bringup/reactos/ReactOS-i386.rbuild
branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/debug.c
branches/ros-amd64-bringup/reactos/include/psdk/winnt.h
branches/ros-amd64-bringup/reactos/lib/drivers/directory.rbuild
branches/ros-amd64-bringup/reactos/lib/rtl/image.c
branches/ros-amd64-bringup/reactos/lib/rtl/rtlp.h
Modified: branches/ros-amd64-bringup/reactos/ReactOS-amd64.rbuild
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/React…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ReactOS-amd64.rbuild [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ReactOS-amd64.rbuild [iso-8859-1] Thu Jul 24
14:09:03 2008
@@ -90,7 +90,7 @@
<!-- directory name="dll">
<xi:include href="dll/dll.rbuild" />
</directory -->
-<!--
+
<directory name="drivers">
<directory name="base">
<directory name="bootvid">
@@ -100,12 +100,17 @@
<xi:include href="drivers/base/kdcom/kdcom.rbuild" />
</directory>
</directory>
+ <directory name="filesystems">
+ <directory name="fastfat">
+ <xi:include href="drivers/filesystems/fastfat/vfatfs.rbuild" />
+ </directory>
+ </directory>
</directory>
<directory name="hal">
<xi:include href="hal/hal.rbuild" />
</directory>
--->
+
<directory name="include">
<xi:include href="include/directory.rbuild" />
</directory>
Modified: branches/ros-amd64-bringup/reactos/ReactOS-i386.rbuild
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/React…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ReactOS-i386.rbuild [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ReactOS-i386.rbuild [iso-8859-1] Thu Jul 24
14:09:03 2008
@@ -14,6 +14,7 @@
<define name="__i386__" />
<property name="NTOSKRNL_SHARED" value="-file-alignment=0x1000
-section-alignment=0x1000 -shared"/>
+ <property name="PLATFORM" value="PC"/>
<if property="OPTIMIZE" value="1">
<compilerflag>-Os</compilerflag>
Modified: branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/debug.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/boot/…
==============================================================================
--- branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/debug.c [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/debug.c [iso-8859-1] Thu Jul
24 14:09:03 2008
@@ -23,10 +23,10 @@
#ifdef DBG
-#define DEBUG_ALL
+//#define DEBUG_ALL
//#define DEBUG_INIFILE
//#define DEBUG_REACTOS
-//#define DEBUG_CUSTOM
+#define DEBUG_CUSTOM
//#define DEBUG_NONE
#if defined (DEBUG_ALL)
@@ -38,8 +38,9 @@
#elif defined (DEBUG_REACTOS)
ULONG DebugPrintMask = DPRINT_REACTOS | DPRINT_REGISTRY;
#elif defined (DEBUG_CUSTOM)
-ULONG DebugPrintMask = DPRINT_WARNING | DPRINT_MEMORY |
- DPRINT_REACTOS | DPRINT_WINDOWS | DPRINT_HWDETECT;
+ULONG DebugPrintMask = DPRINT_WARNING |
+ DPRINT_UI | DPRINT_CACHE | DPRINT_REACTOS |
+ DPRINT_LINUX;
#else //#elif defined (DEBUG_NONE)
ULONG DebugPrintMask = 0;
#endif
Modified: branches/ros-amd64-bringup/reactos/include/psdk/winnt.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/inclu…
==============================================================================
--- branches/ros-amd64-bringup/reactos/include/psdk/winnt.h [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/include/psdk/winnt.h [iso-8859-1] Thu Jul 24
14:09:03 2008
@@ -1539,6 +1539,9 @@
#define IMAGE_REL_BASED_HIGHLOW 3
#define IMAGE_REL_BASED_HIGHADJ 4
#define IMAGE_REL_BASED_MIPS_JMPADDR 5
+#define IMAGE_REL_BASED_MIPS_JMPADDR16 9
+#define IMAGE_REL_BASED_IA64_IMM64 9
+#define IMAGE_REL_BASED_DIR64 10
#define IMAGE_ARCHIVE_START_SIZE 8
#define IMAGE_ARCHIVE_START "!<arch>\n"
#define IMAGE_ARCHIVE_END "`\n"
Modified: branches/ros-amd64-bringup/reactos/lib/drivers/directory.rbuild
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/d…
==============================================================================
--- branches/ros-amd64-bringup/reactos/lib/drivers/directory.rbuild [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/lib/drivers/directory.rbuild [iso-8859-1] Thu Jul
24 14:09:03 2008
@@ -4,12 +4,14 @@
<directory name="csq">
<xi:include href="csq/csq.rbuild" />
</directory>
+<!--
<directory name="ip">
<xi:include href="ip/ip.rbuild" />
</directory>
<directory name="oskittcp">
<xi:include href="oskittcp/oskittcp.rbuild" />
</directory>
+-->
<directory name="chew">
<xi:include href="chew/chew.rbuild" />
</directory>
Modified: branches/ros-amd64-bringup/reactos/lib/rtl/image.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/r…
==============================================================================
--- branches/ros-amd64-bringup/reactos/lib/rtl/image.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/lib/rtl/image.c [iso-8859-1] Thu Jul 24 14:09:03
2008
@@ -175,6 +175,7 @@
USHORT i;
PUSHORT ShortPtr;
PULONG LongPtr;
+ PULONGLONG LongLongPtr;
for (i = 0; i < Count; i++)
{
@@ -212,6 +213,11 @@
*LongPtr = SWAPD(*LongPtr) + (ULONG)Delta;
break;
+ case IMAGE_REL_BASED_DIR64:
+ LongLongPtr = (PUINT64)RVA(Address, Offset);
+ *LongLongPtr = SWAPQ(*LongLongPtr) + Delta;
+ break;
+
case IMAGE_REL_BASED_HIGHADJ:
case IMAGE_REL_BASED_MIPS_JMPADDR:
default:
Modified: branches/ros-amd64-bringup/reactos/lib/rtl/rtlp.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/r…
==============================================================================
--- branches/ros-amd64-bringup/reactos/lib/rtl/rtlp.h [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/lib/rtl/rtlp.h [iso-8859-1] Thu Jul 24 14:09:03
2008
@@ -19,9 +19,11 @@
#ifdef _PPC_
#define SWAPD(x)
((((x)&0xff)<<24)|(((x)&0xff00)<<8)|(((x)>>8)&0xff00)|(((x)>>24)&0xff))
#define SWAPW(x) ((((x)&0xff)<<8)|(((x)>>8)&0xff))
+#define SWAPQ(x) ((SWAPD((x)&0xffffffff) << 32) | (SWAPD((x)>>32)))
#else
-#define SWAPD(x) x
-#define SWAPW(x) x
+#define SWAPD(x) (x)
+#define SWAPW(x) (x)
+#define SWAPQ(x) (x)
#endif
VOID