[NTOS]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 11 Oct 2014 13:43:02 +0000 (13:43 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 11 Oct 2014 13:43:02 +0000 (13:43 +0000)
* Set the base address to 0x00800000 only in gdb mode, otherwise use the correct one.

svn path=/trunk/; revision=64667

reactos/ntoskrnl/CMakeLists.txt

index 7f5a1d8..86d62e7 100644 (file)
@@ -30,7 +30,11 @@ set_subsystem(ntoskrnl native)
 if(MSVC)
     set_image_base(ntoskrnl 0x00400000)
 else()
-    set_image_base(ntoskrnl 0x00800000)
+    if(GDB)
+        set_image_base(ntoskrnl 0x00800000)
+    else()
+        set_image_base(ntoskrnl 0x80800000)
+    endif()
 endif()
 
 target_link_libraries(ntoskrnl