/kernel/trunk/generic/include/mm/asid.h |
---|
54,12 → 54,7 |
extern void asid_install(as_t *as); |
#endif /* !def asid_install */ |
#ifndef asid_find_free |
extern asid_t asid_find_free(void); |
#endif /* !def asid_find_free */ |
#define asid_find_free() ASID_START |
#define asid_put_arch(x) |
#ifndef asid_put_arch |
extern void asid_put_arch(asid_t asid); |
#endif /* !def asid_put_arch */ |
#endif |
/kernel/trunk/arch/ia64/include/mm/asid.h |
---|
34,12 → 34,9 |
typedef __u32 asid_t; |
/* |
* ASID_MAX can range from 2^18 - 1 to 2^24 - 1, |
* ASID_MAX can range from 2^18 - 1 to 2^24 - , |
* depending on architecture implementation. |
*/ |
#define ASID_MAX_ARCH 16777215 /* 2^24 - 1 */ |
#define asid_find_free() ASID_MAX_ARCH |
#define asid_put_arch(x) |
#endif |
/kernel/trunk/arch/sparc64/Makefile.inc |
---|
55,8 → 55,8 |
# |
CONFIG_ASID = y |
CONFIG_ASID_FIFO = y |
ARCH_SOURCES = \ |
arch/$(ARCH)/src/cpu/cpu.c \ |
arch/$(ARCH)/src/asm.S \ |
/kernel/trunk/arch/sparc64/src/mm/tlb.c |
---|
28,7 → 28,6 |
#include <arch/mm/tlb.h> |
#include <mm/tlb.h> |
#include <genarch/mm/asid_fifo.h> |
#include <arch/mm/frame.h> |
#include <arch/mm/page.h> |
#include <arch/mm/mmu.h> |
56,8 → 55,6 |
frame_address_t fr; |
page_address_t pg; |
asid_fifo_init(); |
fr.address = config.base; |
pg.address = config.base; |
/kernel/trunk/arch/mips32/Makefile.inc |
---|
55,8 → 55,8 |
# |
CONFIG_ASID = y |
CONFIG_ASID_FIFO = y |
## Accepted MACHINEs |
# |
113,6 → 113,7 |
arch/$(ARCH)/src/cache.c \ |
arch/$(ARCH)/src/debugger.c \ |
arch/$(ARCH)/src/cpu/cpu.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/mips32/src/mm/asid.c |
---|
0,0 → 1,32 |
/* |
* Copyright (C) 2005 Martin Decky |
* Copyright (C) 2005 Jakub Jermar |
* All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
* are met: |
* |
* - Redistributions of source code must retain the above copyright |
* notice, this list of conditions and the following disclaimer. |
* - Redistributions in binary form must reproduce the above copyright |
* notice, this list of conditions and the following disclaimer in the |
* documentation and/or other materials provided with the distribution. |
* - The name of the author may not be used to endorse or promote products |
* derived from this software without specific prior written permission. |
* |
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
#include <arch/mm/asid.h> |
#include <typedefs.h> |
/kernel/trunk/arch/mips32/src/mm/tlb.c |
---|
28,7 → 28,6 |
#include <arch/mm/tlb.h> |
#include <mm/asid.h> |
#include <genarch/mm/asid_fifo.h> |
#include <mm/tlb.h> |
#include <mm/page.h> |
#include <mm/as.h> |
58,8 → 57,6 |
{ |
int i; |
asid_fifo_init(); |
cp0_pagemask_write(TLB_PAGE_MASK_16K); |
cp0_entry_hi_write(0); |
cp0_entry_lo0_write(0); |
/kernel/trunk/arch/ia32/src/mm/tlb.c |
---|
46,7 → 46,7 |
tlb_invalidate_all(); |
} |
/** Invalidate TLB entries for specified page range belonging to specified address space. |
/** Invalidate TLB entry for specified page range belonging to specified address space. |
* |
* @param asid This parameter is ignored as the architecture doesn't support it. |
* @param page Address of the first page whose entry is to be invalidated. |
/kernel/trunk/genarch/Makefile.inc |
---|
49,7 → 49,3 |
GENARCH_SOURCES += \ |
genarch/src/mm/asid.c |
endif |
ifeq ($(CONFIG_ASID_FIFO),y) |
GENARCH_SOURCES += \ |
genarch/src/mm/asid_fifo.c |
endif |
/kernel/trunk/genarch/src/mm/asid_fifo.c |
---|
File deleted |
/kernel/trunk/genarch/include/mm/asid_fifo.h |
---|
File deleted |