[ros-kernel] iface/addsys/genw32k.c -- local sizeof(void *)
Aliberti Emanuele
ea at iol.it
Thu Apr 8 00:53:04 CEST 2004
art yerkes wrote:
>I recently got an amd64 and built reactos on it, however I got errors from
>the system call stubs generated by genw32k. genw32k uses the local sizeof
>void * to find out what size to make the stdcall decorations, which in my
>case is double that of an i386. I put a patch on bugzilla (#277) which
>fixes it, seemingly, but I wanted to defer to others to fix this in the real
>tree since I know nothing about that code.
>
>
Hi Art,
I wrote it. It seems sizeof(void*) is 8 and not 4 in gcc for amd64 (and
for alpha).
I read the patch, but I'd like to understand if the goal is simply
protecting the value 4 from becoming 8 in 64-bit compilers, or makeing
it independent of it.
What is more needed in the future? I used sizeof (void*) to express the
size of the minimum stack size item. Now that 64-bit processors are out
it is clearly wrong.
I can extend the little tool to generate the table for win32k with and
extra parameter to change the size of that factor (used to compute the
actual size of the stack allocated for a _stdcall entry point and
therefore the number to be appended to decorate its name). Could that
new parameter depend on the config of the build?
More information about the Ros-kernel
mailing list