From: "David S. Miller" <davem@dm.cobaltmicro.com>
To: ultralinux@vger.kernel.org
Subject: Re: A problem with printk?
Date: Thu, 14 Jan 1999 04:49:25 +0000 [thread overview]
Message-ID: <marc-linux-ultrasparc-91628942430743@msgid-missing> (raw)
In-Reply-To: <marc-linux-ultrasparc-91628874630540@msgid-missing>
Date: Thu, 14 Jan 1999 13:37:29 +0900
From: "Durantez, Marc" <durantez@is.s.u-tokyo.ac.jp>
If someone can give me a hint about what is wrong I will apreciate
very much. I really don't think printk is buggy but I hadn't no
other subject.
Pay attention to the cflags given to the compiler when the sparc64
kernel build compiles the modules... some are different on every
platform, but most are the same.
For sparc64 with module symbols you'd do something like:
export KSRC_PATH=/path/to/kernel/src
#if defined(ULTRAPENGUIN_1_1_9) || (SPARC64_GCC_IS_EGCS)
sparc64-linux-gcc -D__KERNEL__ -I$(KSRC_PATH)/linux/include -Wall \
-Wstrict-prototypes -O2 -fomit-frame-pointer -m64 \
-pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \
-ffixed-g4 -fcall-used-g5 -fcall-used-g7 \
-Wno-sign-compare -DMODULES -DMODVERSIONS \
-include $(KSRC_PATH)/linux/include/linux/modversions.h \
-c -o mymodule.o mymodule.c
#else
sparc64-linux-gcc -D__KERNEL__ -I$(KSRC_PATH)/linux/include -Wall \
-Wstrict-prototypes -O2 -fomit-frame-pointer \
-pipe -mno-fpu -mtune=ultrasparc -mcmodel=medlow \
-ffixed-g4 -fcall-used-g5 -fcall-used-g7 \
-Wno-sign-compare -DMODULES -DMODVERSIONS \
-include $(KSRC_PATH)/linux/include/linux/modversions.h \
-c -o mymodule.o mymodule.c
#endif
Later,
David S. Miller
davem@dm.cobaltmicro.com
prev parent reply other threads:[~1999-01-14 4:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-14 4:37 A problem with printk? Durantez, Marc
1999-01-14 4:49 ` David S. Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-ultrasparc-91628942430743@msgid-missing \
--to=davem@dm.cobaltmicro.com \
--cc=ultralinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.