Skip to contentSkip to conversation

about ppc <asm/string.h>

DISCUSSION HappyPhot 2 participants 2 messages Apr 17, 2006

lore
Share & tools
lore

HappyPhot

author
#0 lore raw

Hi,

Under linux kernel, the file /include/linux/string.h will include
<asm/string.h>.
But I didn't found "string.h" under "asm-ppc", my asm is link to asm-ppc
(CPU is ppc). This makes me compile some code failed.
(kernel version 2.6.x)

Anybody knows about this ? Why there is no string.h under "asm-ppc"
directory.

thanks a lot,
/Phot

#1 lore raw

Hi!

There's no string.h in include/asm-ppc because this is one of the header files that has been merged between 32 and 64-bit powerpc. It now lives in include/asm-powerpc with all the other merged headers. Only headers specific to 32-bit ppc have been left in include/asm-ppc. For a kernel build with ARCH=ppc, the build uses headers from both include/asm-ppc and include/asm-powerpc. This is accomplished through the use of a temporary include directory that is created in the arch dir. Check out arch/ppc/Makefile for details.

Cheers,
-Becky

Quoted 21 lines · HappyPhot

Hi,

Under linux kernel, the file /include/linux/string.h will include
<asm/string.h>.
But I didn't found "string.h" under "asm-ppc", my asm is link to
asm-ppc
(CPU is ppc). This makes me compile some code failed.
(kernel version 2.6.x)

Anybody knows about this ? Why there is no string.h under "asm-ppc"
directory.

thanks a lot,
/Phot

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded