Browse Source

Merge pull request #1583 from martin-frbg/issue1575

Handle INCX=0,INCY=0 case
tags/v0.3.1
Martin Kroeker GitHub 7 years ago
parent
commit
8562d5787a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions
  1. +0
    -2
      kernel/x86/KERNEL.NEHALEM
  2. +8
    -0
      kernel/x86/swap.S

+ 0
- 2
kernel/x86/KERNEL.NEHALEM View File

@@ -1,3 +1 @@
include $(KERNELDIR)/KERNEL.PENRYN
SSWAPKERNEL = ../arm/swap.c
DSWAPKERNEL = ../arm/swap.c

+ 8
- 0
kernel/x86/swap.S View File

@@ -138,6 +138,14 @@
/* INCX != 1 or INCY != 1 */

.L14:
cmpl $0, %ebx
jne .L141
cmpl $0, %ecx
jne .L141
/* INCX == 0 and INCY == 0 */
jmp .L27

.L141:
movl %edx, %eax
sarl $2, %eax
jle .L28


Loading…
Cancel
Save