summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Kernel/ArchKit/compile_flags.txt1
-rw-r--r--Kernel/KernelKit/compile_flags.txt1
-rw-r--r--Kernel/NetworkKit/compile_flags.txt1
-rw-r--r--Kernel/Sources/FS/NewFS.cxx22
-rw-r--r--Kernel/Sources/FS/compile_flags.txt6
-rw-r--r--Kernel/compile_flags.txt1
6 files changed, 28 insertions, 4 deletions
diff --git a/Kernel/ArchKit/compile_flags.txt b/Kernel/ArchKit/compile_flags.txt
index a3cab89d..c15efc77 100644
--- a/Kernel/ArchKit/compile_flags.txt
+++ b/Kernel/ArchKit/compile_flags.txt
@@ -5,3 +5,4 @@
-I../
-I$(HOME)/
-D__NEWOS_AMD64__
+-D__ED__
diff --git a/Kernel/KernelKit/compile_flags.txt b/Kernel/KernelKit/compile_flags.txt
index a37ae6bf..39b236a9 100644
--- a/Kernel/KernelKit/compile_flags.txt
+++ b/Kernel/KernelKit/compile_flags.txt
@@ -3,3 +3,4 @@
-std=c++20
-I./
-I../
+-D__ED__
diff --git a/Kernel/NetworkKit/compile_flags.txt b/Kernel/NetworkKit/compile_flags.txt
index a37ae6bf..39b236a9 100644
--- a/Kernel/NetworkKit/compile_flags.txt
+++ b/Kernel/NetworkKit/compile_flags.txt
@@ -3,3 +3,4 @@
-std=c++20
-I./
-I../
+-D__ED__
diff --git a/Kernel/Sources/FS/NewFS.cxx b/Kernel/Sources/FS/NewFS.cxx
index 5a8ff1a2..85926ff9 100644
--- a/Kernel/Sources/FS/NewFS.cxx
+++ b/Kernel/Sources/FS/NewFS.cxx
@@ -20,15 +20,29 @@
using namespace Kernel;
+#ifdef __ED__
+/**
+ Define those external symbols, to make the editor shutup
+*/
+
+/// @brief get sector count.
+Kernel::SizeT drv_std_get_sector_count();
+
+/// @brief get device size.
+Kernel::SizeT drv_std_get_drv_size();
+
+#endif
+
+
///! BUGS: 0
/***********************************************************************************/
/// This file implements the New File System.
/// New File System implements a B-Tree based algortihm.
-/// /Disk
-/// /Path1 /Path2
-/// /File.txt /File.pef /File.png <-- symlink.
-/// /Path1/File.txt
+/// C:\\
+/// \\Path1\\ /\\ath2\\
+/// \\readme.rtf \\ListContents.pef \\readme.lnk <-- symlink.
+/// \\Path1\\readme.rtf
/***********************************************************************************/
STATIC MountpointInterface sMountpointInterface;
diff --git a/Kernel/Sources/FS/compile_flags.txt b/Kernel/Sources/FS/compile_flags.txt
new file mode 100644
index 00000000..39b236a9
--- /dev/null
+++ b/Kernel/Sources/FS/compile_flags.txt
@@ -0,0 +1,6 @@
+-nostdlib
+-ffreestanding
+-std=c++20
+-I./
+-I../
+-D__ED__
diff --git a/Kernel/compile_flags.txt b/Kernel/compile_flags.txt
index cd16b3c3..4087caba 100644
--- a/Kernel/compile_flags.txt
+++ b/Kernel/compile_flags.txt
@@ -6,3 +6,4 @@
-D__NEWOS_AMD64__
-I../Vendor
-D__x86_64__
+-D__ED__