Skip to content

Commit 8562d57

Browse files
authored
Merge pull request #1583 from martin-frbg/issue1575
Handle INCX=0,INCY=0 case
2 parents 93f1eb0 + 7df8c4f commit 8562d57

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

kernel/x86/KERNEL.NEHALEM

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
include $(KERNELDIR)/KERNEL.PENRYN
2-
SSWAPKERNEL = ../arm/swap.c
3-
DSWAPKERNEL = ../arm/swap.c

kernel/x86/swap.S

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@
138138
/* INCX != 1 or INCY != 1 */
139139

140140
.L14:
141+
cmpl $0, %ebx
142+
jne .L141
143+
cmpl $0, %ecx
144+
jne .L141
145+
/* INCX == 0 and INCY == 0 */
146+
jmp .L27
147+
148+
.L141:
141149
movl %edx, %eax
142150
sarl $2, %eax
143151
jle .L28

0 commit comments

Comments
 (0)