OpenCloudOS-Kernel/include/asm-sh
Paul Mundt d04a0f79f5 sh: Fix up extended mode TLB for SH-X2+ cores.
The extended mode TLB requires both 64-bit PTEs and a 64-bit pgprot,
correspondingly, the PGD also has to be 64-bits, so fix that up.

The kernel and user permission bits really are decoupled in early
cuts of the silicon, which means that we also have to set corresponding
kernel permissions on user pages or we end up with user pages that the
kernel simply can't touch (!).

Finally, with those things corrected, really enable MMUCR.ME and
correct the PTEA value (this simply needs to be the upper 32-bits
of the PTE, with the size and protection bit encoding).

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2007-09-21 11:57:55 +09:00
..
cpu-sh2 sh: Kill off dead SH7604 support. 2007-06-08 11:55:28 +09:00
cpu-sh2a sh: Drop CPU subtype IRQ headers. 2006-12-06 10:45:37 +09:00
cpu-sh3 sh: dma: Fix up build for SH7709 support. 2007-09-21 11:57:53 +09:00
cpu-sh4 sh: Fix up extended mode TLB for SH-X2+ cores. 2007-09-21 11:57:55 +09:00
dreamcast sh: Fix dreamcast build for IRQ changes. 2007-05-21 15:10:04 +09:00
hd64465 fix file specification in comments 2006-10-03 23:01:26 +02:00
landisk sh: landisk: Header cleanups. 2007-05-14 09:18:35 +09:00
mpc1211 fix file specification in comments 2006-10-03 23:01:26 +02:00
sh03 sh: intc - remove redundant irq code for sh03, snapgear and titan 2007-09-21 11:57:47 +09:00
.gitignore sh: Initial gitignore list 2006-10-03 13:16:15 +09:00
Kbuild sh: Add cpu-features header to asm/Kbuild. 2007-02-13 10:54:46 +09:00
a.out.h arch: personality independent stack top 2007-07-19 10:04:45 -07:00
adc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
addrspace.h sh: __addr_ok() and other misc nommu fixups. 2006-09-27 17:25:07 +09:00
atomic-irq.h sh: Split out atomic ops logically. 2006-12-12 08:42:08 +09:00
atomic-llsc.h sh: Split out atomic ops logically. 2006-12-12 08:42:08 +09:00
atomic.h sh: Split out atomic ops logically. 2006-12-12 08:42:08 +09:00
auxvec.h sh: Initial vsyscall page support. 2006-09-27 18:33:49 +09:00
bitops.h sh: Various cosmetic cleanups. 2006-09-27 12:31:01 +09:00
bug.h Fix WARN_ON() on bitfield ops for all other archs 2007-08-01 20:45:38 -07:00
bugs.h sh: remove support for sh7300 and solution engine 7300 2007-07-26 15:37:57 +09:00
byteorder.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cache.h sh: Tidy up dependencies for SH-2 build. 2007-06-11 15:32:07 +09:00
cacheflush.h sh: Support explicit L1 cache disabling. 2007-09-21 11:57:46 +09:00
checksum.h sh: Shut up csum_ipv6_magic() warnings. 2006-12-12 08:42:07 +09:00
clock.h sh: Implement clk_round_rate() in the clock framework. 2007-07-20 13:29:09 +09:00
cpu-features.h sh: Add 32-bit opcode feature CPU flag. 2007-05-09 01:35:01 +00:00
cputime.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
current.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
delay.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
device.h Driver core: add dev_archdata to struct device 2006-12-01 14:52:01 -08:00
div64.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dma-mapping.h sh: Add missing dma_sync_single_range_for_*(). 2007-08-10 02:37:01 +09:00
dma.h sh: dma: Fix CONFIG_SYSFS=n build. 2007-09-21 11:57:53 +09:00
dmabrg.h sh: SH7760 DMABRG support. 2007-05-09 17:36:15 +09:00
edosk7705.h fix file specification in comments 2007-05-09 08:58:16 +02:00
elf.h sh: Preliminary support for SH-X2 MMU. 2006-12-06 10:45:37 +09:00
emergency-restart.h [PATCH] Add emergency_restart() 2005-07-26 14:35:41 -07:00
entry-macros.S sh: Fixup various PAGE_SIZE == 4096 assumptions. 2006-12-06 10:45:39 +09:00
errno.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fb.h fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
fcntl.h [PATCH] Clean up struct flock64 definitions 2005-09-07 16:57:38 -07:00
fixmap.h sh: Add kmap_coherent()/kunmap_coherent() interface for SH-4. 2007-07-24 13:28:26 +09:00
flat.h sh: Various nommu fixes. 2006-09-27 17:21:02 +09:00
floppy.h sh: Kill off virt_to_bus()/bus_to_virt(). 2007-07-26 15:37:40 +09:00
freq.h [PATCH] sh: Simplistic clock framework 2006-01-16 23:15:28 -08:00
futex-irq.h sh: Fix up futex implementation. 2007-06-18 13:58:32 +09:00
futex.h sh: Fix up futex implementation. 2007-06-18 13:58:32 +09:00
gpio.h sh: Add gpio.h stubs for PFC definitions. 2007-09-21 11:57:49 +09:00
hardirq.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
hd64461.h sh: Fix OFFCHIP_IRQ_BASE compile error. 2007-09-21 11:57:52 +09:00
heartbeat.h sh: heartbeat driver update. 2007-09-21 11:57:51 +09:00
hp6xx.h sh: Trivial fix for hp6xx build. 2007-03-28 19:45:59 +09:00
hs7751rvoip.h sh: Add some missing board headers. 2006-10-19 17:31:22 +09:00
hw_irq.h sh: intc - irl mode update for sh7780 and sh7785 2007-09-21 11:57:51 +09:00
ide.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
ilsel.h sh: x3proto: ILSEL IRQ support. 2007-09-21 11:57:48 +09:00
io.h sh: add writesb(), readsb(), writesw() and readsw() to io.h 2007-09-21 11:57:52 +09:00
io_generic.h [PATCH] sh: I/O routine cleanups and ioremap() overhaul 2006-01-16 23:15:28 -08:00
ioctl.h [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
ioctls.h sh: Convert struct ioctls to static defines. 2007-03-12 16:12:45 +09:00
ipc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipcbuf.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irq.h sh: rework ipr code 2007-06-15 18:56:19 +09:00
irq_regs.h sh: Updates for IRQ handler changes. 2006-10-06 15:31:16 +09:00
irqflags.h sh: stacktrace/lockdep/irqflags tracing support. 2006-12-06 10:45:40 +09:00
kdebug.h sh: revert addition of page fault notifiers 2007-05-21 14:32:10 +09:00
kexec.h kdump/kexec: calculate note size at compile time 2007-05-08 11:15:07 -07:00
keyboard.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
kgdb.h sh: Bring kgdb back from the dead. 2007-05-07 02:10:51 +00:00
kmap_types.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
lboxre2.h sh: Tidy up L-BOX area5 addresses. 2007-05-07 02:11:55 +00:00
linkage.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
local.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
machvec.h sh: Kill off machvec aliases. 2007-06-08 02:43:39 +00:00
magicpanelr2.h sh: Magic Panel R2 board support. 2007-09-21 11:57:54 +09:00
mc146818rtc.h sh: Kill off the rest of the legacy rtc mess. 2006-09-27 17:45:01 +09:00
microdev.h [PATCH] sh: SH4-202 microdev updates 2006-02-01 08:53:19 -08:00
mman.h [PATCH] add asm-generic/mman.h 2006-02-15 15:32:22 -08:00
mmu.h sh: Use a per-cpu ASID cache. 2007-02-13 10:54:45 +09:00
mmu_context.h sh: bootmem tidying for discontig/sparsemem preparation. 2007-05-07 02:10:54 +00:00
mmzone.h sh: Support for multiple nodes. 2007-06-08 02:43:49 +00:00
module.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
msgbuf.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mutex.h [PATCH] mutex subsystem, add default include/asm-*/mutex.h files 2006-01-09 15:59:19 -08:00
namei.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
page.h sh: Fix up extended mode TLB for SH-X2+ cores. 2007-09-21 11:57:55 +09:00
param.h sh: Obey CONFIG_HZ for HZ definition. 2007-05-07 02:11:56 +00:00
parport.h sh: Add parport stub for SuperIO ports. 2007-07-07 07:28:11 +09:00
pci.h PCI: remove pci_dac_dma_... APIs 2007-07-11 16:02:11 -07:00
percpu.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pgalloc.h sh: __GFP_REPEAT for pte allocations, too. 2007-05-09 01:35:01 +00:00
pgtable.h sh: Fix up extended mode TLB for SH-X2+ cores. 2007-09-21 11:57:55 +09:00
pm.h sh: APM/PM support. 2006-09-27 16:20:22 +09:00
poll.h Consolidate asm/poll.h 2007-05-11 08:29:34 -07:00
posix_types.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
processor.h sh: Add SH7720 CPU support. 2007-09-21 11:57:49 +09:00
ptrace.h Fix 'make headers_check' on sh 2006-09-21 08:36:50 +01:00
push-switch.h sh: push-switch fixups for work_struct API damage. 2006-12-12 08:42:07 +09:00
r7780rp.h sh: intc - rework higlander irq code for r7780mp and r7785rp 2007-09-21 11:57:52 +09:00
resource.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
rtc.h rtc: rtc-sh: Support 4-digit year on SH7705/SH7710/SH7712. 2007-09-21 11:57:47 +09:00
rts7751r2d.h sh: intc - convert board specific r2d code 2007-09-21 11:57:50 +09:00
rwsem.h sh: Warn against direct inclusion of <asm/rwsem.h>. 2007-06-08 11:56:31 +09:00
scatterlist.h PCI: scatterlist.h needs types.h 2007-05-02 19:02:34 -07:00
sci.h serial: Add SERIAL_SH_SCI_NR_UARTS for sh-sci. 2006-09-27 17:32:30 +09:00
se.h sh: Solution Engine SH7705 board and CPU updates. 2007-05-07 02:11:56 +00:00
se7206.h sh: SE7206 build fixes. 2006-12-06 10:45:37 +09:00
se7343.h sh: Solution Engine SH7343 board support. 2006-09-27 18:09:34 +09:00
se7722.h sh: clean up interrupt code for solution engine 7722 board 2007-07-20 12:18:20 +09:00
se7751.h sh: Bring kgdb back from the dead. 2007-05-07 02:10:51 +00:00
se7780.h sh: SH7780 Solution Engine board support. 2007-05-07 02:11:55 +00:00
sections.h sh: Fixup machvec support. 2007-06-08 02:43:37 +00:00
segment.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
semaphore-helper.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
semaphore.h [PATCH] semaphore: Remove __MUTEX_INITIALIZER() 2005-10-30 17:37:27 -08:00
sembuf.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
serial.h sh: rts7751r2d board updates. 2007-02-15 18:20:52 +09:00
setup.h sh: Fixup machvec support. 2007-06-08 02:43:37 +00:00
sfp-machine.h sh: Kill off remaining config.h references. 2006-10-03 13:19:02 +09:00
sh_bios.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
shmbuf.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
shmin.h sh: Add some missing board headers. 2006-10-19 17:31:22 +09:00
shmparam.h sh: Fixup SHMLBA definition for SH7705. 2006-09-27 15:29:18 +09:00
sigcontext.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
siginfo.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
signal.h [PATCH] irq-flags: SH: Use the new IRQF_ constants 2006-07-02 13:58:48 -07:00
smc37c93x.h sh: Move smc37c93x.h for SystemH board use. 2006-09-27 11:16:20 +09:00
smp.h sh: Hook up hard_smp_processor_id() for INTC2 block. 2007-06-20 18:23:49 +09:00
snapgear.h sh: intc - remove redundant irq code for sh03, snapgear and titan 2007-09-21 11:57:47 +09:00
socket.h [NET]: Adding SO_TIMESTAMPNS / SCM_TIMESTAMPNS support 2007-04-25 22:24:21 -07:00
sockios.h [NET]: Introduce SIOCGSTAMPNS ioctl to get timestamps with nanosec resolution 2007-04-25 22:24:04 -07:00
sparsemem.h sh: sparsemem support. 2007-06-08 02:43:43 +00:00
spinlock.h sh: Overhaul spinlocks and rwlocks for SH-4A SMP. 2007-09-21 11:57:51 +09:00
spinlock_types.h sh: Overhaul spinlocks and rwlocks for SH-4A SMP. 2007-09-21 11:57:51 +09:00
stat.h sh: Fix fstatat64() syscall. 2007-05-07 02:11:55 +00:00
statfs.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
string.h [STRING]: Move strcasecmp/strncasecmp to lib/string.c 2007-04-26 01:54:39 -07:00
system.h [PATCH] sched: sched_cacheflush is now unused 2007-07-19 21:28:35 +02:00
systemh7751.h sh: Board updates for I/O routine rework. 2006-09-27 15:41:24 +09:00
termbits.h lots-of-architectures: enable arbitary speed tty support 2007-07-10 17:51:13 -07:00
termios.h [PATCH] consolidate line discipline number definitions 2007-02-11 10:51:26 -08:00
thread_info.h remove unused TIF_NOTIFY_RESUME flag 2007-07-31 15:39:38 -07:00
timer.h sh: clockevent/clocksource/hrtimers/nohz TMU support. 2007-05-09 17:33:24 +09:00
timex.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
titan.h sh: sh775x/titan fixes for irq header changes. 2006-12-06 12:05:02 +09:00
tlb.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tlbflush.h sh: Local TLB flushing variants for SMP prep. 2007-02-13 10:54:45 +09:00
topology.h sh: Support for multiple nodes. 2007-06-08 02:43:49 +00:00
types.h [PATCH] Centralise definitions of sector_t and blkcnt_t 2006-12-04 19:41:15 -08:00
uaccess.h sh: __user annotations for __get/__put_user(). 2007-06-08 02:43:36 +00:00
ubc.h sh: remove support for sh7300 and solution engine 7300 2007-07-26 15:37:57 +09:00
ucontext.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
unaligned.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
unistd.h sh: Wire up fallocate() syscall. 2007-07-20 12:27:09 +09:00
user.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
voyagergx.h sh: intc - convert voyagergx code 2007-09-21 11:57:48 +09:00
watchdog.h sh: Various cosmetic cleanups. 2006-09-27 12:31:01 +09:00
xor.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00