diff options
author | deischen <deischen@FreeBSD.org> | 2003-04-29 21:05:17 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2003-04-29 21:05:17 +0000 |
commit | 975e4bcef1ba69d85a5c90f1849accc3cd74cb65 (patch) | |
tree | 4741618e508297538ee6ebc8a25f6278169e1a31 /lib | |
parent | 6bd4376dc86f246ff07451d32eeeab0742747649 (diff) | |
download | FreeBSD-src-975e4bcef1ba69d85a5c90f1849accc3cd74cb65.zip FreeBSD-src-975e4bcef1ba69d85a5c90f1849accc3cd74cb65.tar.gz |
Jump to the correct label upon detecting an error.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libpthread/arch/i386/i386/thr_switch.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/arch/i386/i386/thr_switch.S b/lib/libpthread/arch/i386/i386/thr_switch.S index f8da6b6..f9c8b92 100644 --- a/lib/libpthread/arch/i386/i386/thr_switch.S +++ b/lib/libpthread/arch/i386/i386/thr_switch.S @@ -57,11 +57,11 @@ ENTRY(_thread_switch) cmpl $0, %edx /* check for null pointer */ jne 1f movl $-1, %eax - jmp 5f + jmp 9f 1: cmpl $MC_SIZE, UC_MC_LEN_OFFSET(%edx) /* is context valid? */ je 2f movl $-1, %eax /* bzzzt, invalid context */ - jmp 5f + jmp 9f 2: movl 8(%esp), %ecx /* get address of curthreadp */ movl %edx, %ebx /* save the pointer for later */ /* |