Displaying 20 results from an estimated 35 matches for "jnc".
Did you mean:
inc
2009 May 04
3
[RFC][PATCH] poweroff COMBOOT module
...+++ syslinux-3.80-pre7/modules/poweroff.asm
@@ -0,0 +1,86 @@
+ absolute 0
+pspInt20: resw 1
+pspNextP: resw 1
+ resb 124
+pspCmdLen: resb 1
+pspCmdArg: resb 127
+
+ section .text
+ org 0x100
+
+_start:
+ mov ax,5300h ; APM Installation Check (00h)
+ xor bx,bx ; APM BIOS (0000h)
+ int 15h
+ jnc check_sig
+
+ mov bx, msg_notpresent
+ jmp error
+
+check_sig:
+ cmp bx,504Dh ; signature 'PM'
+ je check_ver
+
+ mov bx, msg_notpresent
+ jmp error
+
+check_ver:
+ cmp ax,0101h ; Need version 1.1+
+ jae check_state
+
+ mov bx, msg_notsup
+ jmp error
+
+check_state:
+ test cx,8 ;...
2005 Sep 17
2
com16/com32 module for APM powerdown
...print 1
mov dx, %1
mov ah, 0x9
int 0x21
%endmacro
%macro apm 3
mov ah, 0x53
mov al, %1
mov bx, %2
mov cx, %3
int 0x15
%endmacro
section .text
cpu 8086
org 0100h
_start:
; echo (C)
print msg_cpy
; check APM support
apm 0, 0, 0
jnc apm_checkver
; APM not found
noapm:
print msg_noapm
jmp exit
; check bx for PM
apm_checkver:
cmp bx, 0x504d
jne noapm
; save flags and version
mov [apm_flags], cx
mov [apm_version], ax
; show apm version
add ax, 0x3030
mov [apm_ver_maj], ah
mov [apm_ver_min], al
print msg_apm...
2017 Mar 22
3
"isolinux.bin missing or corrupt" when booting USB flash drive in old PC
...est.
/* Check to see if we have EBIOS */
pushw %dx /* drive number */
movb $0x41, %ah /* %al == 0 already */
movw $0x55aa, %bx
xorw %cx, %cx
xorb %dh, %dh
stc
int
$0x13
//XXX jc 1f
jnc 1f
cmpw $0xaa55, %bx
jne 1f
andw $1,%cx /* Bit 0 = fixed disk subset */
jz 1f
With that jc changed to jnc you will invert the result of the EBIOS
test and my qemu always has EBIOS.
Download the resulting isohdpfx here:
<http://www.ludd....
2007 Apr 18
0
[RFC/PATCH PV_OPS X86_64 12/17] paravirt_ops - interrupt/exception changes
...(system_call)
* No need to follow this irqs off/on section - it's straight
* and short:
*/
- sti
+ ENABLE_INTERRUPTS(CLBR_NONE)
SAVE_ARGS 8,1
movq %rax,ORIG_RAX-ARGOFFSET(%rsp)
movq %rcx,RIP-ARGOFFSET(%rsp)
@@ -270,7 +280,7 @@ sysret_careful:
bt $TIF_NEED_RESCHED,%edx
jnc sysret_signal
TRACE_IRQS_ON
- sti
+ ENABLE_INTERRUPTS(CLBR_NONE)
pushq %rdi
CFI_ADJUST_CFA_OFFSET 8
call schedule
@@ -281,7 +291,7 @@ sysret_careful:
/* Handle a signal */
sysret_signal:
TRACE_IRQS_ON
- sti
+ ENABLE_INTERRUPTS(CLBR_NONE)
testl $(_TIF_SIGPENDING|_TIF_NOTIFY_RESUME|_T...
2007 Apr 18
0
[RFC/PATCH PV_OPS X86_64 12/17] paravirt_ops - interrupt/exception changes
...(system_call)
* No need to follow this irqs off/on section - it's straight
* and short:
*/
- sti
+ ENABLE_INTERRUPTS(CLBR_NONE)
SAVE_ARGS 8,1
movq %rax,ORIG_RAX-ARGOFFSET(%rsp)
movq %rcx,RIP-ARGOFFSET(%rsp)
@@ -270,7 +280,7 @@ sysret_careful:
bt $TIF_NEED_RESCHED,%edx
jnc sysret_signal
TRACE_IRQS_ON
- sti
+ ENABLE_INTERRUPTS(CLBR_NONE)
pushq %rdi
CFI_ADJUST_CFA_OFFSET 8
call schedule
@@ -281,7 +291,7 @@ sysret_careful:
/* Handle a signal */
sysret_signal:
TRACE_IRQS_ON
- sti
+ ENABLE_INTERRUPTS(CLBR_NONE)
testl $(_TIF_SIGPENDING|_TIF_NOTIFY_RESUME|_T...
2019 Jul 21
2
Altering the return address , for a function with multiple return paths
...de later than it should've -- the
Pentium1 MMX from 1997 already had a hardware return stack which made this
a really bad idea!
What it does now is have the called function set or clear the carry flag
(using STC and CLC) immediately before the return. If the caller cares,
then the caller emits JNC as the first instruction after the call. (but
callers typically do not care -- most calls only consume a single value,
and any extra return-values are silently ignored).
On Sun, Jul 21, 2019, 6:18 AM Jacob Lifshay via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> one (non-LLVM) proble...
2005 Mar 26
4
[ISOLINUX] No boot: prompt with ISOLINUX 3.07
I found that the version of isolinux.bin (and the debug version too)
doesn't work on my Via C3 system. I get the SAY text, but never the boot:
prompt. C-A-Del doesn't reboot either.
The debug version does not print anything after announcing it's opening
the config file. Only the single SAY text follows. The cursor sits on
the next blank line, useless (no responses to key presses).
2009 Feb 08
1
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT; Try 2
...minate if first line as we rolled
over the end
+ mov al,0
+ stosb
+
+.vfat_find_next: ;Find the next part of the name
+ pop di
+ pop si
+ pop ecx
+ pop eax
+ cmp dl,0
+ jz .vfat_find_info ; We're done with the name
+ add si,DIRENT_SIZE
+ dec cx
+ jnz .vfat_entry
+ call nextsector
+ jnc .vfat_entry ; CF is set if we're at end
+ jmp .fail
+.vfat_find_info: ; Fetch next entry for the size/"INode"
+ add si,DIRENT_SIZE
+ dec cx
+ jnz .get_info
+ call nextsector
+ jnc .get_info ; CF is set if we're at end
+ jmp .fail
+.vfat_abort: ; Something went wrong, s...
2008 Dec 04
2
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT
...minate if first line as we rolled
over the end
+ mov al,0
+ stosb
+
+.vfat_find_next: ;Find the next part of the name
+ pop di
+ pop si
+ pop ecx
+ pop eax
+ cmp dl,0
+ jz .vfat_find_info ; We're done with the name
+ add si,DIRENT_SIZE
+ dec cx
+ jnz .vfat_entry
+ call nextsector
+ jnc .vfat_entry ; CF is set if we're at end
+ jmp .fail
+.vfat_find_info: ; Fetch next entry for the size/"INode"
+ add si,DIRENT_SIZE
+ dec cx
+ jnz .get_info
+ call nextsector
+ jnc .get_info ; CF is set if we're at end
+ jmp .fail
+.vfat_abort: ; Something went wrong, s...
2008 Nov 22
5
[RFC][PATCH] Gfxboot COMBOOT module
...n:
+; edx filename buffer (64 bytes)
+;
+cb_status:
+ mov edx,cs
+ shl edx,4
+ add edx,fname_buf
+
+ xor al,al
+ ret
+
+; Open file
+;
+; return:
+; al 0: ok, 1: file not found
+; ecx file length (al = 0)
+;
+cb_fopen:
+ push ds
+ pop es
+ mov ax,6
+ mov si,fname_buf
+ int 22h
+ jnc cb_fopen_ok
+ mov al,1
+ jmp cb_fopen_end
+cb_fopen_ok:
+ mov ecx,eax
+ mov [f_handle],si
+ mov [f_size],ecx
+ xor al,al
+cb_fopen_end:
+ ret
+
+; Read next chunk
+;
+; return:
+; edx buffer address (linear)
+; ecx data length (< 64k)
+;
+cb_fread:
+ cmp dword [f_size],0
+ jz cb_f...
2002 Sep 03
0
isolinux.asm - improving spec_query_failed routine...
...=0 - in emulation mode
; DL - drive number for emulation
get_emul_drive:
push ax
push si
; mov [spec_packet], 13h
mov dl, 0ffh ; drive number
get_emul_drive1:
mov ax, 4b01h ; get status
mov [spec_packet], 0
call int13
; Bogus Dell PC's do not return carry flag correctly - ignoring it
; jnc get_emul_drive_ok
; some bogus bioses (Dell Inspiron 2500) returns packet size 0xff when
failed
; Dell Dimension XPsT returns packet size 0x14 when OK
cmp [spec_packet], 13h ; anything between 13h and 20h
should be OK
jb get_emul_trynext
cmp [spec_packet], 20h
ja get_emul_trynext
jmp short g...
2009 Jul 15
0
[PATCH] gfxboot: display error message if bootlogo file not found
...ndex: syslinux-3.82-440-g6483c80/modules/gfxboot.asm
===================================================================
--- syslinux-3.82-440-g6483c80.orig/modules/gfxboot.asm
+++ syslinux-3.82-440-g6483c80/modules/gfxboot.asm
@@ -417,6 +417,14 @@ gfx_read_file:
mov si,pspCmdArg+1
int 22h
jnc gfx_file_read
+
+ mov ax,2
+ mov bx,pspCmdArg+1
+ int 22h
+
+ mov ax,2
+ mov bx,msg_not_found
+ int 22h
stc
ret
@@ -890,6 +898,7 @@ msg_memory db 'Could not detect availab
msg_bootlogo_toobig db 'bootlogo file too big',0dh,0ah,0
msg_pxelinux db 'pxelinux is not sup...
2009 Apr 05
3
[PATCH] Gfxboot COMBOOT module
...n:
+; edx filename buffer (64 bytes)
+;
+cb_status:
+ mov edx,cs
+ shl edx,4
+ add edx,fname_buf
+
+ xor al,al
+ ret
+
+; Open file
+;
+; return:
+; al 0: ok, 1: file not found
+; ecx file length (al = 0)
+;
+cb_fopen:
+ push ds
+ pop es
+ mov ax,6
+ mov si,fname_buf
+ int 22h
+ jnc cb_fopen_ok
+cb_fopen_failed:
+ mov al,1
+ jmp cb_fopen_end
+cb_fopen_ok:
+ mov ecx,eax
+ mov [f_handle],si
+ mov [f_size],ecx
+ xor al,al
+cb_fopen_end:
+ ret
+
+; Read next chunk
+;
+; return:
+; edx buffer address (linear)
+; ecx data length (< 64k)
+;
+cb_fread:
+ cmp dword [f_...
2017 Mar 21
3
"isolinux.bin missing or corrupt" when booting USB flash drive in old PC
Thomas Schmitt wrote:
> My main point of interest is which block is really loaded as first one
> of isolinux.bin.
[Program snipped.]
> (It could be shorter if i did not insist in big endian words.)
Why insisting?
Anyway appended is a dumper version. I could put up a binery version
if needed. Let me know if so.
--
MartinS
/*
2007 Feb 25
0
[Bug 549] New: kernel oops when trying to remove ip_conntrack module
...k module
Product: netfilter/iptables
Version: linux-2.6.x
Platform: x86_64
OS/Version: Fedora
Status: NEW
Severity: critical
Priority: P2
Component: unknown
AssignedTo: laforge@netfilter.org
ReportedBy: jnc@astrakhan.ru
This is Fedora Core 6 x86_64 fresh installation, 2.6.19-1.2911.fc6 kernel.
Problem is, that when unloading ip_conntrack module, a kernel oops occurs.
When only ip_conntrack_ftp / ip_nat_ftp modules are loaded, the below
happens. When ip_conntrack_pptp / ip_nat_pptp modules are...
2017 Mar 18
0
isohybrid boot from logical partition
...have EBIOS */
pushw %dx /* drive number */
movb $0x41, %ah /* %al == 0 already */
movw $0x55aa, %bx
xorw %cx, %cx
xorb %dh, %dh
stc
int $0x13
popw %dx /* restore drive */
movb $0x08, %ah /* get CHS geometry */
jc 1f
cmpw $0xaa55, %bx
jne 1f
shrw %cx /* Bit 0 = fixed disk subset */
jnc 1f
/* We have EBIOS; patch in the following code at
read_sector_cbios: movb $0x42, %ah ; jmp read_common */
movl $0xeb42b4+((read_common-read_sector_cbios-4) << 24), \
(read_sector_cbios)
/*
* read sector size.
* Should not fail but if it does I assume that at least
* previo...
2017 Mar 24
3
"isolinux.bin missing or corrupt" when booting USB flash drive in old PC
...S returns no carry indicating maybe
support. However it doesn't set BX to the correct value, so isohdpfx.S
jumps to 1f with some flags in CX set.
Or David's machine's BIOS returns carry but corrupts CX.
My versions of isohdpfc just replaced the first "jc 1f" above with
"jnc 1f" or with "jmp 1f", thus in the end possibly indicating EBIOS
support to isolinux (assuming weird return status on the EBIOS check).
Then I interpret the code in isolinux that when EBIOS calls doesn't
work it will fall back to old not extended calls (CBIOS?). That's why
it...
2007 Apr 18
0
[PATCH] paravirt_ops x86_64 , take 2
...E_IRQS_OFF
movl threadinfo_flags(%rcx),%edx
andl %edi,%edx
@@ -261,7 +269,7 @@ sysret_check:
/*CFI_REGISTER rflags,r11*/
movq %gs:pda_oldrsp,%rsp
swapgs
- sysretq
+ SYSRETQ
CFI_RESTORE_STATE
/* Handle reschedules */
@@ -270,7 +278,7 @@ sysret_careful:
bt $TIF_NEED_RESCHED,%edx
jnc sysret_signal
TRACE_IRQS_ON
- sti
+ ENABLE_INTERRUPTS(CLBR_NONE)
pushq %rdi
CFI_ADJUST_CFA_OFFSET 8
call schedule
@@ -281,7 +289,7 @@ sysret_careful:
/* Handle a signal */
sysret_signal:
TRACE_IRQS_ON
- sti
+ ENABLE_INTERRUPTS(CLBR_NONE)
testl $(_TIF_SIGPENDING|_TIF_NOTIFY_RESUME|_T...
2007 Apr 18
0
[PATCH] paravirt_ops x86_64 , take 2
...E_IRQS_OFF
movl threadinfo_flags(%rcx),%edx
andl %edi,%edx
@@ -261,7 +269,7 @@ sysret_check:
/*CFI_REGISTER rflags,r11*/
movq %gs:pda_oldrsp,%rsp
swapgs
- sysretq
+ SYSRETQ
CFI_RESTORE_STATE
/* Handle reschedules */
@@ -270,7 +278,7 @@ sysret_careful:
bt $TIF_NEED_RESCHED,%edx
jnc sysret_signal
TRACE_IRQS_ON
- sti
+ ENABLE_INTERRUPTS(CLBR_NONE)
pushq %rdi
CFI_ADJUST_CFA_OFFSET 8
call schedule
@@ -281,7 +289,7 @@ sysret_careful:
/* Handle a signal */
sysret_signal:
TRACE_IRQS_ON
- sti
+ ENABLE_INTERRUPTS(CLBR_NONE)
testl $(_TIF_SIGPENDING|_TIF_NOTIFY_RESUME|_T...
2017 Mar 26
0
"isolinux.bin missing or corrupt" when booting USB flash drive in old PC
...be
> support. However it doesn't set BX to the correct value, so isohdpfx.S
> jumps to 1f with some flags in CX set.
>
> Or David's machine's BIOS returns carry but corrupts CX.
>
> My versions of isohdpfc just replaced the first "jc 1f" above with
> "jnc 1f" or with "jmp 1f", thus in the end possibly indicating EBIOS
> support to isolinux (assuming weird return status on the EBIOS check).
>
> Then I interpret the code in isolinux that when EBIOS calls doesn't
> work it will fall back to old not extended calls (CBIOS?)...