aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2011-10-31 20:12:51 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-10-31 20:30:56 -0400
commit50e1499f468fd74c6db95deb2e1e6bfee578ae70 (patch)
tree0b34eb53c9b164cd2f3562cdef1207b814ac26d8 /arch/cris
parent55036ba76b2d2fd53b5c00993fcec5ed56e83922 (diff)
kgdb: follow rename pack_hex_byte() to hex_byte_pack()
There is no functional change. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Jesper Nilsson <jesper.nilsson@axis.com> Cc: David Howells <dhowells@redhat.com> Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com> Cc: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/cris')
-rw-r--r--arch/cris/arch-v10/kernel/kgdb.c6
-rw-r--r--arch/cris/arch-v32/kernel/kgdb.c14
2 files changed, 10 insertions, 10 deletions
diff --git a/arch/cris/arch-v10/kernel/kgdb.c b/arch/cris/arch-v10/kernel/kgdb.c
index b9f9c8ce2169..b579dd02e098 100644
--- a/arch/cris/arch-v10/kernel/kgdb.c
+++ b/arch/cris/arch-v10/kernel/kgdb.c
@@ -694,7 +694,7 @@ mem2hex(char *buf, unsigned char *mem, int count)
694 /* Valid mem address. */ 694 /* Valid mem address. */
695 for (i = 0; i < count; i++) { 695 for (i = 0; i < count; i++) {
696 ch = *mem++; 696 ch = *mem++;
697 buf = pack_hex_byte(buf, ch); 697 buf = hex_byte_pack(buf, ch);
698 } 698 }
699 } 699 }
700 700
@@ -868,7 +868,7 @@ stub_is_stopped(int sigval)
868 /* Send trap type (converted to signal) */ 868 /* Send trap type (converted to signal) */
869 869
870 *ptr++ = 'T'; 870 *ptr++ = 'T';
871 ptr = pack_hex_byte(ptr, sigval); 871 ptr = hex_byte_pack(ptr, sigval);
872 872
873 /* Send register contents. We probably only need to send the 873 /* Send register contents. We probably only need to send the
874 * PC, frame pointer and stack pointer here. Other registers will be 874 * PC, frame pointer and stack pointer here. Other registers will be
@@ -881,7 +881,7 @@ stub_is_stopped(int sigval)
881 status = read_register (regno, &reg_cont); 881 status = read_register (regno, &reg_cont);
882 882
883 if (status == SUCCESS) { 883 if (status == SUCCESS) {
884 ptr = pack_hex_byte(ptr, regno); 884 ptr = hex_byte_pack(ptr, regno);
885 *ptr++ = ':'; 885 *ptr++ = ':';
886 886
887 ptr = mem2hex(ptr, (unsigned char *)&reg_cont, 887 ptr = mem2hex(ptr, (unsigned char *)&reg_cont,
diff --git a/arch/cris/arch-v32/kernel/kgdb.c b/arch/cris/arch-v32/kernel/kgdb.c
index c0343c3ea7f8..8c1d35cdf00a 100644
--- a/arch/cris/arch-v32/kernel/kgdb.c
+++ b/arch/cris/arch-v32/kernel/kgdb.c
@@ -677,7 +677,7 @@ mem2hex(char *buf, unsigned char *mem, int count)
677 /* Valid mem address. */ 677 /* Valid mem address. */
678 for (i = 0; i < count; i++) { 678 for (i = 0; i < count; i++) {
679 ch = *mem++; 679 ch = *mem++;
680 buf = pack_hex_byte(buf, ch); 680 buf = hex_byte_pack(buf, ch);
681 } 681 }
682 } 682 }
683 /* Terminate properly. */ 683 /* Terminate properly. */
@@ -695,7 +695,7 @@ mem2hex_nbo(char *buf, unsigned char *mem, int count)
695 mem += count - 1; 695 mem += count - 1;
696 for (i = 0; i < count; i++) { 696 for (i = 0; i < count; i++) {
697 ch = *mem--; 697 ch = *mem--;
698 buf = pack_hex_byte(buf, ch); 698 buf = hex_byte_pack(buf, ch);
699 } 699 }
700 700
701 /* Terminate properly. */ 701 /* Terminate properly. */
@@ -880,7 +880,7 @@ stub_is_stopped(int sigval)
880 /* Send trap type (converted to signal) */ 880 /* Send trap type (converted to signal) */
881 881
882 *ptr++ = 'T'; 882 *ptr++ = 'T';
883 ptr = pack_hex_byte(ptr, sigval); 883 ptr = hex_byte_pack(ptr, sigval);
884 884
885 if (((reg.exs & 0xff00) >> 8) == 0xc) { 885 if (((reg.exs & 0xff00) >> 8) == 0xc) {
886 886
@@ -988,26 +988,26 @@ stub_is_stopped(int sigval)
988 } 988 }
989 /* Only send PC, frame and stack pointer. */ 989 /* Only send PC, frame and stack pointer. */
990 read_register(PC, &reg_cont); 990 read_register(PC, &reg_cont);
991 ptr = pack_hex_byte(ptr, PC); 991 ptr = hex_byte_pack(ptr, PC);
992 *ptr++ = ':'; 992 *ptr++ = ':';
993 ptr = mem2hex(ptr, (unsigned char *)&reg_cont, register_size[PC]); 993 ptr = mem2hex(ptr, (unsigned char *)&reg_cont, register_size[PC]);
994 *ptr++ = ';'; 994 *ptr++ = ';';
995 995
996 read_register(R8, &reg_cont); 996 read_register(R8, &reg_cont);
997 ptr = pack_hex_byte(ptr, R8); 997 ptr = hex_byte_pack(ptr, R8);
998 *ptr++ = ':'; 998 *ptr++ = ':';
999 ptr = mem2hex(ptr, (unsigned char *)&reg_cont, register_size[R8]); 999 ptr = mem2hex(ptr, (unsigned char *)&reg_cont, register_size[R8]);
1000 *ptr++ = ';'; 1000 *ptr++ = ';';
1001 1001
1002 read_register(SP, &reg_cont); 1002 read_register(SP, &reg_cont);
1003 ptr = pack_hex_byte(ptr, SP); 1003 ptr = hex_byte_pack(ptr, SP);
1004 *ptr++ = ':'; 1004 *ptr++ = ':';
1005 ptr = mem2hex(ptr, (unsigned char *)&reg_cont, register_size[SP]); 1005 ptr = mem2hex(ptr, (unsigned char *)&reg_cont, register_size[SP]);
1006 *ptr++ = ';'; 1006 *ptr++ = ';';
1007 1007
1008 /* Send ERP as well; this will save us an entire register fetch in some cases. */ 1008 /* Send ERP as well; this will save us an entire register fetch in some cases. */
1009 read_register(ERP, &reg_cont); 1009 read_register(ERP, &reg_cont);
1010 ptr = pack_hex_byte(ptr, ERP); 1010 ptr = hex_byte_pack(ptr, ERP);
1011 *ptr++ = ':'; 1011 *ptr++ = ':';
1012 ptr = mem2hex(ptr, (unsigned char *)&reg_cont, register_size[ERP]); 1012 ptr = mem2hex(ptr, (unsigned char *)&reg_cont, register_size[ERP]);
1013 *ptr++ = ';'; 1013 *ptr++ = ';';