diff options
author | Jiri Kosina <jkosina@suse.cz> | 2011-11-13 14:55:35 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-11-13 14:55:53 -0500 |
commit | 2290c0d06d82faee87b1ab2d9d4f7bf81ef64379 (patch) | |
tree | e075e4d5534193f28e6059904f61e5ca03958d3c /arch/frv | |
parent | 4da669a2e3e5bc70b30a0465f3641528681b5f77 (diff) | |
parent | 52e4c2a05256cb83cda12f3c2137ab1533344edb (diff) |
Merge branch 'master' into for-next
Sync with Linus tree to have 157550ff ("mtd: add GPMI-NAND driver
in the config and Makefile") as I have patch depending on that one.
Diffstat (limited to 'arch/frv')
-rw-r--r-- | arch/frv/kernel/gdb-stub.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/arch/frv/kernel/gdb-stub.c b/arch/frv/kernel/gdb-stub.c index a4dba6b20bd0..a6d5381c94fe 100644 --- a/arch/frv/kernel/gdb-stub.c +++ b/arch/frv/kernel/gdb-stub.c | |||
@@ -672,7 +672,7 @@ static unsigned char *mem2hex(const void *_mem, char *buf, int count, int may_fa | |||
672 | if ((uint32_t)mem&1 && count>=1) { | 672 | if ((uint32_t)mem&1 && count>=1) { |
673 | if (!gdbstub_read_byte(mem,ch)) | 673 | if (!gdbstub_read_byte(mem,ch)) |
674 | return NULL; | 674 | return NULL; |
675 | buf = pack_hex_byte(buf, ch[0]); | 675 | buf = hex_byte_pack(buf, ch[0]); |
676 | mem++; | 676 | mem++; |
677 | count--; | 677 | count--; |
678 | } | 678 | } |
@@ -680,8 +680,8 @@ static unsigned char *mem2hex(const void *_mem, char *buf, int count, int may_fa | |||
680 | if ((uint32_t)mem&3 && count>=2) { | 680 | if ((uint32_t)mem&3 && count>=2) { |
681 | if (!gdbstub_read_word(mem,(uint16_t *)ch)) | 681 | if (!gdbstub_read_word(mem,(uint16_t *)ch)) |
682 | return NULL; | 682 | return NULL; |
683 | buf = pack_hex_byte(buf, ch[0]); | 683 | buf = hex_byte_pack(buf, ch[0]); |
684 | buf = pack_hex_byte(buf, ch[1]); | 684 | buf = hex_byte_pack(buf, ch[1]); |
685 | mem += 2; | 685 | mem += 2; |
686 | count -= 2; | 686 | count -= 2; |
687 | } | 687 | } |
@@ -689,10 +689,10 @@ static unsigned char *mem2hex(const void *_mem, char *buf, int count, int may_fa | |||
689 | while (count>=4) { | 689 | while (count>=4) { |
690 | if (!gdbstub_read_dword(mem,(uint32_t *)ch)) | 690 | if (!gdbstub_read_dword(mem,(uint32_t *)ch)) |
691 | return NULL; | 691 | return NULL; |
692 | buf = pack_hex_byte(buf, ch[0]); | 692 | buf = hex_byte_pack(buf, ch[0]); |
693 | buf = pack_hex_byte(buf, ch[1]); | 693 | buf = hex_byte_pack(buf, ch[1]); |
694 | buf = pack_hex_byte(buf, ch[2]); | 694 | buf = hex_byte_pack(buf, ch[2]); |
695 | buf = pack_hex_byte(buf, ch[3]); | 695 | buf = hex_byte_pack(buf, ch[3]); |
696 | mem += 4; | 696 | mem += 4; |
697 | count -= 4; | 697 | count -= 4; |
698 | } | 698 | } |
@@ -700,8 +700,8 @@ static unsigned char *mem2hex(const void *_mem, char *buf, int count, int may_fa | |||
700 | if (count>=2) { | 700 | if (count>=2) { |
701 | if (!gdbstub_read_word(mem,(uint16_t *)ch)) | 701 | if (!gdbstub_read_word(mem,(uint16_t *)ch)) |
702 | return NULL; | 702 | return NULL; |
703 | buf = pack_hex_byte(buf, ch[0]); | 703 | buf = hex_byte_pack(buf, ch[0]); |
704 | buf = pack_hex_byte(buf, ch[1]); | 704 | buf = hex_byte_pack(buf, ch[1]); |
705 | mem += 2; | 705 | mem += 2; |
706 | count -= 2; | 706 | count -= 2; |
707 | } | 707 | } |
@@ -709,7 +709,7 @@ static unsigned char *mem2hex(const void *_mem, char *buf, int count, int may_fa | |||
709 | if (count>=1) { | 709 | if (count>=1) { |
710 | if (!gdbstub_read_byte(mem,ch)) | 710 | if (!gdbstub_read_byte(mem,ch)) |
711 | return NULL; | 711 | return NULL; |
712 | buf = pack_hex_byte(buf, ch[0]); | 712 | buf = hex_byte_pack(buf, ch[0]); |
713 | } | 713 | } |
714 | 714 | ||
715 | *buf = 0; | 715 | *buf = 0; |
@@ -1498,21 +1498,21 @@ void gdbstub(int sigval) | |||
1498 | ptr = mem2hex(title, ptr, sizeof(title) - 1,0); | 1498 | ptr = mem2hex(title, ptr, sizeof(title) - 1,0); |
1499 | 1499 | ||
1500 | hx = hex_asc_hi(brr >> 24); | 1500 | hx = hex_asc_hi(brr >> 24); |
1501 | ptr = pack_hex_byte(ptr, hx); | 1501 | ptr = hex_byte_pack(ptr, hx); |
1502 | hx = hex_asc_lo(brr >> 24); | 1502 | hx = hex_asc_lo(brr >> 24); |
1503 | ptr = pack_hex_byte(ptr, hx); | 1503 | ptr = hex_byte_pack(ptr, hx); |
1504 | hx = hex_asc_hi(brr >> 16); | 1504 | hx = hex_asc_hi(brr >> 16); |
1505 | ptr = pack_hex_byte(ptr, hx); | 1505 | ptr = hex_byte_pack(ptr, hx); |
1506 | hx = hex_asc_lo(brr >> 16); | 1506 | hx = hex_asc_lo(brr >> 16); |
1507 | ptr = pack_hex_byte(ptr, hx); | 1507 | ptr = hex_byte_pack(ptr, hx); |
1508 | hx = hex_asc_hi(brr >> 8); | 1508 | hx = hex_asc_hi(brr >> 8); |
1509 | ptr = pack_hex_byte(ptr, hx); | 1509 | ptr = hex_byte_pack(ptr, hx); |
1510 | hx = hex_asc_lo(brr >> 8); | 1510 | hx = hex_asc_lo(brr >> 8); |
1511 | ptr = pack_hex_byte(ptr, hx); | 1511 | ptr = hex_byte_pack(ptr, hx); |
1512 | hx = hex_asc_hi(brr); | 1512 | hx = hex_asc_hi(brr); |
1513 | ptr = pack_hex_byte(ptr, hx); | 1513 | ptr = hex_byte_pack(ptr, hx); |
1514 | hx = hex_asc_lo(brr); | 1514 | hx = hex_asc_lo(brr); |
1515 | ptr = pack_hex_byte(ptr, hx); | 1515 | ptr = hex_byte_pack(ptr, hx); |
1516 | 1516 | ||
1517 | ptr = mem2hex(crlf, ptr, sizeof(crlf) - 1, 0); | 1517 | ptr = mem2hex(crlf, ptr, sizeof(crlf) - 1, 0); |
1518 | *ptr = 0; | 1518 | *ptr = 0; |
@@ -1526,10 +1526,10 @@ void gdbstub(int sigval) | |||
1526 | 1526 | ||
1527 | /* Send trap type (converted to signal) */ | 1527 | /* Send trap type (converted to signal) */ |
1528 | *ptr++ = 'T'; | 1528 | *ptr++ = 'T'; |
1529 | ptr = pack_hex_byte(ptr, sigval); | 1529 | ptr = hex_byte_pack(ptr, sigval); |
1530 | 1530 | ||
1531 | /* Send Error PC */ | 1531 | /* Send Error PC */ |
1532 | ptr = pack_hex_byte(ptr, GDB_REG_PC); | 1532 | ptr = hex_byte_pack(ptr, GDB_REG_PC); |
1533 | *ptr++ = ':'; | 1533 | *ptr++ = ':'; |
1534 | ptr = mem2hex(&__debug_frame->pc, ptr, 4, 0); | 1534 | ptr = mem2hex(&__debug_frame->pc, ptr, 4, 0); |
1535 | *ptr++ = ';'; | 1535 | *ptr++ = ';'; |
@@ -1537,7 +1537,7 @@ void gdbstub(int sigval) | |||
1537 | /* | 1537 | /* |
1538 | * Send frame pointer | 1538 | * Send frame pointer |
1539 | */ | 1539 | */ |
1540 | ptr = pack_hex_byte(ptr, GDB_REG_FP); | 1540 | ptr = hex_byte_pack(ptr, GDB_REG_FP); |
1541 | *ptr++ = ':'; | 1541 | *ptr++ = ':'; |
1542 | ptr = mem2hex(&__debug_frame->fp, ptr, 4, 0); | 1542 | ptr = mem2hex(&__debug_frame->fp, ptr, 4, 0); |
1543 | *ptr++ = ';'; | 1543 | *ptr++ = ';'; |
@@ -1545,7 +1545,7 @@ void gdbstub(int sigval) | |||
1545 | /* | 1545 | /* |
1546 | * Send stack pointer | 1546 | * Send stack pointer |
1547 | */ | 1547 | */ |
1548 | ptr = pack_hex_byte(ptr, GDB_REG_SP); | 1548 | ptr = hex_byte_pack(ptr, GDB_REG_SP); |
1549 | *ptr++ = ':'; | 1549 | *ptr++ = ':'; |
1550 | ptr = mem2hex(&__debug_frame->sp, ptr, 4, 0); | 1550 | ptr = mem2hex(&__debug_frame->sp, ptr, 4, 0); |
1551 | *ptr++ = ';'; | 1551 | *ptr++ = ';'; |