freebsd-nq/sys/ia64/include
Marcel Moolenaar b4b7c60d70 Better preserve the original protection for the mappings we maintain.
The hardware always gives read access for privilege level 0, which
means that we cannot use the hardware access rights and privilege
level in the PTE to test whether there's a change in protection.  So,
we save the original vm_prot_t in the PTE as well.
Add pmap_pte_prot() to set the proper access rights and privilege
level on the PTE given a pmap and the requested protection.

The above allows us to compare the protection in pmap_extract_and_hold()
which was missing. While in pmap_extract_and_hold(), add pmap locking.

While here, clean up most (i.e. all but one) PTE macros we inherited
from alpha. They were either unused, used inconsistently, badly named
or simply weren't beneficial. We save the wired and managed state of
the PTE in distinct (bit) fields.

While in pte.h, s/u_int64_t/uint64_t/g

pmap locking obtained from: alc@
feedback & review by: alc@
2004-08-09 20:44:41 +00:00
..
pc Remove headers copied from i386 and either useless or wrong on ia64. 2003-11-02 09:19:07 +00:00
_inttypes.h
_limits.h Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
_regset.h Remove __aligned(16) from the definition of struct _ia64_fpreg. It's 2003-07-25 08:02:24 +00:00
_stdint.h <stdint.h> should define WINT_M{AX,IN} independent from whether WCHAR_MIN is 2004-05-18 16:04:57 +00:00
_types.h Introduce the cpumask_t type. The purpose of the type is to create a 2004-03-20 20:41:40 +00:00
acpica_machdep.h Add an MI implementation of the ACPI global lock routines and retire the 2004-05-05 20:04:14 +00:00
asm.h Revamp of the syscall path, exception and context handling. The 2003-05-16 21:26:42 +00:00
atomic.h
bootinfo.h Use one of the bi_spare entries for the DIG64 HCDP table address. 2002-12-08 20:32:56 +00:00
bus_memio.h
bus_pio.h
bus.h Document the lockfunc and lockfuncarg arguments to bus_dma_tag_create() in 2003-11-07 23:29:42 +00:00
clock.h Cleanup the clock code. This includes: 2003-08-04 05:13:18 +00:00
clockvar.h
cpu.h Instead of calling ia32_pause() conditionally on __i386__ or __amd64__ 2004-08-03 18:44:27 +00:00
cpufunc.h Fix -O builds with gcc 3.4 by defining ffs as __builtin_ffs instead of 2004-07-30 07:56:53 +00:00
critical.h Pass a thread argument into cpu_critical_{enter,exit}() rather than 2004-07-27 16:41:01 +00:00
db_machdep.h Mega update for the KDB framework: turn DDB into a KDB backend. 2004-07-10 23:47:20 +00:00
dig64.h More MFp4: DIG64 structures. 2002-12-18 18:52:20 +00:00
efi.h
elf.h Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit 2003-09-25 01:10:26 +00:00
endian.h Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
exec.h
float.h Make FLT_ROUNDS correctly reflect the dynamic rounding mode. 2004-07-19 08:17:25 +00:00
floatingpoint.h
fpu.h
frame.h Revamp of the syscall path, exception and context handling. The 2003-05-16 21:26:42 +00:00
gdb_machdep.h De-inline gdb_cpu_signal() because we need to convert the trap vectors 2004-08-07 21:40:52 +00:00
ia64_cpu.h Add an instruction group break after the move to application register 2003-08-15 05:46:33 +00:00
ieee.h Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
ieeefp.h Cleanup and style(9) fixes. No functional change. 2003-08-11 21:25:19 +00:00
in_cksum.h Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
intr.h Don't hardcode the address of the local (S)APIC (aka processor 2003-01-05 22:14:30 +00:00
intrcnt.h Bump the number of interrupts from 65 to 257. This is a waste of 2003-01-05 22:00:19 +00:00
kdb.h Introduce the KDB debugger frontend. The frontend provides a framework 2004-07-10 18:40:12 +00:00
limits.h Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
mca.h
md_var.h Update for the KDB framework: 2004-07-10 22:59:30 +00:00
memdev.h Remove extraneous ';'. 2004-08-01 18:51:44 +00:00
mutex.h
nexusvar.h
pal.h
param.h Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
pcb.h Implement makectx(). The makectx() function is used by KDB to create 2004-07-10 19:56:00 +00:00
pci_cfgreg.h
pcpu.h Fixed a pedantic syntax error (a stray semicolon at the end of 2003-11-17 03:40:41 +00:00
pmap.h Add partial pmap locking. 2004-07-19 05:39:49 +00:00
proc.h Cleanup. Remove the md_flags for threads. It's not used. The flags 2003-10-23 06:41:59 +00:00
profile.h Moved most of the "MI" definitions and declarations from <machine/profile.h> 2004-05-19 15:41:26 +00:00
pte.h Better preserve the original protection for the mappings we maintain. 2004-08-09 20:44:41 +00:00
ptrace.h Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
reg.h Replace uint64_t with unsigned long in struct dbreg. 2004-03-20 05:27:14 +00:00
reloc.h
resource.h
runq.h Fix last second typo. 2003-12-10 22:59:03 +00:00
sal.h Remove special casing for running in the simulator from the kernel 2003-02-01 22:50:09 +00:00
sapicreg.h
sapicvar.h Rewrite the SAPIC initialization to always program the RTEs with what 2003-09-10 22:49:38 +00:00
setjmp.h Avoid using __aligned(16). Instead define the jmp_buf in terms of 2003-07-26 08:03:43 +00:00
sf_buf.h MFamd64 2004-04-18 07:11:12 +00:00
sigframe.h Split 4.x and 5.x signal handling so that we can keep 4.x signal 2002-10-25 19:10:58 +00:00
signal.h Revamp of the syscall path, exception and context handling. The 2003-05-16 21:26:42 +00:00
smp.h Revamp of the syscall path, exception and context handling. The 2003-05-16 21:26:42 +00:00
stdarg.h o Add conditionals to allow va_list to be defined in other headers. 2002-10-06 22:01:07 +00:00
sysarch.h Provide sysarch(2) prototypes in the MD sysarch.h headers. While I'm 2004-01-09 16:52:09 +00:00
ucontext.h Simplify the contexts created by the kernel and remove the related 2003-12-07 20:47:33 +00:00
unwind.h Update for the KDB framework: 2004-07-10 22:59:30 +00:00
varargs.h Drop any and all support for varargs. There's no history to worry 2003-09-28 05:34:07 +00:00
vmparam.h Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00