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
nexedi
linux
Commits
addad474
Commit
addad474
authored
Mar 22, 2003
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Plain Diff
Merge samba.org:/home/paulus/kernel/linux-2.5
into samba.org:/home/paulus/kernel/for-linus-ppc
parents
aa43a933
56d40a81
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
51 additions
and
40 deletions
+51
-40
arch/ppc/Makefile
arch/ppc/Makefile
+10
-16
arch/ppc/boot/Makefile
arch/ppc/boot/Makefile
+3
-5
arch/ppc/boot/images/Makefile
arch/ppc/boot/images/Makefile
+1
-1
arch/ppc/boot/openfirmware/Makefile
arch/ppc/boot/openfirmware/Makefile
+9
-4
arch/ppc/boot/prep/Makefile
arch/ppc/boot/prep/Makefile
+2
-1
arch/ppc/kernel/Makefile
arch/ppc/kernel/Makefile
+3
-6
arch/ppc/kernel/pci.c
arch/ppc/kernel/pci.c
+18
-1
arch/ppc/platforms/Makefile
arch/ppc/platforms/Makefile
+1
-1
arch/ppc/syslib/Makefile
arch/ppc/syslib/Makefile
+0
-2
include/asm-ppc/pci.h
include/asm-ppc/pci.h
+4
-3
No files found.
arch/ppc/Makefile
View file @
addad474
# This file is included by the global makefile so that you can add your own
# This file is included by the global makefile so that you can add your own
# architecture-specific flags and dependencies. Remember to do have actions
# architecture-specific flags and dependencies.
# for "archclean" and "archdep" for cleaning up and making dependencies for
# this architecture
#
#
# This file is subject to the terms and conditions of the GNU General Public
# This file is subject to the terms and conditions of the GNU General Public
# License. See the file "COPYING" in the main directory of this archive
# License. See the file "COPYING" in the main directory of this archive
...
@@ -17,24 +15,20 @@ KERNELLOAD =$(CONFIG_KERNEL_START)
...
@@ -17,24 +15,20 @@ KERNELLOAD =$(CONFIG_KERNEL_START)
LDFLAGS_BLOB
:=
--format
binary
--oformat
elf32-powerpc
LDFLAGS_BLOB
:=
--format
binary
--oformat
elf32-powerpc
LDFLAGS_vmlinux
=
-Ttext
$(KERNELLOAD)
-Bstatic
LDFLAGS_vmlinux
=
-Ttext
$(KERNELLOAD)
-Bstatic
CPPFLAGS
:=
$(CPPFLAGS)
-I
$(TOPDIR)
/
arch/
$(ARCH)
CPPFLAGS
+=
-I
arch
/
$(ARCH)
AFLAGS
:=
$(AFLAGS)
-I
$(TOPDIR)
/
arch/
$(ARCH)
AFLAGS
+=
-I
arch
/
$(ARCH)
CFLAGS
:=
$(CFLAGS)
-I
$(TOPDIR)
/
arch/
$(ARCH)
-msoft-float
-pipe
\
cflags-y
+=
-I
arch
/
$(ARCH)
-msoft-float
-pipe
\
-ffixed-r2
-Wno-uninitialized
-mmultiple
-mstring
-ffixed-r2
-Wno-uninitialized
-mmultiple
-mstring
CPP
=
$(CC)
-E
$(CFLAGS)
CPP
=
$(CC)
-E
$(CFLAGS)
ifdef
CONFIG_4xx
cflags-$(CONFIG_4xx)
+=
-Wa
,-m405
CFLAGS
:=
$(CFLAGS)
-Wa
,-m405
cflags-$(CONFIG_PPC64BRIDGE)
+=
-Wa
,-mppc64bridge
endif
# Use sed to remove the quotes.
cflags-$(CONFIG_MORE_COMPILE_OPTIONS)
+=
\
$(
shell
echo
$(CONFIG_COMPILE_OPTIONS)
|
sed
-e
's/"//g'
)
ifdef
CONFIG_PPC64BRIDGE
CFLAGS
+=
$
(
cflags-y
)
CFLAGS
:=
$(CFLAGS)
-Wa
,-mppc64bridge
endif
ifdef
CONFIG_MORE_COMPILE_OPTIONS
# Use sed to remove the quotes.
CFLAGS
+=
$(
shell
echo
$(CONFIG_COMPILE_OPTIONS)
|
sed
-e
's/"//g'
)
endif
head-y
:=
arch
/ppc/kernel/head.o
head-y
:=
arch
/ppc/kernel/head.o
head-$(CONFIG_8xx)
:=
arch
/ppc/kernel/head_8xx.o
head-$(CONFIG_8xx)
:=
arch
/ppc/kernel/head_8xx.o
...
...
arch/ppc/boot/Makefile
View file @
addad474
...
@@ -10,8 +10,8 @@
...
@@ -10,8 +10,8 @@
# modified by Cort (cort@cs.nmt.edu)
# modified by Cort (cort@cs.nmt.edu)
#
#
CFLAGS
+=
-fno-builtin
-D__BOOTER__
-Iarch
/
$(ARCH)
/boot/include
CFLAGS
+=
-fno-builtin
-D__BOOTER__
-Iarch
/
$(ARCH)
/boot/include
HOSTCFLAGS
+=
-I
$(TOPDIR)
/
arch/
$(ARCH)
/boot/include
HOSTCFLAGS
+=
-I
arch
/
$(ARCH)
/boot/include
BOOT_TARGETS
=
zImage zImage.initrd znetboot znetboot.initrd
BOOT_TARGETS
=
zImage zImage.initrd znetboot znetboot.initrd
...
@@ -21,7 +21,7 @@ subdir-y := lib common images
...
@@ -21,7 +21,7 @@ subdir-y := lib common images
subdir-$(CONFIG_ALL_PPC)
+=
of1275
subdir-$(CONFIG_ALL_PPC)
+=
of1275
# for cleaning
# for cleaning
subdir-
+=
simple
openfirmware prep
subdir-
+=
simple
/ openfirmware/ prep/
tools-$(CONFIG_ALL_PPC)
:=
addnote mknote hack-coff mkprep
tools-$(CONFIG_ALL_PPC)
:=
addnote mknote hack-coff mkprep
tools-$(CONFIG_PPLUS)
:=
mkbugboot mkprep
tools-$(CONFIG_PPLUS)
:=
mkbugboot mkprep
...
@@ -34,8 +34,6 @@ tools-$(CONFIG_PRPMC750) := mkbugboot mkprep
...
@@ -34,8 +34,6 @@ tools-$(CONFIG_PRPMC750) := mkbugboot mkprep
tools-$(CONFIG_PRPMC800)
:=
mkbugboot mkprep
tools-$(CONFIG_PRPMC800)
:=
mkbugboot mkprep
tools-$(CONFIG_SPRUCE)
:=
mktree
tools-$(CONFIG_SPRUCE)
:=
mktree
all-tools
:=
addnote mknote hack-coff mkprep mkbugboot mktree
host-progs
:=
$(
addprefix
utils/,
$
(
tools-y
))
host-progs
:=
$(
addprefix
utils/,
$
(
tools-y
))
.PHONY
:
$(BOOT_TARGETS) $(bootdir-y)
.PHONY
:
$(BOOT_TARGETS) $(bootdir-y)
...
...
arch/ppc/boot/images/Makefile
View file @
addad474
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# This dir holds all of the images for PPC machines.
# This dir holds all of the images for PPC machines.
# Tom Rini January 2001
# Tom Rini January 2001
targets
:=
vmlinux.gz
extra-y
:=
vmlinux.gz
GZIP_FLAGS
:=
-v9f
GZIP_FLAGS
:=
-v9f
$(obj)/vmlinux.gz
:
vmlinux
$(obj)/vmlinux.gz
:
vmlinux
...
...
arch/ppc/boot/openfirmware/Makefile
View file @
addad474
...
@@ -26,10 +26,15 @@ COFF_LD_ARGS = -T $(boot)/ld.script -e _start -Ttext 0x00700000 -Bstatic
...
@@ -26,10 +26,15 @@ COFF_LD_ARGS = -T $(boot)/ld.script -e _start -Ttext 0x00700000 -Bstatic
CHRP_LD_ARGS
=
-T
$(boot)
/ld.script
-e
_start
-Ttext
0x00800000
CHRP_LD_ARGS
=
-T
$(boot)
/ld.script
-e
_start
-Ttext
0x00800000
NEWWORLD_LD_ARGS
=
-T
$(boot)
/ld.script
-e
_start
-Ttext
0x01000000
NEWWORLD_LD_ARGS
=
-T
$(boot)
/ld.script
-e
_start
-Ttext
0x01000000
COMMONOBJS
=
$(obj)
/start.o
$(obj)
/misc.o
$(obj)
/common.o
COMMONOBJS
:=
start.o misc.o common.o
COFFOBJS
=
$(obj)
/coffcrt0.o
$(COMMONOBJS)
$(obj)
/coffmain.o
COFFOBJS
:=
coffcrt0.o
$(COMMONOBJS)
coffmain.o
CHRPOBJS
=
$(obj)
/crt0.o
$(COMMONOBJS)
$(obj)
/chrpmain.o
CHRPOBJS
:=
crt0.o
$(COMMONOBJS)
chrpmain.o
NEWWORLDOBJS
=
$(obj)
/crt0.o
$(COMMONOBJS)
$(obj)
/newworldmain.o
NEWWORLDOBJS
:=
crt0.o
$(COMMONOBJS)
newworldmain.o
EXTRA_TARGETS
:=
$(COFFOBJS)
$(CHRPOBJS)
$(NEWWORLDOBJS)
COFFOBJS
:=
$(
addprefix
$(obj)
/,
$(COFFOBJS)
)
CHRPOBJS
:=
$(
addprefix
$(obj)
/,
$(CHRPOBJS)
)
NEWWORLDOBJS
:=
$(
addprefix
$(obj)
/,
$(NEWWORLDOBJS)
)
LIBS
=
lib/lib.a
$(bootlib)
/lib.a
$(of1275)
/lib.a
$(common)
/lib.a
LIBS
=
lib/lib.a
$(bootlib)
/lib.a
$(of1275)
/lib.a
$(common)
/lib.a
...
...
arch/ppc/boot/prep/Makefile
View file @
addad474
...
@@ -35,7 +35,8 @@ of1275 := $(boot)/of1275
...
@@ -35,7 +35,8 @@ of1275 := $(boot)/of1275
images
:=
$(boot)
/images
images
:=
$(boot)
/images
simple
:=
$(boot)
/simple
simple
:=
$(boot)
/simple
OBJS
:=
$(
addprefix
$(obj)
/,
$
(
boot-y
))
$(simple)
/legacy.o
EXTRA_TARGETS
:=
$
(
boot-y
)
../simple/legacy.o
OBJS
:=
$(
addprefix
$(obj)
/,
$
(
boot-y
))
$(simple)
/legacy.o
# Tools
# Tools
MKPREP
:=
$(utils)
/mkprep
MKPREP
:=
$(utils)
/mkprep
...
...
arch/ppc/kernel/Makefile
View file @
addad474
...
@@ -28,11 +28,8 @@ obj-$(CONFIG_PCI) += pci-dma.o
...
@@ -28,11 +28,8 @@ obj-$(CONFIG_PCI) += pci-dma.o
obj-$(CONFIG_KGDB)
+=
ppc-stub.o
obj-$(CONFIG_KGDB)
+=
ppc-stub.o
obj-$(CONFIG_SMP)
+=
smp.o
obj-$(CONFIG_SMP)
+=
smp.o
obj-$(CONFIG_TAU)
+=
temp.o
obj-$(CONFIG_TAU)
+=
temp.o
ifeq
($(CONFIG_8xx),y)
ifneq
($(CONFIG_MATH_EMULATION),n)
ifdef
CONFIG_MATH_EMULATION
obj-y
+=
softemu8xx.o
obj-$(CONFIG_8xx)
+=
softemu8xx.o
endif
endif
endif
find_name
:
find_name.c
$(HOSTCC)
$(HOSTCFLAGS)
-o
find_name find_name.c
arch/ppc/kernel/pci.c
View file @
addad474
...
@@ -176,6 +176,21 @@ pcibios_fixup_cardbus(struct pci_dev* dev)
...
@@ -176,6 +176,21 @@ pcibios_fixup_cardbus(struct pci_dev* dev)
}
}
#endif
/* CONFIG_ALL_PPC */
#endif
/* CONFIG_ALL_PPC */
void
pcibios_resource_to_bus
(
struct
pci_dev
*
dev
,
struct
pci_bus_region
*
region
,
struct
resource
*
res
)
{
unsigned
long
offset
=
0
;
struct
pci_controller
*
hose
=
dev
->
sysdata
;
if
(
hose
&&
res
->
flags
&
IORESOURCE_IO
)
offset
=
(
unsigned
long
)
hose
->
io_base_virt
-
isa_io_base
;
else
if
(
hose
&&
res
->
flags
&
IORESOURCE_MEM
)
offset
=
hose
->
pci_mem_offset
;
region
->
start
=
res
->
start
-
offset
;
region
->
end
=
res
->
end
-
offset
;
}
/*
/*
* We need to avoid collisions with `mirrored' VGA ports
* We need to avoid collisions with `mirrored' VGA ports
* and other strange ISA hardware, so we always want the
* and other strange ISA hardware, so we always want the
...
@@ -579,8 +594,10 @@ pcibios_assign_resources(void)
...
@@ -579,8 +594,10 @@ pcibios_assign_resources(void)
*/
*/
if
((
r
->
flags
&
IORESOURCE_UNSET
)
&&
r
->
end
&&
if
((
r
->
flags
&
IORESOURCE_UNSET
)
&&
r
->
end
&&
(
!
ppc_md
.
pcibios_enable_device_hook
||
(
!
ppc_md
.
pcibios_enable_device_hook
||
!
ppc_md
.
pcibios_enable_device_hook
(
dev
,
1
)))
!
ppc_md
.
pcibios_enable_device_hook
(
dev
,
1
)))
{
r
->
flags
&=
~
IORESOURCE_UNSET
;
pci_assign_resource
(
dev
,
idx
);
pci_assign_resource
(
dev
,
idx
);
}
}
}
#if 0 /* don't assign ROMs */
#if 0 /* don't assign ROMs */
...
...
arch/ppc/platforms/Makefile
View file @
addad474
...
@@ -10,7 +10,7 @@ EXTRA_AFLAGS := -Wa,-m405
...
@@ -10,7 +10,7 @@ EXTRA_AFLAGS := -Wa,-m405
endif
endif
# Extra CFLAGS so we don't have to do relative includes
# Extra CFLAGS so we don't have to do relative includes
CFLAGS_pmac_setup.o
+=
-I
$(TOPDIR)
/
arch/
$(ARCH)
/mm
CFLAGS_pmac_setup.o
+=
-Iarch
/
$(ARCH)
/mm
obj-$(CONFIG_APUS)
+=
apus_setup.o
obj-$(CONFIG_APUS)
+=
apus_setup.o
ifeq
($(CONFIG_APUS),y)
ifeq
($(CONFIG_APUS),y)
...
...
arch/ppc/syslib/Makefile
View file @
addad474
...
@@ -64,5 +64,3 @@ obj-$(CONFIG_ZX4500) += indirect_pci.o pci_auto.o mpc10x_common.o \
...
@@ -64,5 +64,3 @@ obj-$(CONFIG_ZX4500) += indirect_pci.o pci_auto.o mpc10x_common.o \
obj-$(CONFIG_8260)
+=
m8260_setup.o ppc8260_pic.o
obj-$(CONFIG_8260)
+=
m8260_setup.o ppc8260_pic.o
obj-$(CONFIG_BOOTX_TEXT)
+=
btext.o
obj-$(CONFIG_BOOTX_TEXT)
+=
btext.o
find_name
:
find_name.c
$(HOSTCC)
$(HOSTCFLAGS)
-o
find_name find_name.c
include/asm-ppc/pci.h
View file @
addad474
...
@@ -271,9 +271,10 @@ int pci_mmap_page_range(struct pci_dev *pdev, struct vm_area_struct *vma,
...
@@ -271,9 +271,10 @@ int pci_mmap_page_range(struct pci_dev *pdev, struct vm_area_struct *vma,
/* Tell drivers/pci/proc.c that we have pci_mmap_page_range() */
/* Tell drivers/pci/proc.c that we have pci_mmap_page_range() */
#define HAVE_PCI_MMAP 1
#define HAVE_PCI_MMAP 1
#endif
/* __KERNEL__ */
extern
void
pcibios_resource_to_bus
(
struct
pci_dev
*
dev
,
struct
pci_bus_region
*
region
,
struct
resource
*
res
);
/* generic pci stuff */
#endif
/* __KERNEL__ */
#include <asm-generic/pci.h>
#endif
/* __PPC_PCI_H */
#endif
/* __PPC_PCI_H */
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