mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Updated Fex header
This commit is contained in:
parent
b4cb49e696
commit
e930e02752
18
Fex.hpp
18
Fex.hpp
@ -48,7 +48,7 @@ struct Fex
|
|||||||
char Magic[4];
|
char Magic[4];
|
||||||
enum FexFormatType Type : 4;
|
enum FexFormatType Type : 4;
|
||||||
enum FexOSType OS : 4;
|
enum FexOSType OS : 4;
|
||||||
int (*Pointer)(void *);
|
int (*EntryPoint)(void *);
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
|
|
||||||
struct KernelCallback;
|
struct KernelCallback;
|
||||||
@ -90,8 +90,8 @@ struct FexExtended
|
|||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
bool AttachToMouse;
|
char AttachToMouse;
|
||||||
bool AttachToKeyboard;
|
char AttachToKeyboard;
|
||||||
} Input;
|
} Input;
|
||||||
} Bind;
|
} Bind;
|
||||||
} Driver;
|
} Driver;
|
||||||
@ -102,15 +102,15 @@ struct FexExtended
|
|||||||
*
|
*
|
||||||
* @param FormatType FexFormatType
|
* @param FormatType FexFormatType
|
||||||
* @param OperatingSystem FexOSType
|
* @param OperatingSystem FexOSType
|
||||||
* @param Address Pointer to the start function
|
* @param Address EntryPoint to the start function
|
||||||
*
|
*
|
||||||
* @note Must include ".header : { *(.header .header.*) }" in linker script
|
* @note Must include ".header : { *(.header .header.*) }" in linker script
|
||||||
*/
|
*/
|
||||||
#define HEAD(FormatType, OperatingSystem, Address) \
|
#define HEAD(FormatType, OperatingSystem, Address) \
|
||||||
__attribute__((section(".header"))) struct Fex FexHeader = { \
|
__attribute__((section(".header"))) struct Fex FexHeader = { \
|
||||||
.Magic = {'F', 'E', 'X', '\0'}, \
|
.Magic = {'F', 'E', 'X', '\0'}, \
|
||||||
.Type = FormatType, \
|
.Type = FormatType, \
|
||||||
.OS = OperatingSystem, \
|
.OS = OperatingSystem, \
|
||||||
.Pointer = Address}
|
.EntryPoint = Address}
|
||||||
|
|
||||||
#endif // !__FENNIX_FILE_FEX_H__
|
#endif // !__FENNIX_FILE_FEX_H__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user