diff --git a/src/lib/heap.s b/src/lib/heap.s index e62c779..3a9097a 100644 --- a/src/lib/heap.s +++ b/src/lib/heap.s @@ -60,11 +60,6 @@ heap_oom: .string "Heap ran out of memory!\n" 0: -.word 0f - heap_neg_size -heap_neg_size: - .string "Negative size given to alloc!\n" -0: - .section .data .align 3 @@ -151,12 +146,6 @@ heap_alloc: addi sp, sp, -8 sd ra, 0(sp) - bgez a0, 0f # panic if negative size - la a0, heap_neg_size - lw a1, -4(a0) - j panic -0: - # align size properly (t0) move t0, a0