From f0811b1e200293c5ccc387d866d0ad49a41bba17 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 2 Apr 2024 07:04:53 +0200 Subject: Kernel: New commit, see below. - Implement FileManager's NewFilesystemManager. - Add ATA-DMA and ATA-PIO APIs. - Add the two raw call (fs_newfs_read_raw, fs_newfs_write_raw) to the NewFS API. - Add kPRDTTransferStatus to tell if PRD is in use. Signed-off-by: Amlal El Mahrouss --- Private/KernelKit/CodeManager.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Private/KernelKit/CodeManager.hpp') diff --git a/Private/KernelKit/CodeManager.hpp b/Private/KernelKit/CodeManager.hpp index adb37ff0..a6984cfc 100644 --- a/Private/KernelKit/CodeManager.hpp +++ b/Private/KernelKit/CodeManager.hpp @@ -24,9 +24,9 @@ namespace NewOS { /// @brief Main process entrypoint. typedef void (*MainKind)(void); -/// @brief Executes a new process from memory. -/// @param main -/// @param processName -/// @return +/// @brief Executes a new process from a function. kernel code only. +/// @note This sets up a new stack, anything on the main function that calls the kernel will not be accessible. +/// @param main the start of the process. +/// @return if the process was started or not. bool execute_from_image(MainKind main, const char* processName); } // namespace NewOS \ No newline at end of file -- cgit v1.2.3