From: Belinda <belinda_ye@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: inb() and outb()
Date: Sun, 30 Sep 2001 12:09:54 -0700 (PDT) [thread overview]
Message-ID: <20010930190954.18227.qmail@web13904.mail.yahoo.com> (raw)
Hi, all
I wrote a simple program with inb() and outb().
However, it reports the segmentation error when
running it.
The code follows as:
---------------------------------
#include <asm/io.h>
#define LPT 0x378
void write_LPT(unsigned char byte)
{
outb(byte, LPT);
}
int main()
{
write_LPT(LPT);
printf("Value:%c", inb(LPT));
}
------------------------------------------------------
Thanks,
Belinda
__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com
next reply other threads:[~2001-09-30 19:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-30 19:09 Belinda [this message]
2001-09-30 19:29 ` Ben Greear
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=20010930190954.18227.qmail@web13904.mail.yahoo.com \
--to=belinda_ye@yahoo.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®