My friend is having some trouble anyone have some suggestions?
Please CC her as she is not on the list.
Josef
_
Program (pro'gram), n. A magical spell cast over a computer that turns
one's input into error messages. v. To engage in an activity similar to
banging one's head into a wall, but with less opportunity for reward.
-----------------------------------------------------------------------
Wise words from Josef Wells .aka. Scrub .aka. MadMan, for more, write
[EMAIL PROTECTED]
---------- Forwarded message ----------
Date: Fri, 23 Apr 1999 09:54:34 -0500
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: segmentation fault
Hi,
1. I'm currently using kernel ver 2.2.3 and pci utilities version 1.10.
I'm using lspci to get the following info about my multiport (dumb) serial
card:
Interrupt: pin A routed to IRQ 11
Region 0: Memory at 000dff80 (low 1M, non-prefetchable)
Region 1: I/O ports at dff0
Region 2: I/O ports at dfe0
Region 3: I/O ports at dfa8
Region 4: I/O ports at dfa0
2. My program/problems
includes: stdio.h, termios.h, string.h, fcntl.h, errno.h, linux/fs.h,
linux/serial.h, linux/tty.h, sys/ioctl.h, unistd.h,
asm/io.h
however, I have to define a readl(addr) and writel(b,address) macro
since "gcc serial.c" gives me an
error of undefined readl and writel (even though they should be
defined in asm/io.h)
after compiling and running strace on the program, I see that the
readl(0xdff80) causes a segmentation fault.
do I need to call ioremap to fix things (however, ioremap isn't
not in my vmalloc.h file)? has there
been a kernel change so that ioremap is no longer necessary to
map a physical address to
a virtual address in user space? btw, I want to run this program
in user space w/o writing a module- it seems strange that I
couldn't access memory -- especially if it's address is under 1M -- in user
space. Also, readl is called before writel, so the program is
killed at readl.
Finally, I set the user mode by using iopl(3) at the beginning of the
program.
Thanks!
Jane
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]