mirror of
https://github.com/reactos/reactos.git
synced 2024-07-19 10:56:09 +00:00
Build HAL with NDK
svn path=/trunk/; revision=16253
This commit is contained in:
parent
7f2ec8aa5d
commit
758ab5ab61
|
@ -17,10 +17,6 @@
|
|||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
/* Hmm, needed for KDBG := 1. Why? */
|
||||
extern POBJECT_TYPE IMPORTED IoAdapterObjectType;
|
||||
#undef KeGetCurrentIrql
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
/* NOTE: IoAllocateAdapterChannel in NTOSKRNL.EXE */
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
<file>sysinfo.c</file>
|
||||
<file>time.c</file>
|
||||
<file>timer.c</file>
|
||||
<pch>../include/hal.h</pch>
|
||||
</module>
|
||||
<module name="hal_generic_up" type="objectlibrary">
|
||||
<include base="hal_generic_up">../include</include>
|
||||
|
|
|
@ -54,7 +54,7 @@ HalReboot (VOID)
|
|||
|
||||
VOID STDCALL
|
||||
HalReturnToFirmware (
|
||||
ULONG Action
|
||||
FIRMWARE_REENTRY Action
|
||||
)
|
||||
{
|
||||
if (Action == HalHaltRoutine)
|
||||
|
|
|
@ -8,21 +8,17 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
/* SDK/DDK/NDK Headers. */
|
||||
/* IFS/DDK/NDK Headers */
|
||||
#include <ddk/ntddk.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/* FIXME: NDK Headers */
|
||||
#include <roskrnl.h>
|
||||
#include <ddk/ntifs.h>
|
||||
#include <ndk/ntndk.h>
|
||||
|
||||
/* Internal Kernel Headers */
|
||||
//#include <internal/mm.h>
|
||||
#include <internal/ke.h>
|
||||
#include <internal/i386/ps.h>
|
||||
|
||||
#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
|
||||
|
||||
//Temporary hack below.
|
||||
//Temporary hack below until ntoskrnl is on NDK
|
||||
PVOID STDCALL
|
||||
MmAllocateContiguousAlignedMemory(IN ULONG NumberOfBytes,
|
||||
IN PHYSICAL_ADDRESS LowestAcceptableAddress,
|
||||
|
@ -31,25 +27,6 @@ MmAllocateContiguousAlignedMemory(IN ULONG NumberOfBytes,
|
|||
IN MEMORY_CACHING_TYPE CacheType OPTIONAL,
|
||||
IN ULONG Alignment);
|
||||
|
||||
/* FIXME: NDK */
|
||||
VOID STDCALL KeEnterKernelDebugger (VOID);
|
||||
VOID FASTCALL KiAcquireSpinLock(PKSPIN_LOCK SpinLock);
|
||||
VOID FASTCALL KiReleaseSpinLock(PKSPIN_LOCK SpinLock);
|
||||
VOID STDCALL KiDispatchInterrupt(VOID);
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
ObCreateObject (
|
||||
IN KPROCESSOR_MODE ObjectAttributesAccessMode OPTIONAL,
|
||||
IN POBJECT_TYPE ObjectType,
|
||||
IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
|
||||
IN KPROCESSOR_MODE AccessMode,
|
||||
IN OUT PVOID ParseContext OPTIONAL,
|
||||
IN ULONG ObjectSize,
|
||||
IN ULONG PagedPoolCharge OPTIONAL,
|
||||
IN ULONG NonPagedPoolCharge OPTIONAL,
|
||||
OUT PVOID *Object
|
||||
);
|
||||
|
||||
/* Internal HAL Headers */
|
||||
#include "apic.h"
|
||||
#include "bus.h"
|
||||
|
@ -58,14 +35,7 @@ ObCreateObject (
|
|||
#include "mps.h"
|
||||
#include "ioapic.h"
|
||||
|
||||
/* Helper Macros FIXME: NDK */
|
||||
#define ROUNDUP(a,b) ((((a)+(b)-1)/(b))*(b))
|
||||
#define ROUND_DOWN(N, S) ((N) - ((N) % (S)))
|
||||
#ifndef HIWORD
|
||||
#define HIWORD(l) ((WORD)(((DWORD)(l) >> 16) & 0xFFFF))
|
||||
#endif
|
||||
#ifndef LOWORD
|
||||
#define LOWORD(l) ((WORD)(l))
|
||||
#endif
|
||||
/* Helper Header */
|
||||
#include <reactos/helper.h>
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -15,4 +15,5 @@
|
|||
<file>part_xbox.c</file>
|
||||
<file>pci_xbox.c</file>
|
||||
<file>halxbox.rc</file>
|
||||
<pch>../include/hal.h</pch>
|
||||
</module>
|
||||
|
|
Loading…
Reference in a new issue