OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [arch/] [mips/] [kernel/] [ioport.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/*
2
 * linux/arch/mips/kernel/ioport.c
3
 */
4
#include <linux/sched.h>
5
#include <linux/kernel.h>
6
#include <linux/errno.h>
7
#include <linux/types.h>
8
#include <linux/ioport.h>
9
 
10
/*
11
 * This changes the io permissions bitmap in the current task.
12
 */
13
asmlinkage int sys_ioperm(unsigned long from, unsigned long num, int turn_on)
14
{
15
        return -ENOSYS;
16
}
17
 
18
unsigned int *stack;
19
 
20
/*
21
 * sys_iopl has to be used when you want to access the IO ports
22
 * beyond the 0x3ff range: to get the full 65536 ports bitmapped
23
 * you'd need 8kB of bitmaps/process, which is a bit excessive.
24
 *
25
 * Here we just change the eflags value on the stack: we allow
26
 * only the super-user to do it. This depends on the stack-layout
27
 * on system-call entry - see also fork() and the signal handling
28
 * code.
29
 */
30
asmlinkage int sys_iopl(long ebx,long ecx,long edx,
31
             long esi, long edi, long ebp, long eax, long ds,
32
             long es, long fs, long gs, long orig_eax,
33
             long eip,long cs,long eflags,long esp,long ss)
34
{
35
        return -ENOSYS;
36
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.