Displaying 1 result from an estimated 1 matches for "scan_lap".
Did you mean:
can_map
2002 Mar 08
0
PXELINUX: suggestion for improvement
...smp_scan_config
+ je .smp_found
+
+ mov ax,0F000h ; Last 64K of BIOS
+ mov es,ax
+ mov cx,64*1024/16
+ call smp_scan_config
+ jne .smp_done
+ .smp_found: mov dword [di-4],'-smp'
+ .smp_done: pop es
+ jmp .done_cpuid
+
+ smp_scan_config:
+ xor esi,esi
+ jmp .scan_first
+ .scan_lap: add si,16
+ .scan_first: cmp dword [es:si],'_MP_' ; signature
+ .scan_loop: loopne .scan_lap
+ je ._mp_found
+ ret
+
+ ._mp_found: inc cx ; we're going though loop instruction
+ ; one more time
+ cmp byte [es:si+8],1; length is expected to be 1 paragraph
+ jne .scan_loop...