diff options
Diffstat (limited to 'dev/DDK')
| -rw-r--r-- | dev/DDK/KernelAlloc.c | 14 | ||||
| -rw-r--r-- | dev/DDK/KernelCall.c | 6 | ||||
| -rw-r--r-- | dev/DDK/KernelCxxRt.cxx | 4 | ||||
| -rw-r--r-- | dev/DDK/KernelDev.h | 6 | ||||
| -rw-r--r-- | dev/DDK/KernelStd.h | 6 |
5 files changed, 18 insertions, 18 deletions
diff --git a/dev/DDK/KernelAlloc.c b/dev/DDK/KernelAlloc.c index 7648712d..4fad4c0c 100644 --- a/dev/DDK/KernelAlloc.c +++ b/dev/DDK/KernelAlloc.c @@ -1,17 +1,17 @@ /* ------------------------------------------- - Copyright ZKA Technologies. + Copyright ZKA Technologies. - Purpose: DDK allocator. + Purpose: DDK allocator. ------------------------------------------- */ #include <DDK/KernelStd.h> /** - \brief Allocates a new heap on the Kernel's side. - \param sz the size of the heap block. - \return the newly allocated pointer. + \brief Allocates a new heap on the Kernel's side. + \param sz the size of the heap block. + \return the newly allocated pointer. */ DK_EXTERN void* KernelAlloc(size_t sz) { @@ -24,8 +24,8 @@ DK_EXTERN void* KernelAlloc(size_t sz) } /** - \brief Frees a pointer from the heap. - \param ptr the pointer to free. + \brief Frees a pointer from the heap. + \param ptr the pointer to free. */ DK_EXTERN void KernelFree(void* ptr) { diff --git a/dev/DDK/KernelCall.c b/dev/DDK/KernelCall.c index 49bf57b5..73e9fee3 100644 --- a/dev/DDK/KernelCall.c +++ b/dev/DDK/KernelCall.c @@ -41,10 +41,10 @@ DK_EXTERN void KernelAddSyscall(const int slot, void (*slotFn)(void* a0)) /// @return Object manifest. DK_EXTERN struct DDK_OBJECT_MANIFEST* KernelGetObject(const int slot, const char* name) { - struct DDK_OBJECT_MANIFEST* manifest = (struct DDK_OBJECT_MANIFEST*)KernelCall("RtlGetObject", slot, (void*)name, 1); + struct DDK_OBJECT_MANIFEST* manifest = (struct DDK_OBJECT_MANIFEST*)KernelCall("RtlGetObject", slot, (void*)name, 1); - if (!manifest) - return nil; + if (!manifest) + return nil; return manifest; } diff --git a/dev/DDK/KernelCxxRt.cxx b/dev/DDK/KernelCxxRt.cxx index 13471a19..ffec02ca 100644 --- a/dev/DDK/KernelCxxRt.cxx +++ b/dev/DDK/KernelCxxRt.cxx @@ -1,8 +1,8 @@ /* ------------------------------------------- - Copyright ZKA Technologies. + Copyright ZKA Technologies. - Purpose: DDK C++ runtime. + Purpose: DDK C++ runtime. ------------------------------------------- */ diff --git a/dev/DDK/KernelDev.h b/dev/DDK/KernelDev.h index 17876688..bb7bdf81 100644 --- a/dev/DDK/KernelDev.h +++ b/dev/DDK/KernelDev.h @@ -15,12 +15,12 @@ struct _KERNEL_DEVICE; /// @brief Kernel Device driver. typedef struct _KERNEL_DEVICE DK_FINAL { - char d_name[255]; // the device name. Could be /./DEVICE_NAME/ + char d_name[255]; // the device name. Could be /./DEVICE_NAME/ void* (*d_read)(void* arg, int len); // read from device. void (*d_write)(void* arg, int len); - void (*d_wait)(void); // write to device. + void (*d_wait)(void); // write to device. struct _KERNEL_DEVICE* (*d_open)(const char* path); // open device. - void (*d_close)(struct _KERNEL_DEVICE* dev); // close device. + void (*d_close)(struct _KERNEL_DEVICE* dev); // close device. } KERNEL_DEVICE, *KERNEL_DEVICE_PTR; /// @brief Open a new device from path. diff --git a/dev/DDK/KernelStd.h b/dev/DDK/KernelStd.h index 4270229b..89fe786d 100644 --- a/dev/DDK/KernelStd.h +++ b/dev/DDK/KernelStd.h @@ -16,13 +16,13 @@ #define DK_EXTERN extern "C" __declspec(dllexport) #define nil nullptr #undef NULL -#define NULL 0 -#define DK_FINAL final +#define NULL 0 +#define DK_FINAL final #else #define DK_EXTERN extern __declspec(dllexport) #define nil ((void*)0) #undef NULL -#define NULL ((void*)0) +#define NULL ((void*)0) #define DK_FINAL #endif // defined(__cplusplus) |
