[ros-diffs] [sginsberg] 35435: - Fix freeldr build

sginsberg at svn.reactos.org sginsberg at svn.reactos.org
Mon Aug 18 19:38:39 CEST 2008


Author: sginsberg
Date: Mon Aug 18 12:38:38 2008
New Revision: 35435

URL: http://svn.reactos.org/svn/reactos?rev=35435&view=rev
Log:
- Fix freeldr build

Modified:
    trunk/reactos/boot/freeldr/freeldr/arch/i386/loader.c
    trunk/reactos/boot/freeldr/freeldr/include/freeldr.h

Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/loader.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/i386/loader.c?rev=35435&r1=35434&r2=35435&view=diff
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/loader.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/loader.c [iso-8859-1] Mon Aug 18 12:38:38 2008
@@ -96,7 +96,7 @@
     __writecr3(PageDirectoryBaseAddress);
 
     /* Enable Paging and Write Protect*/
-    __writecr0(__readcr0() | X86_CR0_PG | X86_CR0_WP);
+    __writecr0(__readcr0() | CR0_PG | CR0_WP);
 
     /* Jump to Kernel */
     (*KernelEntryPoint)(Magic, &LoaderBlock);

Modified: trunk/reactos/boot/freeldr/freeldr/include/freeldr.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/include/freeldr.h?rev=35435&r1=35434&r2=35435&view=diff
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/include/freeldr.h [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/include/freeldr.h [iso-8859-1] Mon Aug 18 12:38:38 2008
@@ -47,6 +47,7 @@
 #include <video.h>
 #include <ramdisk.h>
 /* NDK, needed for ReactOS/Windows loaders */
+#include <ndk/asm.h>
 #include <ndk/rtlfuncs.h>
 #include <ndk/ldrtypes.h>
 #include <reactos.h>



More information about the Ros-diffs mailing list