Browse Source

Make ppccpuid AIX friendly.

master
Andy Polyakov 15 years ago
parent
commit
a3963619f6
2 changed files with 5 additions and 3 deletions
  1. +3
    -1
      crypto/Makefile
  2. +2
    -2
      crypto/ppccpuid.pl

+ 3
- 1
crypto/Makefile View File

@ -77,7 +77,9 @@ x86_64cpuid.s: x86_64cpuid.pl
$(PERL) x86_64cpuid.pl $@
ia64cpuid.s: ia64cpuid.S
$(CC) $(CFLAGS) -E ia64cpuid.S > $@
ppccpuid_%.s: ppccpuid.pl; $(PERL) $< $@
ppccpuid_%.s: ppccpuid.pl; $(PERL) $< $@
ppccpuid_aix32.s: ppccpuid.pl; $(PERL) ppccpuid.pl $@
ppccpuid_aix64.s: ppccpuid.pl; $(PERL) ppccpuid.pl $@
testapps:
[ -z "$(THIS)" ] || ( if echo ${SDIRS} | fgrep ' des '; \


+ 2
- 2
crypto/ppccpuid.pl View File

@ -70,7 +70,7 @@ Loop: lwarx r5,0,r3
Little: mtctr r4
stb r0,0(r3)
addi r3,r3,1
bdnz- .-8
bdnz- $-8
blr
Lot: andi. r5,r3,3
beq Laligned
@ -83,7 +83,7 @@ Laligned:
mtctr r5
stw r0,0(r3)
addi r3,r3,4
bdnz- .-8
bdnz- $-8
andi. r4,r4,3
bne Little
blr


Loading…
Cancel
Save