Unverified Commit a1f6f81d authored by PhoeniX's avatar PhoeniX

Remove aligned heap alloc

parent 445d0f7d
......@@ -183,9 +183,6 @@ void* operator new(size_t a) {
void* operator new[](size_t a) {
return Heap::alloc(a);
}
void* operator new(size_t, size_t a) {
return Heap::alloc(a);
}
void operator delete(void* a) noexcept {
return Heap::free(a);
}
......
......@@ -20,10 +20,3 @@ class Heap {
static void free(void* addr);
};
#define ALIGNED_NEW(align) \
void *operator new(size_t size) { return Heap::alloc(size, align); }
#define ALIGNED_NEWARR(align) \
void *operator new[](size_t size) { return Heap::alloc(size, align); }
void *operator new(size_t, size_t);
......@@ -138,8 +138,6 @@ class Interrupts {
offset_low(uint16_t(offset)), selector(selector), ist(ist), rsvd1(0),
type(type), rsvd2(0), dpl(dpl), present(present),
offset_middle(uint16_t(offset >> 16)), offset_high(offset >> 32), rsvd3(0) {}
ALIGNED_NEWARR(0x1000)
} PACKED;
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment