From 2289d5210cc65d71edec0de21e4e3c949b6346dc Mon Sep 17 00:00:00 2001 From: Bryan McShea Date: Fri, 21 Oct 2022 01:29:19 -0400 Subject: [PATCH] forgot I chose unsigned --- src/lib/heap.s | 11 ----------- 1 file changed, 11 deletions(-) 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