Subversion Repositories HelenOS-historic

Rev

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

Rev 111 Rev 389
Line 25... Line 25...
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
#include <mm/tlb.h>
29
#include <mm/tlb.h>
-
 
30
#include <arch/mm/tlb.h>
30
#include <smp/ipi.h>
31
#include <smp/ipi.h>
31
#include <synch/spinlock.h>
32
#include <synch/spinlock.h>
32
#include <typedefs.h>
33
#include <typedefs.h>
33
#include <arch/atomic.h>
34
#include <arch/atomic.h>
34
#include <arch/interrupt.h>
35
#include <arch/interrupt.h>
35
#include <config.h>
36
#include <config.h>
36
#include <arch.h>
37
#include <arch.h>
37
 
38
 
38
#ifdef __SMP__
39
#ifdef __SMP__
39
static spinlock_t tlblock;
40
static spinlock_t tlblock;
-
 
41
#endif
40
 
42
 
41
void tlb_init(void)
43
void tlb_init(void)
42
{
44
{
-
 
45
    if (config.cpu_active == 1)
43
    spinlock_initialize(&tlblock);
46
        spinlock_initialize(&tlblock);
-
 
47
 
-
 
48
    tlb_init_arch();
44
}
49
}
45
 
50
 
-
 
51
#ifdef __SMP__
46
/* must be called with interrupts disabled */
52
/* must be called with interrupts disabled */
47
void tlb_shootdown_start(void)
53
void tlb_shootdown_start(void)
48
{
54
{
49
    int i;
55
    int i;
50
 
56