mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-18 02:31:42 +00:00
Update files
This commit is contained in:
39
apps/system/init/init.cpp
Normal file
39
apps/system/init/init.cpp
Normal file
@@ -0,0 +1,39 @@
|
||||
// EXPERIMENTAL
|
||||
|
||||
enum FexFormatType
|
||||
{
|
||||
FexFormatType_Unknown,
|
||||
FexFormatType_Executable,
|
||||
FexFormatType_Driver
|
||||
/* ... */
|
||||
};
|
||||
|
||||
enum FexOSType
|
||||
{
|
||||
FexOSType_Unknown,
|
||||
FexOSType_Fennix,
|
||||
FexOSType_Linux
|
||||
/* ... */
|
||||
};
|
||||
|
||||
struct Fex
|
||||
{
|
||||
char Magic[4];
|
||||
int Type;
|
||||
int OS;
|
||||
unsigned long Pointer;
|
||||
};
|
||||
|
||||
extern "C" int _start();
|
||||
|
||||
__attribute__((section(".header")))
|
||||
Fex header = {
|
||||
.Magic = {'F', 'E', 'X', '\0'},
|
||||
.Type = FexFormatType_Executable,
|
||||
.OS = FexOSType_Fennix,
|
||||
.Pointer = (unsigned long)_start};
|
||||
|
||||
extern "C" int _start()
|
||||
{
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user