lkml.org 
[lkml]   [1997]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectwhat is wrong with this?
#include <asm/io.h>
void main()
{
long port;
short data;

port = 0x8370;
data = 0;
iopl(3);
(*(volatile unsigned short *)(port))=0;
}

running this as root should not segv. However, it does. Why?

tried linux 2.1.14 and 2.1.20...

-- Todd T. Fries .. friest@acm.org

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.039 / U:4.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site