plan9fox/sys/src/9/teg2
cinap_lenrek 128ea44a89 kernel: expose no execute bit to portable mmu code as SG_NOEXEC / PTENOEXEC, add PTECACHED bits
a portable SG_NOEXEC segment attribute was added to allow
non-executable (physical) segments. which will set the
PTENOEXEC bits for putmmu().

in the future, this can be used to make non-executable
stack / bss segments.

the SG_DEVICE attribute was added to distinguish between
mmio regions and uncached memory. only matterns on arm64.

on arm, theres the issue that PTEUNCACHED would have
no bits set when using the hardware bit definitions.
this is the reason bcm, kw, teg2 and omap kernels use
arteficial PTE constants. on zynq, the XN bit was used
as a hack to give PTEUNCACHED a non-zero value and when
the bit is clear then cache attributes where added to
the pte.

to fix this, PTECACHED constant was added.

the portable mmu code in fault.c will now explicitely set
PTECACHED bits for cached memory and PTEUNCACHED for
uncached memory. that way the hardware bit definitions
can be used everywhere.
2019-08-26 22:34:38 +02:00
..
notes add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
_announce add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
arch.c bcm, kw, omap, teg2: implement setregisters() 2019-06-20 13:17:36 +02:00
archtegra.c usbehci: introduce dmaflush() function to handle portable cache invalidation for device drivers 2019-07-17 10:24:50 +02:00
arm.h add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
arm.s add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
cache-l2-pl310.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
cache.v7.s teg2: fix wrong l2 setshift address in wholecache() (from sources) 2014-09-17 16:34:30 +02:00
caches-v7.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
caches.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
clock-tegra.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
clock.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
coproc.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
dat.h kernel: introduce per process FPU struct (PFPU) for more flexible machine specific fpu handling 2017-11-04 20:08:22 +01:00
devarch.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
ether8169.c kernel: move common ethermii to port/ 2019-07-11 07:47:39 +02:00
fns.h kernel: get rid of PTR2UINT() and UINT2PTR() macros 2019-04-11 13:51:38 +02:00
fpi.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
fpi.h add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
fpiarm.c kernel: introduce per process FPU struct (PFPU) for more flexible machine specific fpu handling 2017-11-04 20:08:22 +01:00
fpimem.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
init9.s add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
io.h io.h: fis comment PciSID (alphapc, kw, mtx, teg2) (thanks qeed!) 2015-05-30 16:50:02 +02:00
l.s all kernels: declare _tas() to prevent pulling in libc version (for libmemdraw) 2015-07-07 19:17:55 +02:00
lexception.s add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
lproc.s add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
main.c kernel: get rid of PTR2UINT() and UINT2PTR() macros 2019-04-11 13:51:38 +02:00
mem.h kernel: expose no execute bit to portable mmu code as SG_NOEXEC / PTENOEXEC, add PTECACHED bits 2019-08-26 22:34:38 +02:00
mkfile kernel: move devether and wifi to port/ 2018-02-11 18:08:03 +01:00
mmu.c kernel: get rid of PTR2UINT() and UINT2PTR() macros 2019-04-11 13:51:38 +02:00
nvram add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
pci.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
rebootcode.s add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
softfpu.c ARM: kernel changes make teg2 procfork() call fpuprocfork() and acid fixes for vfp instruction 2013-06-10 18:07:16 +05:30
syscall.c kernel: get rid of PTR2UINT() and UINT2PTR() macros 2019-04-11 13:51:38 +02:00
trap.c kernel: get rid of PTR2UINT() and UINT2PTR() macros 2019-04-11 13:51:38 +02:00
ts kernel: remove ptclbsum dependencies from configs 2019-02-27 08:47:17 +01:00
uarti8250.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
v7-arch.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
vfp3.c ARM: kernel changes make teg2 procfork() call fpuprocfork() and acid fixes for vfp instruction 2013-06-10 18:07:16 +05:30
words add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00