/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _CRIS_ARCH_PAGE_H #define _CRIS_ARCH_PAGE_H #ifdef __KERNEL__ /* This handles the memory map.. */ #ifdef CONFIG_CRIS_LOW_MAP #define PAGE_OFFSET KSEG_6 /* kseg_6 is mapped to physical ram */ #else #define PAGE_OFFSET KSEG_C /* kseg_c is mapped to physical ram */ #endif /* macros to convert between really physical and virtual addresses * by stripping a selected bit, we can convert between KSEG_x and * 0x40000000 where the DRAM really resides */ #ifdef CONFIG_CRIS_LOW_MAP /* we have DRAM virtually at 0x6 */ #define __pa(x) ((unsigned long)(x) & 0xdfffffff) #define __va(x) ((void *)((unsigned long)(x) | 0x20000000)) #else /* we have DRAM virtually at 0xc */ #define __pa(x) ((unsigned long)(x) & 0x7fffffff) #define __va(x) ((void *)((unsigned long)(x) | 0x80000000)) #endif #endif #endif
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
bitops.h | File | 1.81 KB | 0644 |
|
bug.h | File | 2.07 KB | 0644 |
|
cache.h | File | 219 B | 0644 |
|
checksum.h | File | 726 B | 0644 |
|
delay.h | File | 394 B | 0644 |
|
dma.h | File | 1.74 KB | 0644 |
|
io.h | File | 6.46 KB | 0644 |
|
io_interface_mux.h | File | 2.02 KB | 0644 |
|
irq.h | File | 5.95 KB | 0644 |
|
irqflags.h | File | 994 B | 0644 |
|
memmap.h | File | 680 B | 0644 |
|
mmu.h | File | 3.4 KB | 0644 |
|
offset.h | File | 1.19 KB | 0644 |
|
page.h | File | 920 B | 0644 |
|
pgtable.h | File | 324 B | 0644 |
|
processor.h | File | 2 KB | 0644 |
|
swab.h | File | 672 B | 0644 |
|
system.h | File | 809 B | 0644 |
|
thread_info.h | File | 335 B | 0644 |
|
timex.h | File | 982 B | 0644 |
|
tlb.h | File | 394 B | 0644 |
|
uaccess.h | File | 17.7 KB | 0644 |
|
unistd.h | File | 4.38 KB | 0644 |
|