* Reg. asm-sparc64/processor.h
@ 2002-05-23 1:04 Shanti Katta
2002-05-23 3:52 ` David S. Miller
0 siblings, 1 reply; 4+ messages in thread
From: Shanti Katta @ 2002-05-23 1:04 UTC (permalink / raw)
To: davem; +Cc: sparclinux, linux-kernel
Hi,
I am trying to port User-mode-linux to Sparc64 architecture. I have the
debian(sid) on my host system with custom built 2.4.18 kernel. When I
try to generate some header file for UML that #included
<asm-sparc64/processor.h> file, I was getting parse errors for u64 data
types. When I changed all those U64 data-types to __u64 type, it fixed
the error. So, I was just wondering, whether it is the right thing to
do.
-Thanks in advance
-Shanti Katta
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Reg. asm-sparc64/processor.h
2002-05-23 1:04 Reg. asm-sparc64/processor.h Shanti Katta
@ 2002-05-23 3:52 ` David S. Miller
2002-05-23 23:24 ` Shanti Katta
0 siblings, 1 reply; 4+ messages in thread
From: David S. Miller @ 2002-05-23 3:52 UTC (permalink / raw)
To: katta; +Cc: sparclinux, linux-kernel
If you want the 'u64' type, define __KERNEL__. That is what
every platform does, protect the types without underscores with
a __KERNEL__ ifdef.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Reg. asm-sparc64/processor.h
2002-05-23 3:52 ` David S. Miller
@ 2002-05-23 23:24 ` Shanti Katta
2002-05-24 5:57 ` David S. Miller
0 siblings, 1 reply; 4+ messages in thread
From: Shanti Katta @ 2002-05-23 23:24 UTC (permalink / raw)
To: David S. Miller; +Cc: sparclinux, linux-kernel
On Wed, 2002-05-22 at 23:52, David S. Miller wrote:
>
> If you want the 'u64' type, define __KERNEL__. That is what
> every platform does, protect the types without underscores with
> a __KERNEL__ ifdef.
Hi,
In asm-sparc64/processor.h (2.4.18), in thread_struct structure, there
are 3 fields:
u64 *user_cntd0, *user_cntd1;
u64 kernel_cntd0, kernel_cntd1;
u64 pcr_reg;
which are defined without #ifdef __KERNEL__ . I guess, this is a bug,
which needs fixing.
Thanks
-Regards
-Shanti Katta
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Reg. asm-sparc64/processor.h
2002-05-23 23:24 ` Shanti Katta
@ 2002-05-24 5:57 ` David S. Miller
0 siblings, 0 replies; 4+ messages in thread
From: David S. Miller @ 2002-05-24 5:57 UTC (permalink / raw)
To: katta; +Cc: sparclinux, linux-kernel
From: Shanti Katta <katta@csee.wvu.edu>
Date: 23 May 2002 19:24:35 -0400
On Wed, 2002-05-22 at 23:52, David S. Miller wrote:
>
> If you want the 'u64' type, define __KERNEL__. That is what
> every platform does, protect the types without underscores with
> a __KERNEL__ ifdef.
In asm-sparc64/processor.h (2.4.18), in thread_struct structure, there
are 3 fields:
u64 *user_cntd0, *user_cntd1;
u64 kernel_cntd0, kernel_cntd1;
u64 pcr_reg;
which are defined without #ifdef __KERNEL__ . I guess, this is a bug,
which needs fixing.
You shouldn't be including such kernel headers from userspace.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-05-24 6:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-23 1:04 Reg. asm-sparc64/processor.h Shanti Katta
2002-05-23 3:52 ` David S. Miller
2002-05-23 23:24 ` Shanti Katta
2002-05-24 5:57 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox