Subversion Repositories HelenOS-historic

Rev

Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1702 Rev 1756
Line 38... Line 38...
38
#include <byteorder.h>
38
#include <byteorder.h>
39
#include <bitops.h>
39
#include <bitops.h>
40
 
40
 
41
static volatile __u32 *pic;
41
static volatile __u32 *pic;
42
 
42
 
43
void pic_init(void)
43
void pic_init(__address base, size_t size)
44
{
44
{
45
    pic = (__u32 *)hw_map(PIC_HW_ADDR, PAGE_SIZE);
45
    pic = (__u32 *) hw_map(base, size);
46
}
46
}
47
 
47
 
48
 
48
 
49
 
49
 
50
void pic_enable_interrupt(int intnum)
50
void pic_enable_interrupt(int intnum)