more testing + forgot to copy prev when new free during alloc

This commit is contained in:
Bryan McShea
2022-10-21 01:53:10 -04:00
parent 2289d5210c
commit d13bc9b8fe
2 changed files with 54 additions and 21 deletions
+2
View File
@@ -224,6 +224,8 @@ heap_alloc:
ld t6, fb_next(t1) # copy next
sd t6, fb_next(t3)
sd t3, fb_prev(t6) # set next block prev to new
ld t6, fb_prev(t1) # copy prev
sd t6, fb_prev(t3)
move t5, t3
j 1f