Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
808bde25
Commit
808bde25
authored
Nov 06, 2007
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: Fix up kgdb build with modular sh-sci.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
98c69429
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
arch/sh/Kconfig.debug
arch/sh/Kconfig.debug
+1
-1
arch/sh/kernel/kgdb_stub.c
arch/sh/kernel/kgdb_stub.c
+8
-1
No files found.
arch/sh/Kconfig.debug
View file @
808bde25
...
...
@@ -124,7 +124,7 @@ config KGDB_NMI
config SH_KGDB_CONSOLE
bool "Console messages through GDB"
depends on !SERIAL_SH_SCI_CONSOLE
depends on !SERIAL_SH_SCI_CONSOLE
&& SERIAL_SH_SCI=y
select SERIAL_CORE_CONSOLE
default n
...
...
arch/sh/kernel/kgdb_stub.c
View file @
808bde25
...
...
@@ -102,6 +102,7 @@
#include <linux/init.h>
#include <linux/console.h>
#include <linux/sysrq.h>
#include <linux/module.h>
#include <asm/system.h>
#include <asm/cacheflush.h>
#include <asm/current.h>
...
...
@@ -116,7 +117,9 @@ kgdb_debug_hook_t *kgdb_debug_hook;
kgdb_bus_error_hook_t
*
kgdb_bus_err_hook
;
int
(
*
kgdb_getchar
)(
void
);
EXPORT_SYMBOL_GPL
(
kgdb_getchar
);
void
(
*
kgdb_putchar
)(
int
);
EXPORT_SYMBOL_GPL
(
kgdb_putchar
);
static
void
put_debug_char
(
int
c
)
{
...
...
@@ -136,7 +139,7 @@ static int get_debug_char(void)
#define NUMREGBYTES (MAXREG*4)
#define OUTBUFMAX (NUMREGBYTES*2+512)
enum
regs
{
enum
{
R0
=
0
,
R1
,
R2
,
R3
,
R4
,
R5
,
R6
,
R7
,
R8
,
R9
,
R10
,
R11
,
R12
,
R13
,
R14
,
R15
,
PC
,
PR
,
GBR
,
VBR
,
MACH
,
MACL
,
SR
,
...
...
@@ -176,9 +179,13 @@ int kgdb_nofault; /* Boolean to ignore bus errs (i.e. in GDB) */
/* SCI/UART settings, used in kgdb_console_setup() */
int
kgdb_portnum
=
CONFIG_KGDB_DEFPORT
;
EXPORT_SYMBOL_GPL
(
kgdb_portnum
);
int
kgdb_baud
=
CONFIG_KGDB_DEFBAUD
;
EXPORT_SYMBOL_GPL
(
kgdb_baud
);
char
kgdb_parity
=
CONFIG_KGDB_DEFPARITY
;
EXPORT_SYMBOL_GPL
(
kgdb_parity
);
char
kgdb_bits
=
CONFIG_KGDB_DEFBITS
;
EXPORT_SYMBOL_GPL
(
kgdb_bits
);
/* Jump buffer for setjmp/longjmp */
static
jmp_buf
rem_com_env
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment