Changeset 4512d7e in mainline for generic/include/mm/asid.h


Ignore:
Timestamp:
2006-01-19T22:17:47Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6461d67c
Parents:
64c44e8
Message:

New ASID management subsystem (initial work, more is required).
Some TLB invalidation changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/include/mm/asid.h

    r64c44e8 r4512d7e  
    2727 */
    2828
     29/*
     30 * This is generic interface for managing
     31 * Address Space IDentifiers (ASIDs).
     32 */
     33
    2934#ifndef __ASID_H__
    3035#define __ASID_H__
    3136
     37#include <arch/mm/asid.h>
     38#include <typedefs.h>
     39
    3240#define ASID_KERNEL     0
     41#define ASID_INVALID    1
     42#define ASID_START      2
     43#define ASID_MAX        ASID_MAX_ARCH
     44
     45#define ASIDS_ALLOCABLE ((ASID_MAX+1)-ASID_START)
     46
     47extern spinlock_t asidlock;
     48extern link_t as_with_asid_head;
     49
     50extern asid_t asid_get(void);
     51extern void asid_put(asid_t asid);
     52
     53#ifndef asid_install
     54extern void asid_install(as_t *as);
     55#endif /* !def asid_install */
     56
     57#define asid_find_free()        ASID_START
     58#define asid_put_arch(x)
    3359
    3460#endif
Note: See TracChangeset for help on using the changeset viewer.