Userspace process creation stub

This commit is contained in:
Alex
2022-11-02 17:16:11 +02:00
parent efea5e7aaf
commit bb92e820fc
4 changed files with 59 additions and 1 deletions

23
include/exec.hpp Normal file
View File

@ -0,0 +1,23 @@
#ifndef __FENNIX_KERNEL_FILE_EXECUTE_H__
#define __FENNIX_KERNEL_FILE_EXECUTE_H__
#include <types.h>
namespace Execute
{
enum ExStatus
{
OK,
Unknown,
InvalidFile,
InvalidFileFormat,
InvalidFileHeader,
InvalidFileData,
InvalidFileEntryPoint,
InvalidFilePath
};
ExStatus Spawn(char *Path, uint64_t Arg0, uint64_t Arg1);
}
#endif // !__FENNIX_KERNEL_FILE_EXECUTE_H__