From 2a1dd56ef45fb7aed59c06eb03d710dfc42d3e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Fri, 23 Mar 2007 16:47:20 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20rajout=20du=20pr=C3=A9correctione=20CS?= =?UTF-8?q?=20sur=20tout=20les=20appels?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noyau/systeme.asm | 72 +++++++++++++++++++++++------------------------ 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/noyau/systeme.asm b/noyau/systeme.asm index 3b01d65..036c45a 100644 --- a/noyau/systeme.asm +++ b/noyau/systeme.asm @@ -55,23 +55,23 @@ suite: pop gs call biosprint,offset msg_ok call biosprint,offset msg_video_init - call [setvideomode],2 + call [cs:setvideomode],2 jc error - call [clearscreen] - call [print],offset msg_memory - call [print],offset msg_ok2 - call [print],offset msg_memory_init - call [print],offset msg_ok2 - call [print],offset msg_memory_section - call [print],offset msg_ok2 - call [print],offset msg_memory_jumps - call [print],offset msg_ok2 - call [print],offset msg_video_init - call [print],offset msg_ok2 - call [print],offset msg_cpu_detect - call [cpuinfo],offset thecpu - call [setinfo],offset thecpu,offset temp - call [print],offset msg_ok2 + call [cs:clearscreen] + call [cs:print],offset msg_memory + call [cs:print],offset msg_ok2 + call [cs:print],offset msg_memory_init + call [cs:print],offset msg_ok2 + call [cs:print],offset msg_memory_section + call [cs:print],offset msg_ok2 + call [cs:print],offset msg_memory_jumps + call [cs:print],offset msg_ok2 + call [cs:print],offset msg_video_init + call [cs:print],offset msg_ok2 + call [cs:print],offset msg_cpu_detect + call [cs:cpuinfo],offset thecpu + call [cs:setinfo],offset thecpu,offset temp + call [cs:print],offset msg_ok2 push offset temp xor eax,eax mov al,[thecpu.family] @@ -82,11 +82,11 @@ suite: push eax push offset thecpu.names push offset thecpu.vendor - call [print],offset msg_cpu_detect_inf - call [print],offset msg_pci - call [pciinfo],offset thepci + call [cs:print],offset msg_cpu_detect_inf + call [cs:print],offset msg_pci + call [cs:pciinfo],offset thepci jc nopci - call [print],offset msg_ok2 + call [cs:print],offset msg_ok2 xor eax,eax mov al,[thepci.maxbus] push eax @@ -94,25 +94,25 @@ suite: push eax mov al,[thepci.version_major] push eax - call [print],offset msg_pci_info - call [print],offset msg_pci_enum + call [cs:print],offset msg_pci_info + call [cs:print],offset msg_pci_enum xor bx,bx xor cx,cx xor si,si searchpci: - call [getcardinfo],bx,cx,si,offset temp + call [cs:getcardinfo],bx,cx,si,offset temp jc stopthis mov al,[(pcidata offset temp).subclass] push ax mov al,[(pcidata offset temp).class] push ax - call [getpcisubclass] + call [cs:getpcisubclass] push dx push ax mov al,[(pcidata offset temp).class] xor ah,ah push ax - call [getpciclass] + call [cs:getpciclass] push dx push ax push 4 @@ -125,7 +125,7 @@ searchpci: push eax mov ax,[(pcidata offset temp).vendor] push eax - call [print],offset msg_pci_card + call [cs:print],offset msg_pci_card inc si cmp si,7 jbe searchpci @@ -140,28 +140,28 @@ stopthis: jbe searchpci jmp next nopci: - call [print],offset msg_echec2 + call [cs:print],offset msg_echec2 next: - call [detectvmware] + call [cs:detectvmware] jne novirtual - call [print],offset msg_vmware + call [cs:print],offset msg_vmware novirtual: - call [print],offset msg_flat + call [cs:print],offset msg_flat call enablea20 call flatmode xor ax,ax mov fs,ax mov esi,0100000h mov [dword ptr fs:esi],"OKIN" - call [print],offset msg_ok2 - call [print],offset msg_disk_init - call [initdrive] + call [cs:print],offset msg_ok2 + call [cs:print],offset msg_disk_init + call [cs:initdrive] jc error2 - call [print],offset msg_ok2 - call [execfile],offset shell + call [cs:print],offset msg_ok2 + call [cs:execfile],offset shell error2: - call [print],offset msg_error2 + call [cs:print],offset msg_error2 call bioswaitkey jmp far 0FFFFh:0000h