plan9fox/sys/src/9/pc64
cinap_lenrek 5d59a44c21 pc, pc64: clear debug watchpoint registers on exec and exit
when a process does an exec syscall, procsetup() is called and
we have to disable the debug watchpoint registers. just clearing
p->dr is not enougth as we are not going thru a procsave() and
procrestore() cycle which would disable and reload the saved
debug registers.

instead of clearing debug registers in procfork(), we should
clear the saved debug registers before a process goes to die
(pexit() calls sched() with up->state = Moribund) as the Proc
structure can get reused for kernel processes (kproc) which
never call procfork() and would therefore have debug registers
loaded.
2019-12-02 23:32:24 +01:00
..
apbootstrap.s pc64: map kernel text readonly and everything else no-execute 2019-08-29 07:35:22 +02:00
dat.h pc64: implement NX bit discovery, map kernel mappings no-execute 2019-08-27 03:55:12 +02:00
fns.h usbehci: introduce dmaflush() function to handle portable cache invalidation for device drivers 2019-07-17 10:24:50 +02:00
l.s kernel: change peek to return number of characters left rather than 0/-1 2018-12-11 09:17:44 +00:00
main.c pc, pc64: clear debug watchpoint registers on exec and exit 2019-12-02 23:32:24 +01:00
mem.h pc64: implement NX bit discovery, map kernel mappings no-execute 2019-08-27 03:55:12 +02:00
memory.c pc, pc64: merge adjacent e820 map entries of same type 2019-12-01 14:06:30 +01:00
mkfile sd53c8xx: fix the driver for amd64, fix alignment/padding issues, fix freechain handling 2019-11-24 21:56:54 +01:00
mmu.c pc64: map kernel text readonly and everything else no-execute 2019-08-29 07:35:22 +02:00
pc64 sd53c8xx: fix the driver for amd64, fix alignment/padding issues, fix freechain handling 2019-11-24 21:56:54 +01:00
rebootcode.s pc, pc64: park application processors in rebootcode with mmu off 2018-11-19 18:42:01 +01:00
squidboy.c pc64: map kernel text readonly and everything else no-execute 2019-08-29 07:35:22 +02:00
trap.c kernel: clear FPillegal in pexit() and before pprint() 2019-09-08 19:02:01 +02:00