summaryrefslogtreecommitdiff
path: root/ANDROID_3.4.5/arch/microblaze/kernel/traps.c
diff options
context:
space:
mode:
authorSrikant Patnaik2015-01-11 12:28:04 +0530
committerSrikant Patnaik2015-01-11 12:28:04 +0530
commit871480933a1c28f8a9fed4c4d34d06c439a7a422 (patch)
tree8718f573808810c2a1e8cb8fb6ac469093ca2784 /ANDROID_3.4.5/arch/microblaze/kernel/traps.c
parent9d40ac5867b9aefe0722bc1f110b965ff294d30d (diff)
downloadFOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.gz
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.bz2
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.zip
Moved, renamed, and deleted files
The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure.
Diffstat (limited to 'ANDROID_3.4.5/arch/microblaze/kernel/traps.c')
-rw-r--r--ANDROID_3.4.5/arch/microblaze/kernel/traps.c85
1 files changed, 0 insertions, 85 deletions
diff --git a/ANDROID_3.4.5/arch/microblaze/kernel/traps.c b/ANDROID_3.4.5/arch/microblaze/kernel/traps.c
deleted file mode 100644
index 5541ac55..00000000
--- a/ANDROID_3.4.5/arch/microblaze/kernel/traps.c
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu>
- * Copyright (C) 2007-2009 PetaLogix
- * Copyright (C) 2006 Atmark Techno, Inc.
- *
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- */
-
-#include <linux/kernel.h>
-#include <linux/kallsyms.h>
-#include <linux/module.h>
-#include <linux/sched.h>
-#include <linux/debug_locks.h>
-
-#include <asm/exceptions.h>
-#include <asm/unwind.h>
-
-void trap_init(void)
-{
- __enable_hw_exceptions();
-}
-
-static unsigned long kstack_depth_to_print; /* 0 == entire stack */
-
-static int __init kstack_setup(char *s)
-{
- return !strict_strtoul(s, 0, &kstack_depth_to_print);
-}
-__setup("kstack=", kstack_setup);
-
-void show_stack(struct task_struct *task, unsigned long *sp)
-{
- unsigned long words_to_show;
- u32 fp = (u32) sp;
-
- if (fp == 0) {
- if (task) {
- fp = ((struct thread_info *)
- (task->stack))->cpu_context.r1;
- } else {
- /* Pick up caller of dump_stack() */
- fp = (u32)&sp - 8;
- }
- }
-
- words_to_show = (THREAD_SIZE - (fp & (THREAD_SIZE - 1))) >> 2;
- if (kstack_depth_to_print && (words_to_show > kstack_depth_to_print))
- words_to_show = kstack_depth_to_print;
-
- pr_info("Kernel Stack:\n");
-
- /*
- * Make the first line an 'odd' size if necessary to get
- * remaining lines to start at an address multiple of 0x10
- */
- if (fp & 0xF) {
- unsigned long line1_words = (0x10 - (fp & 0xF)) >> 2;
- if (line1_words < words_to_show) {
- print_hex_dump(KERN_INFO, "", DUMP_PREFIX_ADDRESS, 32,
- 4, (void *)fp, line1_words << 2, 0);
- fp += line1_words << 2;
- words_to_show -= line1_words;
- }
- }
- print_hex_dump(KERN_INFO, "", DUMP_PREFIX_ADDRESS, 32, 4, (void *)fp,
- words_to_show << 2, 0);
- printk(KERN_INFO "\n\n");
-
- pr_info("Call Trace:\n");
- microblaze_unwind(task, NULL);
- pr_info("\n");
-
- if (!task)
- task = current;
-
- debug_show_held_locks(task);
-}
-
-void dump_stack(void)
-{
- show_stack(NULL, NULL);
-}
-EXPORT_SYMBOL(dump_stack);