summaryrefslogtreecommitdiffhomepage
path: root/dev/Boot/src/New+Delete.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-23 19:13:48 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-23 19:15:17 +0100
commita13e1c0911c0627184bc38f18c7fdda64447b3ad (patch)
tree073a62c09bf216e85a3f310376640fa1805147f9 /dev/Boot/src/New+Delete.cc
parent149fa096eb306d03686b3b67e813cf1a78e08cd0 (diff)
meta(kernel): Reworked repository's filesystem structure.
Removing useless parts of the project too. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Boot/src/New+Delete.cc')
-rw-r--r--dev/Boot/src/New+Delete.cc60
1 files changed, 0 insertions, 60 deletions
diff --git a/dev/Boot/src/New+Delete.cc b/dev/Boot/src/New+Delete.cc
deleted file mode 100644
index 03a1bb68..00000000
--- a/dev/Boot/src/New+Delete.cc
+++ /dev/null
@@ -1,60 +0,0 @@
-/* -------------------------------------------
-
- Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved.
-
-------------------------------------------- */
-
-#include <BootKit/Platform.h>
-#include <BootKit/Protocol.h>
-#include <BootKit/BootKit.h>
-
-#ifdef __BOOTLDR_STANDALONE__
-EXTERN EfiBootServices* BS;
-
-/// @brief Allocates a new object.
-/// @param sz the size.
-/// @return
-void* operator new(size_t sz)
-{
- void* buf = nullptr;
-
- while (BS->AllocatePool(EfiMemoryType::EfiLoaderData, sz, &buf) != kEfiOk)
- BS->FreePool(buf);
-
- return buf;
-}
-
-/// @brief Allocates a new object.
-/// @param sz the size.
-/// @return
-void* operator new[](size_t sz)
-{
- void* buf = nullptr;
- BS->AllocatePool(EfiMemoryType::EfiLoaderData, sz, &buf);
-
- return buf;
-}
-
-/// @brief Deletes the object.
-/// @param buf the object.
-void operator delete(void* buf)
-{
- BS->FreePool(buf);
-}
-
-/// @brief Deletes the object.
-/// @param buf the object.
-void operator delete[](void* buf)
-{
- BS->FreePool(buf);
-}
-
-/// @brief Deletes the object (array specific).
-/// @param buf the object.
-/// @param size it's size.
-void operator delete(void* buf, size_t size)
-{
- BS->FreePool(buf);
-}
-
-#endif // __BOOTLDR_STANDALONE__