Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
ipipe-arm
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
xenomai
ipipe-arm
Commits
437fae66
Commit
437fae66
authored
Dec 03, 2017
by
Philippe Gerum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: enable raw_printk() over serial debug channel
parent
f53e94d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
arch/arm/kernel/Makefile
arch/arm/kernel/Makefile
+1
-0
arch/arm/kernel/raw_printk.c
arch/arm/kernel/raw_printk.c
+33
-0
No files found.
arch/arm/kernel/Makefile
View file @
437fae66
...
...
@@ -88,6 +88,7 @@ obj-$(CONFIG_PARAVIRT) += paravirt.o
head-y
:=
head
$(MMUEXT)
.o
obj-$(CONFIG_DEBUG_LL)
+=
debug.o
obj-$(CONFIG_EARLY_PRINTK)
+=
early_printk.o
obj-$(CONFIG_RAW_PRINTK)
+=
raw_printk.o
obj-$(CONFIG_IPIPE)
+=
ipipe.o
obj-$(CONFIG_IPIPE_ARM_KUSER_TSC)
+=
ipipe_tsc.o ipipe_tsc_asm.o
...
...
arch/arm/kernel/raw_printk.c
0 → 100644
View file @
437fae66
#include <linux/kernel.h>
#include <linux/console.h>
#include <linux/init.h>
void
__weak
printascii
(
const
char
*
s
)
{
/*
* Allow building if CONFIG_DEBUG_LL is off but keep silent on
* raw_printk().
*/
}
static
void
raw_console_write
(
struct
console
*
co
,
const
char
*
s
,
unsigned
count
)
{
printascii
(
s
);
}
static
struct
console
raw_console
=
{
.
name
=
"rawcon"
,
.
write_raw
=
raw_console_write
,
.
flags
=
CON_PRINTBUFFER
|
CON_RAW
|
CON_ENABLED
,
.
index
=
-
1
,
};
static
int
__init
raw_console_init
(
void
)
{
register_console
(
&
raw_console
);
return
0
;
}
console_initcall
(
raw_console_init
);
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