Re: Module compilation error (sparc64)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> /usr/include/asm/page.h:96: global register variable follows a function definition
> /usr/include/asm/page.h:96: warning: call-clobbered register used for global register variable
> 
> In these parts, <asm/page.h> contains:
> 
> #ifndef __ASSEMBLY__
> /* Do prdele, look what happens to be in %g4... */
> register unsigned long page_offset asm("g4"); /* This is line no. 96. */
> #define PAGE_OFFSET             page_offset
> #else
> #define PAGE_OFFSET             0xFFFFF80000000000
> #endif
> 
> My compilation command-line is:
> egcs64 -D__KERNEL__ -DMODULE -D__SMP__ -O -c -o module.o module.c

I updated my kernel anyways to the latest v2.2 (2.2.22), but that's not it.
I added the -ffixed-g4 option to the Makefile and everything compiles fine
and loads fine. It doesn't work fine, but I don't think that has anything
to do with it.

-- 
Al. Andreou <ee4299@ee.teiath.gr> | http://nemesis.ee.teiath.gr/~ee4299/
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux