mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:05:43 +00:00
[CDFS]
[FASTFAT] [MUP] [NTFS] Mark DriverEntry() and associated functions as INIT svn path=/trunk/; revision=68965
This commit is contained in:
parent
7c209f0f0f
commit
f3b5c2fe1e
8 changed files with 40 additions and 0 deletions
|
@ -39,6 +39,7 @@ PCDFS_GLOBAL_DATA CdfsGlobalData;
|
||||||
|
|
||||||
/* FUNCTIONS ****************************************************************/
|
/* FUNCTIONS ****************************************************************/
|
||||||
|
|
||||||
|
INIT_FUNCTION
|
||||||
NTSTATUS NTAPI
|
NTSTATUS NTAPI
|
||||||
DriverEntry(PDRIVER_OBJECT DriverObject,
|
DriverEntry(PDRIVER_OBJECT DriverObject,
|
||||||
PUNICODE_STRING RegistryPath)
|
PUNICODE_STRING RegistryPath)
|
||||||
|
|
|
@ -5,6 +5,14 @@
|
||||||
#include <ntddcdrm.h>
|
#include <ntddcdrm.h>
|
||||||
#include <pseh/pseh2.h>
|
#include <pseh/pseh2.h>
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#define INIT_SECTION __attribute__((section ("INIT")))
|
||||||
|
#define INIT_FUNCTION INIT_SECTION
|
||||||
|
#else
|
||||||
|
#define INIT_SECTION /* Done via alloc_text for MSC */
|
||||||
|
#define INIT_FUNCTION INIT_SECTION
|
||||||
|
#endif
|
||||||
|
|
||||||
#define CDFS_BASIC_SECTOR 2048
|
#define CDFS_BASIC_SECTOR 2048
|
||||||
#define CDFS_PRIMARY_DESCRIPTOR_LOCATION 16
|
#define CDFS_PRIMARY_DESCRIPTOR_LOCATION 16
|
||||||
#define BLOCKSIZE CDFS_BASIC_SECTOR
|
#define BLOCKSIZE CDFS_BASIC_SECTOR
|
||||||
|
|
|
@ -43,6 +43,7 @@ PVFAT_GLOBAL_DATA VfatGlobalData;
|
||||||
* RegistryPath = path to our configuration entries
|
* RegistryPath = path to our configuration entries
|
||||||
* RETURNS: Success or failure
|
* RETURNS: Success or failure
|
||||||
*/
|
*/
|
||||||
|
INIT_FUNCTION
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
DriverEntry(
|
DriverEntry(
|
||||||
|
|
|
@ -6,6 +6,14 @@
|
||||||
#include <dos.h>
|
#include <dos.h>
|
||||||
#include <pseh/pseh2.h>
|
#include <pseh/pseh2.h>
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#define INIT_SECTION __attribute__((section ("INIT")))
|
||||||
|
#define INIT_FUNCTION INIT_SECTION
|
||||||
|
#else
|
||||||
|
#define INIT_SECTION /* Done via alloc_text for MSC */
|
||||||
|
#define INIT_FUNCTION INIT_SECTION
|
||||||
|
#endif
|
||||||
|
|
||||||
#define USE_ROS_CC_AND_FS
|
#define USE_ROS_CC_AND_FS
|
||||||
#if 0
|
#if 0
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
|
|
|
@ -53,6 +53,7 @@ NTSTATUS MupOrderedErrorList[] = { STATUS_UNSUCCESSFUL,
|
||||||
|
|
||||||
/* FUNCTIONS ****************************************************************/
|
/* FUNCTIONS ****************************************************************/
|
||||||
|
|
||||||
|
INIT_FUNCTION
|
||||||
VOID
|
VOID
|
||||||
MupInitializeData()
|
MupInitializeData()
|
||||||
{
|
{
|
||||||
|
@ -78,6 +79,7 @@ MupUninitializeData()
|
||||||
ExDeleteResourceLite(&MupVcbLock);
|
ExDeleteResourceLite(&MupVcbLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
INIT_FUNCTION
|
||||||
VOID
|
VOID
|
||||||
MupInitializeVcb(PMUP_VCB Vcb)
|
MupInitializeVcb(PMUP_VCB Vcb)
|
||||||
{
|
{
|
||||||
|
@ -2512,6 +2514,7 @@ MupUnload(PDRIVER_OBJECT DriverObject)
|
||||||
MupUninitializeData();
|
MupUninitializeData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
INIT_FUNCTION
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
DfsDriverEntry(PDRIVER_OBJECT DriverObject,
|
DfsDriverEntry(PDRIVER_OBJECT DriverObject,
|
||||||
PUNICODE_STRING RegistryPath)
|
PUNICODE_STRING RegistryPath)
|
||||||
|
@ -2530,6 +2533,7 @@ DfsDriverEntry(PDRIVER_OBJECT DriverObject,
|
||||||
* RegistryPath = path to our configuration entries
|
* RegistryPath = path to our configuration entries
|
||||||
* RETURNS: Success or failure
|
* RETURNS: Success or failure
|
||||||
*/
|
*/
|
||||||
|
INIT_FUNCTION
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
DriverEntry(PDRIVER_OBJECT DriverObject,
|
DriverEntry(PDRIVER_OBJECT DriverObject,
|
||||||
|
|
|
@ -6,6 +6,14 @@
|
||||||
#include <pseh/pseh2.h>
|
#include <pseh/pseh2.h>
|
||||||
#include <ndk/muptypes.h>
|
#include <ndk/muptypes.h>
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#define INIT_SECTION __attribute__((section ("INIT")))
|
||||||
|
#define INIT_FUNCTION INIT_SECTION
|
||||||
|
#else
|
||||||
|
#define INIT_SECTION /* Done via alloc_text for MSC */
|
||||||
|
#define INIT_FUNCTION INIT_SECTION
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ROUND_UP(N, S) ((((N) + (S) - 1) / (S)) * (S))
|
#define ROUND_UP(N, S) ((((N) + (S) - 1) / (S)) * (S))
|
||||||
#define IO_METHOD_FROM_CTL_CODE(C) (C & 0x00000003)
|
#define IO_METHOD_FROM_CTL_CODE(C) (C & 0x00000003)
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,7 @@ PNTFS_GLOBAL_DATA NtfsGlobalData = NULL;
|
||||||
* RegistryPath = path to our configuration entries
|
* RegistryPath = path to our configuration entries
|
||||||
* RETURNS: Success or failure
|
* RETURNS: Success or failure
|
||||||
*/
|
*/
|
||||||
|
INIT_FUNCTION
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
DriverEntry(PDRIVER_OBJECT DriverObject,
|
DriverEntry(PDRIVER_OBJECT DriverObject,
|
||||||
|
@ -122,6 +123,7 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
|
||||||
* DriverObject = object describing this driver
|
* DriverObject = object describing this driver
|
||||||
* RETURNS: Nothing
|
* RETURNS: Nothing
|
||||||
*/
|
*/
|
||||||
|
INIT_FUNCTION
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
NtfsInitializeFunctionPointers(PDRIVER_OBJECT DriverObject)
|
NtfsInitializeFunctionPointers(PDRIVER_OBJECT DriverObject)
|
||||||
|
|
|
@ -4,6 +4,14 @@
|
||||||
#include <ntifs.h>
|
#include <ntifs.h>
|
||||||
#include <pseh/pseh2.h>
|
#include <pseh/pseh2.h>
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#define INIT_SECTION __attribute__((section ("INIT")))
|
||||||
|
#define INIT_FUNCTION INIT_SECTION
|
||||||
|
#else
|
||||||
|
#define INIT_SECTION /* Done via alloc_text for MSC */
|
||||||
|
#define INIT_FUNCTION INIT_SECTION
|
||||||
|
#endif
|
||||||
|
|
||||||
#define CACHEPAGESIZE(pDeviceExt) \
|
#define CACHEPAGESIZE(pDeviceExt) \
|
||||||
((pDeviceExt)->NtfsInfo.UCHARsPerCluster > PAGE_SIZE ? \
|
((pDeviceExt)->NtfsInfo.UCHARsPerCluster > PAGE_SIZE ? \
|
||||||
(pDeviceExt)->NtfsInfo.UCHARsPerCluster : PAGE_SIZE)
|
(pDeviceExt)->NtfsInfo.UCHARsPerCluster : PAGE_SIZE)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue