From 76e868726917a635b14e6c4b47d76a4d8c7e41fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Sun, 31 Oct 2004 12:24:36 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20suppression=20des=20fonction=20de=20ges?= =?UTF-8?q?tion=20de=20blocs=20de=20m=C3=A9moire=20inutile=20et=20mise=20e?= =?UTF-8?q?n=20r=C3=A9sident=20syst=C3=A9matique=20des=20blocs=20m=C3=A9mo?= =?UTF-8?q?ire=20syst=C3=A8me?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noyau/systeme.asm | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/noyau/systeme.asm b/noyau/systeme.asm index b6af68a..81003ad 100644 --- a/noyau/systeme.asm +++ b/noyau/systeme.asm @@ -589,22 +589,6 @@ MBinit: notforfree: stc pop es cx ax - ret - -;Libère le bloc de mémoire GS -MBFree: - push bx es - mov bx,gs - dec bx - dec bx - mov es,bx - cmp es:[MB.Check],'NH' - je notforfree - mov es:[MB.IsResident],0 - mov es:[MB.Reference],Free - mov dword ptr es:[MB.Names],'eerF' - mov dword ptr es:[MB.Names+4],0 - pop es bx ret ;Creér un bloc de nom ds:si de taille cx (octets) -> n°segment dans GS @@ -632,7 +616,7 @@ searchfree: mov word ptr es:[MB.Check],'NH' mov es:[MB.IsNotLast],True mov es:[MB.Reference],cs - mov es:[MB.IsResident],False + mov es:[MB.IsResident],True mov es:[MB.Sizes],cx mov di,MB.Names push ax cx @@ -682,16 +666,6 @@ notsogood: add bx,es:[MB.Sizes] jmp searchfree -;Rend le segment GS résident -MBresident: - push bx es - mov bx,gs - dec bx - mov es,bx - mov es:[MB.IsResident],True - pop es bx - ret - ;================================================ ;Routine de gestion de handler ;================================================