aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/options/internal/x86-include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-07 17:28:52 -0500
committerIan Moffett <ian@osmora.org>2024-03-07 18:24:51 -0500
commitf5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 (patch)
tree93b156621dc0303816b37f60ba88051b702d92f6 /lib/mlibc/options/internal/x86-include
parentbd5969fc876a10b18613302db7087ef3c40f18e1 (diff)
build: Build mlibc + add distclean target
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/mlibc/options/internal/x86-include')
-rwxr-xr-xlib/mlibc/options/internal/x86-include/mlibc/arch-defs.hpp13
-rwxr-xr-xlib/mlibc/options/internal/x86-include/mlibc/thread.hpp21
2 files changed, 0 insertions, 34 deletions
diff --git a/lib/mlibc/options/internal/x86-include/mlibc/arch-defs.hpp b/lib/mlibc/options/internal/x86-include/mlibc/arch-defs.hpp
deleted file mode 100755
index aa8fe38..0000000
--- a/lib/mlibc/options/internal/x86-include/mlibc/arch-defs.hpp
+++ /dev/null
@@ -1,13 +0,0 @@
-#ifndef MLIBC_ARCH_DEFS_HPP
-#define MLIBC_ARCH_DEFS_HPP
-
-#include <stddef.h>
-
-namespace mlibc {
-
-inline constexpr size_t page_size = 0x1000;
-
-} // namespace mlibc
-
-#endif // MLIBC_ARCH_DEFS_HPP
-
diff --git a/lib/mlibc/options/internal/x86-include/mlibc/thread.hpp b/lib/mlibc/options/internal/x86-include/mlibc/thread.hpp
deleted file mode 100755
index 3475fb4..0000000
--- a/lib/mlibc/options/internal/x86-include/mlibc/thread.hpp
+++ /dev/null
@@ -1,21 +0,0 @@
-#pragma once
-
-#include <stdint.h>
-#include <mlibc/tcb.hpp>
-
-namespace mlibc {
-
-inline Tcb *get_current_tcb() {
- uintptr_t ptr;
- asm ("movl %%gs:0, %0" : "=r"(ptr));
- return reinterpret_cast<Tcb *>(ptr);
-}
-
-inline uintptr_t get_sp() {
- uintptr_t esp;
- asm ("mov %%esp, %0" : "=r"(esp));
- return esp;
-}
-
-} // namespace mlibc
-