On 12/24/05, Joshua Uziel <joshua.uziel at sun.com> wrote:
> Cyril Plisko wrote:
> > ppc/sys/*.h - how problematic are they ? Releasing them would really
> > accelerate things. I am pretty close to build a first kernel module
> > (it won't work, but I'm targeting clean compile right now) and the
> > absence of these files makes me write them from scratch (and that is
> > a lot of dirty work I can tell you - digging through a lot of
> > documents to find out _what_ to define and _how_ to define it).
>
> Oh we know. This is why we're going to the trouble. If those files can
> be released, then we will release them. We don't know yet... but no
> worries... we have the same thing in mind as you.
In a hunt for buildable module I actually had to implement quite a bunch
of them already. Still having them around for a reference couldn't hurt.
I'll check-in my work later tonight, but just for a teaser (I am quite close...)
zulu:/export/os/polaris2/usr/src/uts/chrp/rootnex> make def.debug32
/opt/onbld/bin/i386/cw -_gcc ../../ppc/ppc32/ml/ppc32.il
-D_ASM_INLINES -Xa -_gcc=-ffreestanding -v -xildoff -errtags=yes
-errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT
-erroff=E_STATEMENT_NOT_REACHED -xc99=%all -D_KERNEL -D_SYSCALL32
-Dchrp -D_MACHDEP -DDEBUG -DC2_AUDIT -I../../chrp -I../../ppc -Y
I,../../common -D__powerpc -D__powerpc__ -U_BIG_ENDIAN -c -o
debug32/rootnex.o ../../chrp/io/rootnex.c
+ /opt/polaris/powerpc-solaris2/bin/gcc -fident -finline
-fno-inline-functions -fno-builtin -fno-asm -nodefaultlibs -D__sun
-D_ASM_INLINES -ffreestanding -Wall -Wno-unknown-pragmas
-Wno-missing-braces -Wno-sign-compare -Wno-parentheses
-Wno-uninitialized -Wno-implicit-function-declaration -Wno-unused
-Wno-trigraphs -Wno-char-subscripts -Wno-switch -Werror -std=gnu99
-D_KERNEL -ffreestanding -D_SYSCALL32 -Dchrp -D_MACHDEP -DDEBUG
-DC2_AUDIT -I../../chrp -I../../ppc -nostdinc -I../../common
-D__powerpc -D__powerpc__ -U_BIG_ENDIAN -c -o debug32/rootnex.o
../../chrp/io/rootnex.c
cc1: warnings being treated as errors
In file included from ../../common/sys/sunddi.h:41,
from ../../common/sys/esunddi.h:32,
from ../../common/sys/sunndi.h:37,
from ../../chrp/io/rootnex.c:38:
../../common/sys/cmn_err.h:58: warning: 'cmn_err' is an unrecognized
format function type
../../common/sys/cmn_err.h:62: warning: 'cmn_err' is an unrecognized
format function type
../../common/sys/cmn_err.h:66: warning: 'cmn_err' is an unrecognized
format function type
../../common/sys/cmn_err.h:71: warning: 'cmn_err' is an unrecognized
format function type
../../common/sys/cmn_err.h:76: warning: 'cmn_err' is an unrecognized
format function type
../../common/sys/cmn_err.h:80: warning: 'cmn_err' is an unrecognized
format function type
../../common/sys/cmn_err.h:85: warning: 'cmn_err' is an unrecognized
format function type
../../common/sys/cmn_err.h:89: warning: 'cmn_err' is an unrecognized
format function type
../../common/sys/cmn_err.h:94: warning: 'cmn_err' is an unrecognized
format function type
../../common/sys/cmn_err.h:98: warning: 'cmn_err' is an unrecognized
format function type
../../common/sys/cmn_err.h:103: warning: 'cmn_err' is an unrecognized
format function type
../../common/sys/cmn_err.h:105: warning: 'cmn_err' is an unrecognized
format function type
../../common/sys/cmn_err.h:108: warning: 'cmn_err' is an unrecognized
format function type
../../common/sys/cmn_err.h:110: warning: 'cmn_err' is an unrecognized
format function type
../../common/sys/cmn_err.h:114: warning: 'cmn_err' is an unrecognized
format function type
../../common/sys/cmn_err.h:118: warning: 'cmn_err' is an unrecognized
format function type
In file included from ../../common/sys/ddi_impldefs.h:42,
from ../../common/sys/sunddi.h:43,
from ../../common/sys/esunddi.h:32,
from ../../common/sys/sunndi.h:37,
from ../../chrp/io/rootnex.c:38:
../../common/sys/epm.h:600: warning: 'cmn_err' is an unrecognized
format function type
../../chrp/io/rootnex.c:92: warning: initialization from incompatible
pointer type
../../chrp/io/rootnex.c:93: warning: initialization from incompatible
pointer type
../../chrp/io/rootnex.c:95: warning: initialization makes pointer from
integer without a cast
../../chrp/io/rootnex.c:97: warning: initialization makes integer from
pointer without a cast
../../chrp/io/rootnex.c:114: error: 'rootnex_win' undeclared here (not
in a function)
../../chrp/io/rootnex.c:131: error: 'rootnex_intr_op' undeclared here
(not in a function)
*** Error code 1
make: Fatal error: Command failed for target `debug32/rootnex.o'
Current working directory /export/os/polaris2/usr/src/uts/chrp/rootnex
*** Error code 1
The following command caused the error:
BUILD_TYPE=DBG32 VERSION='polaris2' make def.targ
make: Fatal error: Command failed for target `def.debug32'
Current working directory /export/os/polaris2/usr/src/uts/chrp/rootnex
zulu:/export/os/polaris2/usr/src/uts/chrp/rootnex>
>
> > Oh, just realized that everyone is on Christmas vacation probably ...
> > All right, Happy Holidays everyone !
>
> Yes, I'll be travelling a bit, but still occasionally checking email.
> Happy Hannukah, Cyril...
> _______________________________________________
> powerpc-discuss mailing list
> powerpc-discuss at opensolaris.org
>
--
Regards,
Cyril