Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
b0d46fe5
Commit
b0d46fe5
authored
May 10, 2002
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: remove some compiler warnings, xmon update
parent
237f483c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
arch/ppc/kernel/btext.c
arch/ppc/kernel/btext.c
+6
-3
arch/ppc/mm/init.c
arch/ppc/mm/init.c
+0
-2
arch/ppc/xmon/start.c
arch/ppc/xmon/start.c
+3
-3
No files found.
arch/ppc/kernel/btext.c
View file @
b0d46fe5
...
@@ -195,17 +195,20 @@ map_boot_text(void)
...
@@ -195,17 +195,20 @@ map_boot_text(void)
{
{
unsigned
long
base
,
offset
,
size
;
unsigned
long
base
,
offset
,
size
;
boot_infos_t
*
bi
=
&
disp_bi
;
boot_infos_t
*
bi
=
&
disp_bi
;
unsigned
char
*
vbase
;
/* By default, we are no longer mapped */
boot_text_mapped
=
0
;
if
(
bi
->
dispDeviceBase
==
0
)
if
(
bi
->
dispDeviceBase
==
0
)
return
;
return
;
base
=
((
unsigned
long
)
bi
->
dispDeviceBase
)
&
0xFFFFF000UL
;
base
=
((
unsigned
long
)
bi
->
dispDeviceBase
)
&
0xFFFFF000UL
;
offset
=
((
unsigned
long
)
bi
->
dispDeviceBase
)
-
base
;
offset
=
((
unsigned
long
)
bi
->
dispDeviceBase
)
-
base
;
size
=
bi
->
dispDeviceRowBytes
*
bi
->
dispDeviceRect
[
3
]
+
offset
size
=
bi
->
dispDeviceRowBytes
*
bi
->
dispDeviceRect
[
3
]
+
offset
+
bi
->
dispDeviceRect
[
0
];
+
bi
->
dispDeviceRect
[
0
];
bi
->
logicalDisplayB
ase
=
ioremap
(
base
,
size
);
vb
ase
=
ioremap
(
base
,
size
);
if
(
bi
->
logicalDisplayB
ase
==
0
)
if
(
vb
ase
==
0
)
return
;
return
;
bi
->
logicalDisplayBase
+=
offset
;
bi
->
logicalDisplayBase
=
vbase
+
offset
;
boot_text_mapped
=
1
;
boot_text_mapped
=
1
;
}
}
...
...
arch/ppc/mm/init.c
View file @
b0d46fe5
...
@@ -288,8 +288,6 @@ void __init MMU_init(void)
...
@@ -288,8 +288,6 @@ void __init MMU_init(void)
ppc_md
.
progress
(
"MMU:exit"
,
0x211
);
ppc_md
.
progress
(
"MMU:exit"
,
0x211
);
#ifdef CONFIG_BOOTX_TEXT
#ifdef CONFIG_BOOTX_TEXT
/* By default, we are no longer mapped */
boot_text_mapped
=
0
;
/* Must be done last, or ppc_md.progress will die. */
/* Must be done last, or ppc_md.progress will die. */
map_boot_text
();
map_boot_text
();
#endif
#endif
...
...
arch/ppc/xmon/start.c
View file @
b0d46fe5
...
@@ -32,6 +32,7 @@ unsigned int TXRDY, RXRDY, DLAB;
...
@@ -32,6 +32,7 @@ unsigned int TXRDY, RXRDY, DLAB;
extern
void
xmon_printf
(
const
char
*
fmt
,
...);
extern
void
xmon_printf
(
const
char
*
fmt
,
...);
static
int
xmon_expect
(
const
char
*
str
,
unsigned
int
timeout
);
static
int
xmon_expect
(
const
char
*
str
,
unsigned
int
timeout
);
static
int
use_serial
;
static
int
use_screen
;
static
int
use_screen
;
static
int
via_modem
;
static
int
via_modem
;
static
int
xmon_use_sccb
;
static
int
xmon_use_sccb
;
...
@@ -115,14 +116,13 @@ xmon_map_scc(void)
...
@@ -115,14 +116,13 @@ xmon_map_scc(void)
{
{
#ifdef CONFIG_ALL_PPC
#ifdef CONFIG_ALL_PPC
volatile
unsigned
char
*
base
;
volatile
unsigned
char
*
base
;
use_screen
=
0
;
if
(
_machine
==
_MACH_Pmac
)
{
if
(
_machine
==
_MACH_Pmac
)
{
struct
device_node
*
np
;
struct
device_node
*
np
;
unsigned
long
addr
;
unsigned
long
addr
;
#ifdef CONFIG_BOOTX_TEXT
#ifdef CONFIG_BOOTX_TEXT
if
(
!
machine_is_compatible
(
"iMac"
))
{
if
(
!
use_screen
&&
!
use_serial
&&
!
machine_is_compatible
(
"iMac"
))
{
/* see if there is a keyboard in the device tree
/* see if there is a keyboard in the device tree
with a parent of type "adb" */
with a parent of type "adb" */
for
(
np
=
find_devices
(
"keyboard"
);
np
;
np
=
np
->
next
)
for
(
np
=
find_devices
(
"keyboard"
);
np
;
np
=
np
->
next
)
...
...
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