Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 752 → Rev 753

/kernel/trunk/genarch/src/mm/asid.c
94,7 → 94,7
ipl = interrupts_disable();
spinlock_lock(&asidlock);
if (ASID_STEALING_ENABLED && asids_allocated == ASIDS_ALLOCABLE) {
if (asids_allocated == ASIDS_ALLOCABLE) {
 
/*
* All ASIDs are already allocated.
/kernel/trunk/arch/sparc64/include/mm/asid.h
36,7 → 36,6
*/
typedef __u16 asid_t;
 
#define ASID_STEALING_ENABLED 1
#define ASID_MAX_ARCH 8191 /* 2^13 - 1 */
 
#endif
/kernel/trunk/arch/ia64/include/mm/asid.h
31,16 → 31,15
 
#include <arch/types.h>
 
typedef __u32 asid_t;
typedef __u16 asid_t;
 
/**
* This macro eliminates the stealing branch of asid_get().
* Number of ia64 RIDs (Region Identifiers) per kernel ASID.
* Note that some architectures may support more bits,
* but those extra bits are not used by the kernel.
*/
#define ASID_STEALING_ENABLED 0
 
/** Number of ia64 RIDs (Region Identifiers) per kernel ASID. */
#define RIDS_PER_ASID 7
#define RID_OVERFLOW 16777216 /* 2^24 */
#define RID_MAX 262143 /* 2^18 - 1 */
 
#define ASID2RID(asid, vrn) (((asid)*RIDS_PER_ASID)+(vrn))
#define RID2ASID(rid) ((rid)/RIDS_PER_ASID)
47,18 → 46,6
 
typedef __u32 rid_t;
 
/**
* This macro is needed only to compile the kernel.
* On ia64, its value is ignored.
*/
#define ASID_MAX_ARCH 0
#define ASID_MAX_ARCH (RID_MAX/RIDS_PER_ASID)
 
/**
* Value used to recognize the situation when all ASIDs were already allocated.
*/
#define ASID_OVERFLOW (RID_OVERFLOW/RIDS_PER_ASID)
 
/** On ia64, this is no-op. */
#define asid_put_arch(x)
 
#endif
/kernel/trunk/arch/ia64/Makefile.inc
51,8 → 51,8
#
 
CONFIG_ASID = y
CONFIG_ASID_FIFO = y
 
 
ARCH_SOURCES = \
arch/$(ARCH)/src/start.S \
arch/$(ARCH)/src/asm.S \
64,7 → 64,6
arch/$(ARCH)/src/cpu/cpu.c \
arch/$(ARCH)/src/ivt.S \
arch/$(ARCH)/src/interrupt.c \
arch/$(ARCH)/src/mm/asid.c \
arch/$(ARCH)/src/mm/frame.c \
arch/$(ARCH)/src/mm/page.c \
arch/$(ARCH)/src/mm/tlb.c \
/kernel/trunk/arch/ia64/src/mm/asid.c
File deleted
/kernel/trunk/arch/mips32/include/mm/asid.h
31,8 → 31,7
 
#include <arch/types.h>
 
#define ASID_STEALING_ENABLED 1
#define ASID_MAX_ARCH 255
#define ASID_MAX_ARCH 255 /* 2^8 - 1 */
 
typedef __u8 asid_t;