Subversion Repositories HelenOS

Rev

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

Rev 2177 Rev 2214
Line 1... Line 1...
1
/*
1
/*
2
 * Copyright (c) 2007 Petr Stepan
2
 * Copyright (c) 2007 Petr Stepan, Michal Kebrt
3
 * All rights reserved.
3
 * All rights reserved.
4
 *
4
 *
5
 * Redistribution and use in source and binary forms, with or without
5
 * Redistribution and use in source and binary forms, with or without
6
 * modification, are permitted provided that the following conditions
6
 * modification, are permitted provided that the following conditions
7
 * are met:
7
 * are met:
Line 30... Line 30...
30
 * @{
30
 * @{
31
 */
31
 */
32
/** @file
32
/** @file
33
 */
33
 */
34
 
34
 
35
#include<arch/asm.h>
35
#include <arch/asm.h>
36
#include<arch/regutils.h>
36
#include <arch/regutils.h>
-
 
37
#include <interrupt.h>
-
 
38
 
-
 
39
 
-
 
40
#define IRQ_COUNT   8
37
 
41
 
38
 
42
 
39
/** Disable interrupts.
43
/** Disable interrupts.
40
 *
44
 *
41
 * @return Old interrupt priority level.
45
 * @return Old interrupt priority level.
Line 79... Line 83...
79
ipl_t interrupts_read(void)
83
ipl_t interrupts_read(void)
80
{
84
{
81
    return current_status_reg_read();
85
    return current_status_reg_read();
82
}
86
}
83
 
87
 
-
 
88
void interrupt_init(void) {
-
 
89
    irq_init(IRQ_COUNT, IRQ_COUNT);
-
 
90
}
-
 
91
 
84
/** @}
92
/** @}
85
 */
93
 */