From ab40064c1f783d26244108846430fc9ef1837e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Wed, 28 Mar 2007 21:26:59 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20bogue=20dans=20la=20fonction=20"mbfree"?= =?UTF-8?q?=20la=20m=C3=A9moire=20libre=20n'=C3=A9tait=20pas=20affich?= =?UTF-8?q?=C3=A9e=20"libre"=20bogue=20dans=20la=20fonction=20"mballoc"=20?= =?UTF-8?q?qui=20n'utilisait=20pas=20le=20bon=20segment=20pour=20le=20prog?= =?UTF-8?q?ramme=20appelant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noyau/mcb.asm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/noyau/mcb.asm b/noyau/mcb.asm index 4ae48e7..891304e 100644 --- a/noyau/mcb.asm +++ b/noyau/mcb.asm @@ -349,6 +349,8 @@ PROC mbfree FAR jne @@nottofree mov [es:mb.isresident],false mov [es:mb.reference],free + mov si,offset @@isfree + lea di,[es:mb.names] mov cx,6 cld rep movsb @@ -491,7 +493,7 @@ PROC mballoc FAR push cs pop ds call mbcreate,offset @@data,[@size] - call mbchown,ax,[word ptr ss:bp+2] + call mbchown,ax,[word ptr ss:bp+4] ret @@data db '/data',0