search for: pushfd

Displaying 8 results from an estimated 8 matches for "pushfd".

Did you mean: pushfl
2007 Jan 04
2
Automatically choose between 32-bit and 64-bit kernel
...ck if we're 386 (as opposed to 486+); if so we need to blank out -; the WBINVD instruction +; Determine if we're running on a 64-bit CPU ; -; We check for 486 by setting EFLAGS.AC +; First, check if we're 386. If so, we need to blank out the WBINVD instruction ; -%if DO_WBINVD pushfd ; Save the good flags pushfd pop eax @@ -69,6 +67,47 @@ ; ; 386 - Looks like we better blot out the WBINVD instruction ; +%if DO_WBINVD mov byte [try_wbinvd],0c3h ; Near RET -is_486: %endif ; DO_WBINVD + jmp is_32bit +is_486: +; +; Check if this CPU supports the CPUID c...
2018 Feb 28
1
problem reading PXELinux's code
Hi All, I have encountered a problem when reading PXELinux's source code. In syslinux/core/pxelinux.asm, function *pxenv* is as below: pxenv: pushfd pushad ; We may be removing ourselves from memory cmp bx,PXENV_RESTART_TFTP ...... push es push di push bx .jump: call 0:0 add sp,6 mov [cs:PXEStatus],ax ...... ret "Around" .jump, we store ES:DI and BX on PXE stack, which points to PXE parameter block and PXE opcode cor...
2004 Mar 01
0
[PATCH] pxelinux corrupts ipappend-ed paramaters...
...--------8<--------8<--------8<-------- --- ./pxelinux.asm.orig Mon Dec 8 22:17:08 2003 +++ ./pxelinux.asm Mon Mar 1 02:35:58 2004 @@ -590,6 +590,56 @@ add ax,PKTBUF_SIZE loop .setbufptr +%if 1 +; +; Seed NextSocket... +; +%if 1 + push ebx + push edx + push ecx + xor eax,eax + + pushfd + pop eax + mov edx,eax + xor eax,1<<21 ; EFLAGS.ID + push eax + popfd + pushfd + pop eax + xor eax,edx + and eax,1<<21 + jz .skip_rdtsc + mov eax,1 + cpuid + and edx,1<<4 ; TSC + jz...
2002 Mar 08
0
PXELINUX: suggestion for improvement
...//www.sandpile.org/ia32/cpuid.htm. Finally, '-smp' suffix is + ; appended on Intel MP 1.x compliant machines. + ; + check_cpuid: + push dword [di-4] + push dword [di-8] + pushad + + mov dword [di-8],'i386' + mov dword [di-4],0 + + ; check if we can change EFLAGS.ID + pushfd + pop eax + mov edx,eax + xor eax,1<<21 ; EFLAGS.ID + push eax + popfd + pushfd + pop eax + xor eax,edx + and eax,1<<21 + jnz .do_cpuid + .done_cpuid: + mov si,trying_msg + call writestr + mov di,trackbuf + mov si,di + call writestr + call crlf + call o...
2008 Oct 02
4
"Xiph needs someone to help with assembly for MSVC!"
Hello, I write to you for the announcement in this blog: http://blog.hartwork.org/?p=86. I am interested in the open-source solution proposed in this article (the preprocessor-macros solution). Have you solved the problem? Does the offer still stands? Kind Regards, Fernando Pelliccioni. Buenos Aires, Argentina
2006 Nov 20
2
push-pop ordering error found in memdisk
...ress ; ecx = 32-bit word count ; ; Assumes cs = ds = es ; bcopy: push eax push ebx push edx push ebp test byte [ConfigFlags],CONFIG_RAW jz .anymode smsw ax ; Unprivileged! test al,01h jnz .protmode .realmode: TRACER 'r' ; We're in real mode, do it outselves pushfd ; <- *** push 1 *** push ds ; <- *** push 2 *** push es ; <- *** push 3 *** cli cld --------------------------------- then a little further down; or dx,bx push dx ; Save A20 status ; <- *** push 4 *** --------------------------------- but then after the copy, popping is...
2002 Feb 26
0
syslinux timeout
...popfd ret -%ifdef debug +; BEGIN DTM ------------------------------------------------ +;%ifdef debug +%ifdef debug or writehex +; END DTM -------------------------------------------------- ; ; writehex[248]: Write a hex number in (AL, AX, EAX) to the console ; writehex2: pushfd pushad rol eax,24 mov cx,2 jmp short writehex_common @@ -3414,33 +3475,38 @@ .low: add al,'0' jmp short .ischar .high: add al,'A'-10 .ischar: call writechr pop eax loop .loop popad popfd ret +%if 0 ; ; crlf: write CR LF ; +; DTM: Redefined if...
2006 Mar 10
2
unload memdisk+FreeDOS => local boot
Sensei H. Peter Anvin, I have successfully modified/enhanced memdisk so that one can chainload a local operating system after running diskless FreeDOS. I would like your advice regarding the appropriate interface for invoking this functionality. In addition, I would like to know what steps to take so that you feel comfortable considering including this in the standard syslinux distribution.