aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/pgtable_32.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/include/asm/pgtable_32.h')
-rw-r--r--arch/sparc/include/asm/pgtable_32.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/arch/sparc/include/asm/pgtable_32.h b/arch/sparc/include/asm/pgtable_32.h
index c704f949b7e..97a48807361 100644
--- a/arch/sparc/include/asm/pgtable_32.h
+++ b/arch/sparc/include/asm/pgtable_32.h
@@ -79,8 +79,6 @@ extern unsigned long ptr_in_current_pgd;
79#define __S110 PAGE_SHARED 79#define __S110 PAGE_SHARED
80#define __S111 PAGE_SHARED 80#define __S111 PAGE_SHARED
81 81
82extern int num_contexts;
83
84/* First physical page can be anywhere, the following is needed so that 82/* First physical page can be anywhere, the following is needed so that
85 * va-->pa and vice versa conversions work properly without performance 83 * va-->pa and vice versa conversions work properly without performance
86 * hit for all __pa()/__va() operations. 84 * hit for all __pa()/__va() operations.
@@ -399,36 +397,6 @@ static inline pte_t pgoff_to_pte(unsigned long pgoff)
399 */ 397 */
400#define PTE_FILE_MAX_BITS 24 398#define PTE_FILE_MAX_BITS 24
401 399
402/*
403 */
404struct ctx_list {
405 struct ctx_list *next;
406 struct ctx_list *prev;
407 unsigned int ctx_number;
408 struct mm_struct *ctx_mm;
409};
410
411extern struct ctx_list *ctx_list_pool; /* Dynamically allocated */
412extern struct ctx_list ctx_free; /* Head of free list */
413extern struct ctx_list ctx_used; /* Head of used contexts list */
414
415#define NO_CONTEXT -1
416
417static inline void remove_from_ctx_list(struct ctx_list *entry)
418{
419 entry->next->prev = entry->prev;
420 entry->prev->next = entry->next;
421}
422
423static inline void add_to_ctx_list(struct ctx_list *head, struct ctx_list *entry)
424{
425 entry->next = head;
426 (entry->prev = head->prev)->next = entry;
427 head->prev = entry;
428}
429#define add_to_free_ctxlist(entry) add_to_ctx_list(&ctx_free, entry)
430#define add_to_used_ctxlist(entry) add_to_ctx_list(&ctx_used, entry)
431
432static inline unsigned long 400static inline unsigned long
433__get_phys (unsigned long addr) 401__get_phys (unsigned long addr)
434{ 402{