opnsense-src/sys/amd64/amd64
Neel Natu be28275d00 If a superpage mapping is being removed then we need to ignore the PG_PDE_PAT
bit when looking up the vm_page associated with the superpage's physical
address.

If the caching attribute for the mapping is write combining or write protected
then the PG_PDE_PAT bit will be set and thus cause an 'off-by-one' error
when looking up the vm_page.

Fix this by using the PG_PS_FRAME mask to compute the physical address for
a superpage mapping instead of PG_FRAME.

This is a theoretical issue at this point since non-writeback attributes are
currently used only for fictitious mappings and fictitious mappings are not
subject to promotion.

Discussed with:	alc, kib
MFC after:	2 weeks
2013-07-03 23:21:25 +00:00
..
amd64_mem.c Avoid preemption while manipulating CRs and MTRRs. 2011-01-17 17:30:35 +00:00
apic_vector.S Do not EOI local APIC too early. Just do doreti normally after resuming. 2012-02-07 23:24:29 +00:00
atomic.c Use __FBSDID(). 2003-07-25 21:19:19 +00:00
atpic_vector.S Introduce the new kernel sub-tree x86 which should contain all the code 2010-02-25 14:13:39 +00:00
autoconf.c Create nexus in configure_first() instead of in configure(). This 2005-05-29 23:44:22 +00:00
bios.c Make the facility for recognizing BIOS-signatures more general 2005-07-21 09:48:37 +00:00
bpf_jit_machdep.c If a conditional jump instruction has the same jt and jf, do not perform 2010-04-22 23:47:19 +00:00
bpf_jit_machdep.h If a conditional jump instruction has the same jt and jf, do not perform 2010-04-22 23:47:19 +00:00
cpu_switch.S Add support for the XSAVEOPT instruction use. Our XSAVE/XRSTOR usage 2012-07-14 15:48:30 +00:00
db_disasm.c Several fixes to the amd64 disassembler: 2012-07-06 14:25:59 +00:00
db_interface.c - Adjust the whitespace for the lines that output fields in 'show pcpu' in 2010-05-21 17:17:56 +00:00
db_trace.c Fix the hardware watchpoints on SMP amd64. Load the updated %dr 2013-05-21 11:24:32 +00:00
elf_machdep.c Remove duplicate header inclusion of <sys/sysent.h> 2012-08-07 05:46:36 +00:00
exception.S Some clarifications and updates for the comments, mostly retrieved 2013-06-19 05:05:16 +00:00
fpu.c Correct the type for the literal used on the left side of the shift up 2013-05-09 17:25:29 +00:00
gdb_machdep.c Sync with i386: Map exceptions to signals in gdb_cpu_signal() so 2006-04-04 03:00:20 +00:00
genassym.c Remove unused macros PTESHIFT, PDESHIFT, PDPESHIFT and PML4ESHIFT. 2013-06-14 00:03:43 +00:00
identcpu.c Fix several standard extended feature bits. 2013-05-11 01:31:51 +00:00
in_cksum.c Begin all license/copyright comments with /*- 2005-01-05 20:17:21 +00:00
initcpu.c Enable the new instructions for reading and writing bases for %fs, 2012-11-01 15:17:43 +00:00
io.c - Extract the IODEV_PIO interface from ia64 and make it MI. 2010-04-28 15:38:01 +00:00
locore.S Have hammer_time() return the proc0 stack location, and have locore 2003-05-31 06:54:29 +00:00
machdep.c Use slightly more idiomatic expression to get the address of array. 2013-05-27 18:39:39 +00:00
mem.c Partially revert r217515 so that the mem_range_softc variable is always 2012-07-09 20:42:08 +00:00
minidump_machdep.c Compute the number of initial kernel page table pages (NKPT) dynamically. 2013-02-06 04:53:00 +00:00
mp_machdep.c - Add a BIT_FFS() macro and use it to replace cpusetffs_obj() 2013-06-13 20:46:03 +00:00
mp_watchdog.c Move <machine/apicreg.h> to <x86/apicreg.h>. 2010-11-01 18:18:46 +00:00
mpboot.S Initial PG_NX support (no-execute page bit) 2004-06-08 01:02:52 +00:00
pmap.c If a superpage mapping is being removed then we need to ignore the PG_PDE_PAT 2013-07-03 23:21:25 +00:00
prof_machdep.c Use atomic load & store for TSC frequency. It may be overkill for amd64 but 2011-04-07 23:28:28 +00:00
ptrace_machdep.c The PT_I386_{GET,SET}XMMREGS and PT_{GET,SET}XSTATE operate on the 2012-07-21 13:06:37 +00:00
sigtramp.S Commit MD parts of a loosely functional AMD64 port. This is based on 2003-05-01 01:05:25 +00:00
stack_machdep.c Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
support.S Fix the name of the pcb member in the comments. 2013-04-13 15:20:33 +00:00
sys_machdep.c Add support for the extended FPU states on amd64, both for native 2012-01-21 17:45:27 +00:00
trap.c Assert that interrupts are enabled in the trap handlers on x86 before 2013-06-03 17:40:05 +00:00
uio_machdep.c Put the general logic for being a CPU hog into a new function 2011-02-02 16:35:10 +00:00
uma_machdep.c Flip the semantic of M_NOWAIT to only require the allocation to not 2012-11-14 20:01:40 +00:00
vm_machdep.c Improve readability of static assertions for OFFSET_* macros. 2013-05-13 21:47:17 +00:00