mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
First fixes to support fastcall:
- moved FILETIME - removed inclusion of <windows.h> from ntoskrnl - fixed typos svn path=/trunk/; revision=1990
This commit is contained in:
parent
c79b121347
commit
93eeaf2b3e
7 changed files with 48 additions and 57 deletions
|
@ -155,6 +155,12 @@ typedef union _ULARGE_INTEGER
|
|||
ULONGLONG QuadPart;
|
||||
} ULARGE_INTEGER, *PULARGE_INTEGER;
|
||||
|
||||
typedef struct _FILETIME
|
||||
{
|
||||
DWORD dwLowDateTime;
|
||||
DWORD dwHighDateTime;
|
||||
} FILETIME, *LPFILETIME, *PFILETIME;
|
||||
|
||||
#define CONST const
|
||||
|
||||
#ifdef i386
|
||||
|
|
|
@ -293,11 +293,6 @@ typedef struct _browseinfo {
|
|||
int iImage;
|
||||
} BROWSEINFO, *PBROWSEINFO, *LPBROWSEINFO;
|
||||
|
||||
typedef struct _FILETIME {
|
||||
DWORD dwLowDateTime;
|
||||
DWORD dwHighDateTime;
|
||||
} FILETIME, *LPFILETIME, *PFILETIME;
|
||||
|
||||
typedef struct _BY_HANDLE_FILE_INFORMATION {
|
||||
DWORD dwFileAttributes;
|
||||
FILETIME ftCreationTime;
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#ifndef __INCLUDE_CM_H
|
||||
#define __INCLUDE_CM_H
|
||||
|
||||
#include <windows.h>
|
||||
#include <ddk/ntddk.h>
|
||||
#include <internal/config.h>
|
||||
#include <internal/ob.h>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: fmutex.c,v 1.9 2001/03/16 18:11:21 dwelch Exp $
|
||||
/* $Id: fmutex.c,v 1.10 2001/06/20 12:57:32 ekohl Exp $
|
||||
*
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: ntoskrnl/ex/fmutex.c
|
||||
|
@ -36,7 +36,7 @@
|
|||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
VOID FASTCALL EXPORTED
|
||||
VOID FASTCALL
|
||||
ExAcquireFastMutexUnsafe(PFAST_MUTEX FastMutex)
|
||||
{
|
||||
if (InterlockedDecrement(&FastMutex->Count) == 0)
|
||||
|
@ -52,7 +52,7 @@ ExAcquireFastMutexUnsafe (PFAST_MUTEX FastMutex)
|
|||
FastMutex->Owner = KeGetCurrentThread();
|
||||
}
|
||||
|
||||
VOID FASTCALL EXPORTED
|
||||
VOID FASTCALL
|
||||
ExReleaseFastMutexUnsafe(PFAST_MUTEX FastMutex)
|
||||
{
|
||||
assert(FastMutex->Owner == KeGetCurrentThread());
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: fmutex.c,v 1.2 2000/08/30 19:33:28 dwelch Exp $
|
||||
/* $Id: fmutex.c,v 1.3 2001/06/20 12:59:18 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -18,7 +18,7 @@
|
|||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
VOID FASTCALL EXPORTED
|
||||
VOID FASTCALL
|
||||
ExAcquireFastMutex (PFAST_MUTEX FastMutex)
|
||||
{
|
||||
KeEnterCriticalRegion();
|
||||
|
@ -36,7 +36,7 @@ ExAcquireFastMutex (PFAST_MUTEX FastMutex)
|
|||
}
|
||||
|
||||
|
||||
VOID FASTCALL EXPORTED
|
||||
VOID FASTCALL
|
||||
ExReleaseFastMutex (PFAST_MUTEX FastMutex)
|
||||
{
|
||||
assert(FastMutex->Owner == KeGetCurrentThread());
|
||||
|
@ -51,7 +51,7 @@ ExReleaseFastMutex (PFAST_MUTEX FastMutex)
|
|||
}
|
||||
|
||||
|
||||
BOOLEAN FASTCALL EXPORTED
|
||||
BOOLEAN FASTCALL
|
||||
ExTryToAcquireFastMutex (PFAST_MUTEX FastMutex)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
|
|
|
@ -25,7 +25,7 @@ xHalIoSetPartitionInformation(IN PDEVICE_OBJECT DeviceObject,
|
|||
IN ULONG PartitionNumber,
|
||||
IN ULONG PartitionType);
|
||||
|
||||
NTSTATUS STDCALL
|
||||
NTSTATUS FASTCALL
|
||||
xHalIoWritePartitionTable(IN PDEVICE_OBJECT DeviceObject,
|
||||
IN ULONG SectorSize,
|
||||
IN ULONG SectorsPerTrack,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: error.c,v 1.1 2000/07/04 01:30:18 ekohl Exp $
|
||||
/* $Id: error.c,v 1.2 2001/06/20 13:00:53 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -20,12 +20,13 @@
|
|||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <windows.h>
|
||||
#include <errors.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#define HIWORD(l) ((WORD)(((DWORD)(l) >> 16) & 0xFFFF))
|
||||
#define LOWORD(l) ((WORD)(l))
|
||||
|
||||
/* TYPES *******************************************************************/
|
||||
|
||||
|
@ -825,14 +826,11 @@ RPC_NT_SS_CONTEXT_MISMATCH ERROR_INVALID_HANDLE
|
|||
|
||||
/* FUNCTIONS ***************************************************************/
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
RtlAssert (
|
||||
PVOID FailedAssertion,
|
||||
VOID STDCALL
|
||||
RtlAssert(PVOID FailedAssertion,
|
||||
PVOID FileName,
|
||||
ULONG LineNumber,
|
||||
PCHAR Message
|
||||
)
|
||||
PCHAR Message)
|
||||
{
|
||||
DbgPrint("Assertion \'%s\' failed at %s line %d: %s\n",
|
||||
(PCHAR)FailedAssertion,
|
||||
|
@ -859,9 +857,8 @@ RtlAssert (
|
|||
* REMARK
|
||||
* RtlNtStatusToDosErrorNoTeb() does the real work.
|
||||
*/
|
||||
DWORD
|
||||
STDCALL
|
||||
RtlNtStatusToDosErrorNoTeb (NTSTATUS Status)
|
||||
DWORD STDCALL
|
||||
RtlNtStatusToDosErrorNoTeb(IN NTSTATUS Status)
|
||||
{
|
||||
PERROR_TABLE Table = (PERROR_TABLE)ErrorTable;
|
||||
|
||||
|
@ -918,11 +915,8 @@ RtlNtStatusToDosErrorNoTeb (NTSTATUS Status)
|
|||
* REMARK
|
||||
* RtlNtStatusToDosErrorNoTeb() does the real work.
|
||||
*/
|
||||
DWORD
|
||||
STDCALL
|
||||
RtlNtStatusToDosError (
|
||||
NTSTATUS Status
|
||||
)
|
||||
DWORD STDCALL
|
||||
RtlNtStatusToDosError(IN NTSTATUS Status)
|
||||
{
|
||||
PNT_TEB Teb = NtCurrentTeb ();
|
||||
|
||||
|
@ -955,11 +949,8 @@ RtlNtStatusToDosError (
|
|||
* REVISIONS
|
||||
* 1999-11-30 ea
|
||||
*/
|
||||
INT
|
||||
STDCALL
|
||||
RtlNtStatusToPsxErrno (
|
||||
IN NTSTATUS Status
|
||||
)
|
||||
INT STDCALL
|
||||
RtlNtStatusToPsxErrno(IN NTSTATUS Status)
|
||||
{
|
||||
#if 0
|
||||
switch (Status)
|
||||
|
|
Loading…
Reference in a new issue