aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/dis.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2012-08-05 06:25:10 -0400
committerAvi Kivity <avi@redhat.com>2012-08-05 06:25:10 -0400
commitfe56097b23b1303b894eefd91582e4a64247d03f (patch)
tree4b3ab60eb19e8cfe2884e2da66dd4e4e25ae2274 /arch/s390/kernel/dis.c
parente115676e042f4d9268c6b6d8cb7dc962aa6cfd7d (diff)
parente7882d6c40874a5b5033ca85f7508a602a60b662 (diff)
Merge remote-tracking branch 'upstream' into next
- bring back critical fixes (esp. aa67f6096c19bc) - provide an updated base for development * upstream: (4334 commits) missed mnt_drop_write() in do_dentry_open() UBIFS: nuke pdflush from comments gfs2: nuke pdflush from comments drbd: nuke pdflush from comments nilfs2: nuke write_super from comments hfs: nuke write_super from comments vfs: nuke pdflush from comments jbd/jbd2: nuke write_super from comments btrfs: nuke pdflush from comments btrfs: nuke write_super from comments ext4: nuke pdflush from comments ext4: nuke write_super from comments ext3: nuke write_super from comments Documentation: fix the VM knobs descritpion WRT pdflush Documentation: get rid of write_super vfs: kill write_super and sync_supers ACPI processor: Fix tick_broadcast_mask online/offline regression ACPI: Only count valid srat memory structures ACPI: Untangle a return statement for better readability Linux 3.6-rc1 ... Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/s390/kernel/dis.c')
-rw-r--r--arch/s390/kernel/dis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/kernel/dis.c b/arch/s390/kernel/dis.c
index c02310b8db09..ffb622b16ab5 100644
--- a/arch/s390/kernel/dis.c
+++ b/arch/s390/kernel/dis.c
@@ -1558,7 +1558,7 @@ static int print_insn(char *buffer, unsigned char *code, unsigned long addr)
1558 1558
1559void show_code(struct pt_regs *regs) 1559void show_code(struct pt_regs *regs)
1560{ 1560{
1561 char *mode = (regs->psw.mask & PSW_MASK_PSTATE) ? "User" : "Krnl"; 1561 char *mode = user_mode(regs) ? "User" : "Krnl";
1562 unsigned char code[64]; 1562 unsigned char code[64];
1563 char buffer[64], *ptr; 1563 char buffer[64], *ptr;
1564 mm_segment_t old_fs; 1564 mm_segment_t old_fs;
@@ -1567,7 +1567,7 @@ void show_code(struct pt_regs *regs)
1567 1567
1568 /* Get a snapshot of the 64 bytes surrounding the fault address. */ 1568 /* Get a snapshot of the 64 bytes surrounding the fault address. */
1569 old_fs = get_fs(); 1569 old_fs = get_fs();
1570 set_fs((regs->psw.mask & PSW_MASK_PSTATE) ? USER_DS : KERNEL_DS); 1570 set_fs(user_mode(regs) ? USER_DS : KERNEL_DS);
1571 for (start = 32; start && regs->psw.addr >= 34 - start; start -= 2) { 1571 for (start = 32; start && regs->psw.addr >= 34 - start; start -= 2) {
1572 addr = regs->psw.addr - 34 + start; 1572 addr = regs->psw.addr - 34 + start;
1573 if (__copy_from_user(code + start - 2, 1573 if (__copy_from_user(code + start - 2,