Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove aligned heap alloc
  • Loading branch information
djphoenix committed May 28, 2019
1 parent 445d0f7 commit a1f6f81
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions src/platform/heap.cpp
Expand Up @@ -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);
}
Expand Down
7 changes: 0 additions & 7 deletions src/platform/include/heap.hpp
Expand Up @@ -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);
2 changes: 0 additions & 2 deletions src/platform/include/interrupts.hpp
Expand Up @@ -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:
Expand Down

0 comments on commit a1f6f81

Please sign in to comment.