Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93444
b: refs/heads/master
c: 96f1bb8
h: refs/heads/master
v: v3
  • Loading branch information
Josh Boyer authored and Paul Mackerras committed Apr 24, 2008
1 parent 34fb04d commit 6ac1139
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e91d7119ba8031f57cee5814e31c893487844011
refs/heads/master: 96f1bb8a412aec3fc16306ef07c5bdb426edb615
1 change: 1 addition & 0 deletions trunk/arch/ppc/kernel/ppc_ksyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ EXPORT_SYMBOL(strncpy);
EXPORT_SYMBOL(strcat);
EXPORT_SYMBOL(strlen);
EXPORT_SYMBOL(strcmp);
EXPORT_SYMBOL(strncmp);

EXPORT_SYMBOL(csum_partial);
EXPORT_SYMBOL(csum_partial_copy_generic);
Expand Down
14 changes: 14 additions & 0 deletions trunk/arch/ppc/lib/string.S
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,20 @@ _GLOBAL(strcmp)
beq 1b
blr

_GLOBAL(strncmp)
PPC_LCMPI r5,0
beqlr
mtctr r5
addi r5,r3,-1
addi r4,r4,-1
1: lbzu r3,1(r5)
cmpwi 1,r3,0
lbzu r0,1(r4)
subf. r3,r0,r3
beqlr 1
bdnzt eq,1b
blr

_GLOBAL(strlen)
addi r4,r3,-1
1: lbzu r0,1(r4)
Expand Down

0 comments on commit 6ac1139

Please sign in to comment.