Subversion Repositories HelenOS-historic

Rev

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

Rev 594 Rev 623
Line 35... Line 35...
35
#include <arch/interrupt.h>
35
#include <arch/interrupt.h>
36
#include <config.h>
36
#include <config.h>
37
#include <arch.h>
37
#include <arch.h>
38
#include <panic.h>
38
#include <panic.h>
39
 
39
 
40
#ifdef CONFIG_SMP
-
 
41
static spinlock_t tlblock;
40
SPINLOCK_INITIALIZE(tlblock);
42
#endif
-
 
43
 
41
 
44
void tlb_init(void)
42
void tlb_init(void)
45
{
43
{
46
    if (config.cpu_active == 1)
-
 
47
        spinlock_initialize(&tlblock, "tlb_lock");
-
 
48
 
-
 
49
    tlb_arch_init();
44
    tlb_arch_init();
50
}
45
}
51
 
46
 
52
#ifdef CONFIG_SMP
47
#ifdef CONFIG_SMP
53
/* must be called with interrupts disabled */
48
/* must be called with interrupts disabled */