mirror of
https://github.com/reactos/reactos.git
synced 2025-05-31 23:18:39 +00:00
- Do massive renames in the ntoskrnl tree to make sure we don't have multiple files with the same name (this makes msvc very, very, sad).
- Add _IN_KERNEL_ define for WDK compatibility when using resstr.h - The entire kernel can now be compiled with MSVC (read this sentence carefully before throwing out the champagne). svn path=/trunk/; revision=25954
This commit is contained in:
parent
e48040833f
commit
7815967299
27 changed files with 32 additions and 26 deletions
|
@ -244,8 +244,8 @@ KdPowerTransition(ULONG PowerState)
|
|||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
VOID
|
||||
STDCALL
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
KdChangeOption(IN KD_OPTION Option,
|
||||
IN ULONG InBufferLength OPTIONAL,
|
||||
IN PVOID InBuffer,
|
||||
|
@ -254,6 +254,7 @@ KdChangeOption(IN KD_OPTION Option,
|
|||
OUT PULONG OutBufferRequiredLength OPTIONAL)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
return STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -606,9 +606,9 @@ KiGetMachineBootPointers(IN PKGDTENTRY *Gdt,
|
|||
IN PKIPCR *Pcr,
|
||||
IN PKTSS *Tss)
|
||||
{
|
||||
KDESCRIPTOR GdtDescriptor = {0}, IdtDescriptor;
|
||||
KDESCRIPTOR GdtDescriptor = {0}, IdtDescriptor = {0};
|
||||
KGDTENTRY TssSelector, PcrSelector;
|
||||
USHORT Tr, Fs;
|
||||
USHORT Tr = 0, Fs;
|
||||
|
||||
/* Get GDT and IDT descriptors */
|
||||
Ke386GetGlobalDescriptorTable(GdtDescriptor);
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/* $Id$
|
||||
*/
|
||||
#include <ntoskrnl.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
* PROGRAMMERS: No programmer listed.
|
||||
*/
|
||||
|
||||
#include <ntoskrnl.h>
|
||||
#define __ELF_WORD_SIZE 32
|
||||
#include "elf.inc.h"
|
||||
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
*
|
||||
* PROGRAMMERS: No programmer listed.
|
||||
*/
|
||||
|
||||
#include <ntoskrnl.h>
|
||||
#define __ELF_WORD_SIZE 64
|
||||
#include "elf.inc.h"
|
||||
|
|
|
@ -406,7 +406,11 @@ MmInsertRmap(PFN_TYPE Page, PEPROCESS Process,
|
|||
new_entry->Address = Address;
|
||||
new_entry->Process = (PEPROCESS)Process;
|
||||
#ifdef DBG
|
||||
#ifdef _GNUC_
|
||||
new_entry->Caller = __builtin_return_address(0);
|
||||
#else
|
||||
new_entry->Caller = _ReturnAddress();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (MmGetPfnForProcess(Process, Address) != Page)
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
<define name="__NO_CTYPE_INLINES" />
|
||||
<define name="__USE_W32API" />
|
||||
<define name="WIN9X_COMPAT_SPINLOCK" />
|
||||
<define name="_IN_KERNEL_" />
|
||||
<include base="cmlib">.</include>
|
||||
<include base="ntoskrnl">include</include>
|
||||
<include base="ReactOS">include/reactos/drivers</include>
|
||||
|
@ -32,14 +33,14 @@
|
|||
<file>abios.c</file>
|
||||
<file>cpu.c</file>
|
||||
<file>ctxswitch.S</file>
|
||||
<file>clock.S</file>
|
||||
<file>exp.c</file>
|
||||
<file>irq.c</file>
|
||||
<file>irqobj.c</file>
|
||||
<file>kiinit.c</file>
|
||||
<file>ldt.c</file>
|
||||
<file>mtrr.c</file>
|
||||
<file>patpge.c</file>
|
||||
<file>thread.c</file>
|
||||
<file>systimer.S</file>
|
||||
<file>thrdini.c</file>
|
||||
<file>trap.s</file>
|
||||
<file>usercall_asm.S</file>
|
||||
<file>usercall.c</file>
|
||||
|
@ -54,7 +55,7 @@
|
|||
<file>config.c</file>
|
||||
<file>devqueue.c</file>
|
||||
<file>dpc.c</file>
|
||||
<file>event.c</file>
|
||||
<file>eventobj.c</file>
|
||||
<file>except.c</file>
|
||||
<file>freeldr.c</file>
|
||||
<file>gate.c</file>
|
||||
|
@ -62,14 +63,14 @@
|
|||
<file>ipi.c</file>
|
||||
<file>krnlinit.c</file>
|
||||
<file>mutex.c</file>
|
||||
<file>process.c</file>
|
||||
<file>profile.c</file>
|
||||
<file>procobj.c</file>
|
||||
<file>profobj.c</file>
|
||||
<file>queue.c</file>
|
||||
<file>sem.c</file>
|
||||
<file>semphobj.c</file>
|
||||
<file>spinlock.c</file>
|
||||
<file>thrdschd.c</file>
|
||||
<file>thrdobj.c</file>
|
||||
<file>timer.c</file>
|
||||
<file>timerobj.c</file>
|
||||
<file>wait.c</file>
|
||||
</directory>
|
||||
<directory name="cc">
|
||||
|
@ -116,7 +117,7 @@
|
|||
</directory>
|
||||
<directory name="dbgk">
|
||||
<file>dbgkutil.c</file>
|
||||
<file>debug.c</file>
|
||||
<file>dbgkobj.c</file>
|
||||
</directory>
|
||||
<directory name="ex">
|
||||
<if property="ARCH" value="i386">
|
||||
|
@ -129,23 +130,23 @@
|
|||
<file>atom.c</file>
|
||||
<file>callback.c</file>
|
||||
<file>dbgctrl.c</file>
|
||||
<file>error.c</file>
|
||||
<file>efi.c</file>
|
||||
<file>event.c</file>
|
||||
<file>evtpair.c</file>
|
||||
<file>fmutex.c</file>
|
||||
<file>handle.c</file>
|
||||
<file>harderr.c</file>
|
||||
<file>init.c</file>
|
||||
<file>keyedevt.c</file>
|
||||
<file>locale.c</file>
|
||||
<file>lookas.c</file>
|
||||
<file>mutant.c</file>
|
||||
<file>power.c</file>
|
||||
<file>pushlock.c</file>
|
||||
<file>profile.c</file>
|
||||
<file>resource.c</file>
|
||||
<file>rundown.c</file>
|
||||
<file>sem.c</file>
|
||||
<file>shutdown.c</file>
|
||||
<file>sysinfo.c</file>
|
||||
<file>time.c</file>
|
||||
<file>timer.c</file>
|
||||
|
@ -192,21 +193,21 @@
|
|||
<file>driver.c</file>
|
||||
<file>drvrlist.c</file>
|
||||
<file>error.c</file>
|
||||
<file>event.c</file>
|
||||
<file>file.c</file>
|
||||
<file>iocomp.c</file>
|
||||
<file>ioevent.c</file>
|
||||
<file>iofunc.c</file>
|
||||
<file>iomdl.c</file>
|
||||
<file>iomgr.c</file>
|
||||
<file>iorsrce.c</file>
|
||||
<file>iotimer.c</file>
|
||||
<file>iowork.c</file>
|
||||
<file>irp.c</file>
|
||||
<file>irq.c</file>
|
||||
<file>mdl.c</file>
|
||||
<file>rawfs.c</file>
|
||||
<file>remlock.c</file>
|
||||
<file>resource.c</file>
|
||||
<file>util.c</file>
|
||||
<file>symlink.c</file>
|
||||
<file>timer.c</file>
|
||||
<file>volume.c</file>
|
||||
</directory>
|
||||
<directory name="pnpmgr">
|
||||
|
@ -252,9 +253,8 @@
|
|||
<file>iospace.c</file>
|
||||
<file>kmap.c</file>
|
||||
<file>marea.c</file>
|
||||
<file>mdl.c</file>
|
||||
<file>mdlsup.c</file>
|
||||
<file>mm.c</file>
|
||||
<file>process.c</file>
|
||||
<file>mminit.c</file>
|
||||
<file>mpw.c</file>
|
||||
<file>ncache.c</file>
|
||||
|
@ -268,6 +268,7 @@
|
|||
<file>physical.c</file>
|
||||
<file>pool.c</file>
|
||||
<file>ppool.c</file>
|
||||
<file>procsup.c</file>
|
||||
<file>region.c</file>
|
||||
<file>rmap.c</file>
|
||||
<file>section.c</file>
|
||||
|
@ -287,7 +288,7 @@
|
|||
<file>obref.c</file>
|
||||
<file>sdcache.c</file>
|
||||
<file>obsecure.c</file>
|
||||
<file>symlink.c</file>
|
||||
<file>oblink.c</file>
|
||||
<file>obwait.c</file>
|
||||
</directory>
|
||||
<directory name="po">
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
//#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
NTSTATUS CALLBACK
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
PopAddRemoveSysCapsCallback(
|
||||
IN PVOID NotificationStructure,
|
||||
IN PVOID Context)
|
||||
|
|
Loading…
Reference in a new issue