Commit 11d51360 authored by Michal Simek's avatar Michal Simek

microblaze: Do not count system calls in default

There is not necessary to count system calls that's why
I added DEBUG macro
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 3c5e5672
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
#include <linux/errno.h> #include <linux/errno.h>
#include <asm/signal.h> #include <asm/signal.h>
#undef DEBUG
/* The size of a state save frame. */ /* The size of a state save frame. */
#define STATE_SAVE_SIZE (PT_SIZE + STATE_SAVE_ARG_SPACE) #define STATE_SAVE_SIZE (PT_SIZE + STATE_SAVE_ARG_SPACE)
...@@ -352,10 +354,12 @@ C_ENTRY(_user_exception): ...@@ -352,10 +354,12 @@ C_ENTRY(_user_exception):
add r12, r12, r12; /* convert num -> ptr */ add r12, r12, r12; /* convert num -> ptr */
add r12, r12, r12; add r12, r12, r12;
#ifdef DEBUG
/* Trac syscalls and stored them to r0_ram */ /* Trac syscalls and stored them to r0_ram */
lwi r3, r12, 0x400 + r0_ram lwi r3, r12, 0x400 + r0_ram
addi r3, r3, 1 addi r3, r3, 1
swi r3, r12, 0x400 + r0_ram swi r3, r12, 0x400 + r0_ram
#endif
# Find and jump into the syscall handler. # Find and jump into the syscall handler.
lwi r12, r12, sys_call_table lwi r12, r12, sys_call_table
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment