/* MN10300 Virtual kernel memory mappings for high memory * * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * - Derived from include/asm-i386/highmem.h * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public Licence * as published by the Free Software Foundation; either version * 2 of the Licence, or (at your option) any later version. */ #ifndef _ASM_HIGHMEM_H #define _ASM_HIGHMEM_H #ifdef __KERNEL__ #include <linux/init.h> #include <linux/interrupt.h> #include <linux/highmem.h> #include <asm/kmap_types.h> #include <asm/pgtable.h> /* undef for production */ #undef HIGHMEM_DEBUG /* declarations for highmem.c */ extern unsigned long highstart_pfn, highend_pfn; extern pte_t *kmap_pte; extern pgprot_t kmap_prot; extern pte_t *pkmap_page_table; extern void __init kmap_init(void); /* * Right now we initialize only a single pte table. It can be extended * easily, subsequent pte tables have to be allocated in one physical * chunk of RAM. */ #define PKMAP_BASE 0xfe000000UL #define LAST_PKMAP 1024 #define LAST_PKMAP_MASK (LAST_PKMAP - 1) #define PKMAP_NR(virt) ((virt - PKMAP_BASE) >> PAGE_SHIFT) #define PKMAP_ADDR(nr) (PKMAP_BASE + ((nr) << PAGE_SHIFT)) extern unsigned long kmap_high(struct page *page); extern void kunmap_high(struct page *page);
static inline unsigned long kmap(struct page *page) { if (in_interrupt()) BUG(); if (page < highmem_start_page) return page_address(page); return kmap_high(page); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 39 | 100.00% | 1 | 100.00% |
Total | 39 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 32 | 100.00% | 1 | 100.00% |
Total | 32 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 87 | 79.09% | 2 | 28.57% |
Peter Zijlstra | 11 | 10.00% | 1 | 14.29% |
Al Viro | 6 | 5.45% | 1 | 14.29% |
David Hildenbrand | 3 | 2.73% | 1 | 14.29% |
Akinobu Mita | 2 | 1.82% | 1 | 14.29% |
Américo Wang | 1 | 0.91% | 1 | 14.29% |
Total | 110 | 100.00% | 7 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 48 | 52.75% | 2 | 40.00% |
Peter Zijlstra | 37 | 40.66% | 2 | 40.00% |
David Hildenbrand | 6 | 6.59% | 1 | 20.00% |
Total | 91 | 100.00% | 5 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 317 | 82.12% | 2 | 25.00% |
Peter Zijlstra | 48 | 12.44% | 2 | 25.00% |
David Hildenbrand | 9 | 2.33% | 1 | 12.50% |
Al Viro | 6 | 1.55% | 1 | 12.50% |
Akinobu Mita | 5 | 1.30% | 1 | 12.50% |
Américo Wang | 1 | 0.26% | 1 | 12.50% |
Total | 386 | 100.00% | 8 | 100.00% |