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
e574d238
Commit
e574d238
authored
Oct 10, 2005
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powerpc: Fix compilation for 32-bit configs
Signed-off-by:
Paul Mackerras
<
paulus@samba.org
>
parent
c5200c90
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
22 deletions
+10
-22
arch/powerpc/kernel/setup_32.c
arch/powerpc/kernel/setup_32.c
+3
-18
arch/ppc/kernel/Makefile
arch/ppc/kernel/Makefile
+2
-4
include/asm-ppc/pci-bridge.h
include/asm-ppc/pci-bridge.h
+5
-0
No files found.
arch/powerpc/kernel/setup_32.c
View file @
e574d238
...
@@ -70,6 +70,8 @@ unsigned long ISA_DMA_THRESHOLD;
...
@@ -70,6 +70,8 @@ unsigned long ISA_DMA_THRESHOLD;
unsigned
int
DMA_MODE_READ
;
unsigned
int
DMA_MODE_READ
;
unsigned
int
DMA_MODE_WRITE
;
unsigned
int
DMA_MODE_WRITE
;
int
have_of
=
1
;
#ifdef CONFIG_PPC_MULTIPLATFORM
#ifdef CONFIG_PPC_MULTIPLATFORM
int
_machine
=
0
;
int
_machine
=
0
;
...
@@ -89,6 +91,7 @@ unsigned long vgacon_remap_base;
...
@@ -89,6 +91,7 @@ unsigned long vgacon_remap_base;
#endif
#endif
struct
machdep_calls
ppc_md
;
struct
machdep_calls
ppc_md
;
EXPORT_SYMBOL
(
ppc_md
);
/*
/*
* These are used in binfmt_elf.c to put aux entries on the stack
* These are used in binfmt_elf.c to put aux entries on the stack
...
@@ -455,24 +458,6 @@ console_initcall(set_preferred_console);
...
@@ -455,24 +458,6 @@ console_initcall(set_preferred_console);
#endif
/* CONFIG_SERIAL_CORE_CONSOLE */
#endif
/* CONFIG_SERIAL_CORE_CONSOLE */
#endif
/* CONFIG_PPC_MULTIPLATFORM */
#endif
/* CONFIG_PPC_MULTIPLATFORM */
struct
bi_record
*
find_bootinfo
(
void
)
{
struct
bi_record
*
rec
;
rec
=
(
struct
bi_record
*
)
_ALIGN
((
ulong
)
__bss_start
+
(
1
<<
20
)
-
1
,(
1
<<
20
));
if
(
rec
->
tag
!=
BI_FIRST
)
{
/*
* This 0x10000 offset is a terrible hack but it will go away when
* we have the bootloader handle all the relocation and
* prom calls -- Cort
*/
rec
=
(
struct
bi_record
*
)
_ALIGN
((
ulong
)
__bss_start
+
0x10000
+
(
1
<<
20
)
-
1
,(
1
<<
20
));
if
(
rec
->
tag
!=
BI_FIRST
)
return
NULL
;
}
return
rec
;
}
/*
/*
* Find out what kind of machine we're on and save any data we need
* Find out what kind of machine we're on and save any data we need
* from the early boot process (devtree is copied on pmac by prom_init()).
* from the early boot process (devtree is copied on pmac by prom_init()).
...
...
arch/ppc/kernel/Makefile
View file @
e574d238
...
@@ -42,13 +42,11 @@ vector-y += ../../powerpc/kernel/vector.o
...
@@ -42,13 +42,11 @@ vector-y += ../../powerpc/kernel/vector.o
fpu-y
+=
../../powerpc/kernel/fpu.o
fpu-y
+=
../../powerpc/kernel/fpu.o
else
else
obj-y
:=
entry.o irq.o idle.o time.o misc
.o
\
obj-y
:=
irq.o idle.o time
.o
\
signal.o ptrace.o align.o
\
signal.o ptrace.o align.o
\
syscalls.o setup.o
\
syscalls.o cputable.o perfmon.o
cputable.o perfmon.o
obj-$(CONFIG_6xx)
+=
l2cr.o cpu_setup_6xx.o
obj-$(CONFIG_6xx)
+=
l2cr.o cpu_setup_6xx.o
obj-$(CONFIG_SOFTWARE_SUSPEND)
+=
swsusp.o
obj-$(CONFIG_SOFTWARE_SUSPEND)
+=
swsusp.o
obj-$(CONFIG_POWER4)
+=
cpu_setup_power4.o
obj-$(CONFIG_MODULES)
+=
module.o
obj-$(CONFIG_MODULES)
+=
module.o
obj-$(CONFIG_NOT_COHERENT_CACHE)
+=
dma-mapping.o
obj-$(CONFIG_NOT_COHERENT_CACHE)
+=
dma-mapping.o
obj-$(CONFIG_PCI)
+=
pci.o
obj-$(CONFIG_PCI)
+=
pci.o
...
...
include/asm-ppc/pci-bridge.h
View file @
e574d238
...
@@ -79,6 +79,11 @@ struct pci_controller {
...
@@ -79,6 +79,11 @@ struct pci_controller {
struct
resource
mem_space
;
struct
resource
mem_space
;
};
};
static
inline
struct
pci_controller
*
pci_bus_to_host
(
struct
pci_bus
*
bus
)
{
return
bus
->
sysdata
;
}
/* These are used for config access before all the PCI probing
/* These are used for config access before all the PCI probing
has been done. */
has been done. */
int
early_read_config_byte
(
struct
pci_controller
*
hose
,
int
bus
,
int
dev_fn
,
int
early_read_config_byte
(
struct
pci_controller
*
hose
,
int
bus
,
int
dev_fn
,
...
...
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