Re: ac19 on sparc64 small change needed (sparc also)

From: Ookhoi (ookhoi@dds.nl)
Date: Fri Jun 16 2000 - 08:22:58 EST


> in arch/sparc64/kernel/ptrace.c
>
> PF_TRACE* needs to be changed to PT_TRACE*

The same for sparc; arch/sparc/kernel/ptrace.c
                    arch/sparc64/kernel/signal.c

signal.c: In function `do_signal':
signal.c:1180: `PF_PTRACED' undeclared (first use in this function)
signal.c:1180: (Each undeclared identifier is reported only once
signal.c:1180: for each function it appears in.)
make[1]: *** [signal.o] Error 1
make[1]: Leaving directory `/usr/src/linux/arch/sparc/kernel'
make: *** [_dir_arch/sparc/kernel] Error 2

and the second try (after a s/PF_PTRACED/PT_TRACE/)

ptrace.c: In function `do_ptrace':
ptrace.c:292: `PF_PTRACED' undeclared (first use in this function)
ptrace.c:292: (Each undeclared identifier is reported only once
ptrace.c:292: for each function it appears in.)
ptrace.c:569: `PF_TRACESYS' undeclared (first use in this function)
ptrace.c: In function `syscall_trace':
ptrace.c:635: `PF_PTRACED' undeclared (first use in this function)
ptrace.c:635: `PF_TRACESYS' undeclared (first use in this function)
make[1]: *** [ptrace.o] Error 1
make[1]: Leaving directory `/usr/src/linux/arch/sparc/kernel'
make: *** [_dir_arch/sparc/kernel] Error 2

did a s/PF_PTRACED/PT_TRACE/ and a s/PF_TRACESYS/PT_TRACESYS/ here
and then I got this one:

arch/sparc/kernel/kernel.o: In function `pci_alloc_consistent':
arch/sparc/kernel/kernel.o(.text+0x7310): undefined reference to `mmu_inval_dma_area'
arch/sparc/kernel/kernel.o: In function `pci_free_consistent':
arch/sparc/kernel/kernel.o(.text+0x7418): undefined reference to `mmu_inval_dma_area'
arch/sparc/kernel/kernel.o: In function `pci_unmap_single':
arch/sparc/kernel/kernel.o(.text+0x7560): undefined reference to `mmu_inval_dma_area'
arch/sparc/kernel/kernel.o: In function `pci_unmap_sg':
arch/sparc/kernel/kernel.o(.text+0x7620): undefined reference to `mmu_inval_dma_area'
arch/sparc/kernel/kernel.o: In function `pci_dma_sync_single':
arch/sparc/kernel/kernel.o(.text+0x767c): undefined reference to `mmu_inval_dma_area'
arch/sparc/kernel/kernel.o(.text+0x76d8): more undefined references to `mmu_inval_dma_area' follow
make: *** [vmlinux] Error 1

which I 'solved' by adding these two lines back (ac19 and some before
removed them) in /usr/src/linux/include/asm-sparc/pgtable.h:

(line 59)
BTFIXUPDEF_CALL(void, mmu_inval_dma_area, unsigned long virt, int len)

(line 64)
#define mmu_inval_dma_area(va,len) BTFIXUP_CALL(mmu_inval_dma_area)(va,len)

This must be wrong, but it seemes to work. Maybe somebody can have a
look at that one?

So far so good.. This is an old IPX (40MHz), so it takes a looooooong
time for a kernel to compile. :-)
Btw, it isn't in the docs how you have to compile the kernel for the
sparc arch, is it? I found it in the lkm archives..

                Ookhoi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:11 EST