blob: 5ca7da65064c31bb2e041bad8fa696f915a2a1fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
// SPDX-License-Identifier: Apache-2.0
// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
#ifndef KERNEL_KIT_MSDOS_H
#define KERNEL_KIT_MSDOS_H
#include <KernelKit/PE.h>
#include <NeKit/Config.h>
// Last Rev
// Sat Feb 24 CET 2024
#define kMagMz0 'M'
#define kMagMz1 'Z'
typedef Kernel::UInt32 DosWord;
typedef Kernel::Long DosLong;
typedef struct _DosHeader {
Kernel::UInt8 eMagic[2];
DosWord eMagLen;
DosWord ePagesCount;
DosWord eCrlc;
DosWord eCParHdr;
DosWord eMinAlloc;
DosWord eMaxAlloc;
DosWord eStackSeg;
DosWord eStackPtr;
DosWord eChksum;
DosWord eIp;
DosWord eCs;
DosWord eLfarlc;
DosWord eOvno;
DosWord eRes[4];
DosWord eOemid;
DosWord eOeminfo;
DosWord eRes2[10];
DosLong eLfanew;
} DosHeader, *DosHeaderPtr;
#endif /* ifndef KERNEL_KIT_MSDOS_H */
|