Commit Graph

114772 Commits

Author SHA1 Message Date
jym
07829955b6 Add latest CR4 bits:
- CR4_VMXE: VMX operations, used for hardware virtualization.
- CR4_SMXE: SMX operations, used for safer Mode Extensions (ground for
            Intel's TXT - Trusted Execution Technology - platform).
- CR4_FSGSBASE: enable *FSBASE and *GSBASE instructions, for R/W access
                to FS/GS segment base addresses.
- CR4_PCIDE: enable Process Context IDentifiers (other architectures may call
             these "address space identifiers").
- CR4_OSXSAVE: enable xsave and xrestore instructions
- CR4_SMEP: Supervisor Mode Execution Prevention. Allows enforcing --x rights
            from cpl 0.

From Intel® 64 and IA-32 Architectures Software Developer’s Manual,
March 2012.

Align declarations.

CPUID_* bits for these features follow.
2012-05-05 15:08:29 +00:00
macallan
648feb69e9 make sure opt_sunkbd.h exists 2012-05-05 13:47:07 +00:00
yamt
9b10dd1106 comments and cosmetics. no functional changes. 2012-05-05 04:08:53 +00:00
christos
4af0aec9a5 comment out debugging printfs 2012-05-04 17:57:22 +00:00
christos
b01ba4dca4 depend on "vcoda" since it has symbols we need. 2012-05-04 02:06:27 +00:00
christos
b6690e266f fix locking in getpages when running executables. 2012-05-04 01:40:13 +00:00
christos
89fb5ce609 remove variable names from prototypes. 2012-05-04 01:38:56 +00:00
bsh
5a5aba4464 use uint64_t for sc_disksize512.
fixed the problem with ataraid volumes larger than 2 TiB.
2012-05-03 21:21:08 +00:00
christos
b43ddeabe0 move the assert after the locked case. 2012-05-03 14:26:42 +00:00
rmind
b10bf4690c Revert posix_spawn() clean up for now, there are some bugs. 2012-05-02 23:33:11 +00:00
rmind
d9290bb010 do_open: move pathbuf destruction to the callers, thus simplify and fix a
memory leak on error path.
2012-05-02 20:48:29 +00:00
christos
e4d18b9bd2 Instead of sharing the coda vnode lock with the ffs vnode lock, share the
ffs vnode lock with coda.
2012-05-02 16:51:01 +00:00
christos
7d659a9119 make this compile again. 2012-05-02 14:54:26 +00:00
macallan
1da85cff6f remove some commented out / unused junk 2012-05-02 00:55:26 +00:00
martin
fe585d0294 Explicitly include <sys/kmem.h> 2012-05-01 15:09:36 +00:00
martin
1519b75992 On unaligned access, provide the data address to the signal handler, instead
of the faulting instructions address.
2012-05-01 09:40:15 +00:00
manu
7f8940a8ce Return ENODATA when no attribute is found, like Linux does. After
all we decided to adopt the Linux API, therefore there is rationale
to stick to it.

No standard tells us what to do, and our extended attribute API has not
been used in a release, therefore we do not break anything, and we get
more easily compatible with programs using the Linux extended attribute
API.

Note that FreeBSD and MacOS X return ENOATTR. FreeBSD has its own API
and MacOS X has a Linux-like API. How did the world get so complicated?
2012-05-01 07:48:25 +00:00
macallan
c4ff263d05 add license header 2012-05-01 07:46:47 +00:00
rmind
f1d428af19 - Replace some malloc(9) uses with kmem(9).
- G/C M_IPMOPTS, M_IPMADDR and M_BWMETER.
2012-04-30 22:51:27 +00:00
rmind
0c217aec3a posix_spawn:
- Remove copy-pasting in error paths, use execve_free_{vmspace,data}().
- Move some code (both in the init and exit paths) out of the locks.
- Slightly simplify do_posix_spawn() callers.
- Add few asserts and comments.
2012-04-30 21:19:58 +00:00
pgoyette
a61ffc9868 Fix a (obvious) typo 2012-04-30 20:41:33 +00:00
christos
748ee23b9d kern/46391: Nat Sloss: ums.c doesn't support digitizers or touchscreens 2012-04-30 17:27:50 +00:00
manu
8658637414 Fix the extattr start fix. Looking up the filesystemroot vnode again
does not seems to be reliable. Instead save it before mount_domount()
sets it to NULL.
2012-04-30 10:05:12 +00:00
manu
74a73d8b5c Fix mount -o extattr : previous patch fixed a panic but caused operation
to happen on the mount point instead of the mounted filesystem.
2012-04-30 03:51:10 +00:00
mrg
1ed31fd325 ensure that the intr lock is held for all audio_clear() callers. 2012-04-30 02:16:46 +00:00
christos
75e68013dd PR/41267: Andrius V: 5.0 RC4 does not detect second CPU in VIA. VIA Eden cpuid
lies about it's ability to do cmpxchg8b. Turn the feature on using the FCR MSR.
Needs pullup to both 5 and 6.
2012-04-30 00:08:03 +00:00
christos
50ec6de2fb Add VIA Eden FCR MSR. 2012-04-30 00:04:31 +00:00
chs
67b37d586b mark all wapbl I/O as BPRIO_TIMECRITICAL.
this is the second part of addressing PR 46325.
2012-04-29 22:55:11 +00:00
chs
8306a9eddf change vflushbuf() to take the full FSYNC_* flags.
translate FSYNC_LAZY into PGO_LAZY for VOP_PUTPAGES() so that
genfs_do_io() can set the appropriate io priority for the I/O.
this is the first part of addressing PR 46325.
2012-04-29 22:53:59 +00:00
christos
66d7693e75 tidy up... 2012-04-29 21:54:51 +00:00
dsl
ef15904712 Patch out the 'struct malloc_type' from the isa_dma alloc routines.
All the i386 kernels now build
2012-04-29 21:13:56 +00:00
dsl
e05eb71de5 Remove everything to do with 'struct malloc_type' and the malloc link_set.
To make code in 'external' (etc) still compile, MALLOC_DECLARE() still
  has to generate something of type 'struct malloc_type *', with
  normal optimisation gcc generates a compile-time 0.
MALLOC_DEFINE() and friends have no effect.
Fix one or two places where the code would no longer compile.
2012-04-29 20:27:31 +00:00
dsl
fc04895e7b Change to consistently use M_FW for all malloc/free.
It probably doesn't matter any more, but the code doesn't appear to
have matched its mallocs and frees - so the stats would have been awol.
2012-04-29 18:31:40 +00:00
dsl
dbd0815551 Remove the unused 'struct malloc_type' args to kern_malloc/realloc/free
The M_xxx arg is left on the calls to malloc() and free(),
  maybe they could be converted to an enumeration and just saved in
  the malloc header (for deep diag use).
Remove the malloc_type from mbuf extension.
Fixes rump build as well.
Welcome to 6.99.6
2012-04-29 16:36:53 +00:00
phx
e1294fc1b4 Add driver for ATAPI disk drives. 2012-04-29 15:59:32 +00:00
rmind
e206fc57e3 Fix RUMP build. 2012-04-29 14:00:15 +00:00
tsutsui
a88b57b624 xcom on x68k is gone. 2012-04-29 07:51:47 +00:00
tsutsui
231b9114f6 Finally switch PSX16550 fast serial board driver to using MI com(4) driver.
Based on isaki@'s patch and debugged by both isaki@ and tsutsui@.

PSX16550 specific hardware infomation is taken from Human68k's PSXIO driver:
http://retropc.net/x68000/software/hardware/psx16550/

XXX1: TL16C550C seems to have some timing critical issue around THRE interrupt
XXX2: auto hardware flow control of TL16C550 is not implemented in MI com(4)
2012-04-29 07:17:11 +00:00
rmind
911cbc2790 G/C kern_malloc_stdtype.c 2012-04-29 02:29:41 +00:00
rmind
4b760398c3 Remove MALLOC_DEBUG and MALLOCLOG, which is dead code after malloc(9) move
to kmem(9).  Note: kmem(9) has debugging facilities under DEBUG/DIAGNOSTIC.
However, expensive kmguard and debug_freecheck have to be enabled manually.
2012-04-28 23:03:39 +00:00
christos
bc2122f164 cosmetic only: __func__, vnode_t 2012-04-28 20:15:07 +00:00
christos
ee12655fb3 Fixes from get/putpages from rmind.
In grab vnode, share the lock of the coda vnode with the underlying vnode,
so that the locking protocol works.
2012-04-28 20:01:09 +00:00
stacktic
645f62c493 Fixed build with locks_up.c 2012-04-28 18:04:02 +00:00
manu
57f4d08bde Do not use vp after mount_domount() call as it sets it to NULL on success.
This fixes a panic when starting extended attributes.
2012-04-28 17:30:19 +00:00
wiz
0d8b40f040 Fix logical errors (&& instead of & in a few places). 2012-04-28 17:27:08 +00:00
drochner
d4145bf15d minor mostly cosmetical fixes: use designated type for device major
numbers, typo in comment, misuse of minor()
(the latter one is not cosmetical, but would only affect systems
with more than 256 disk wedges)
2012-04-27 18:15:55 +00:00
drochner
937cb76bdb fix access permission check which got broken by some kauth rework
in March, affected mostly systems with NFS root fs
2012-04-27 18:12:01 +00:00
martin
7d5d727b0f Make it compilable without envsys 2012-04-27 09:30:13 +00:00
jruoho
06ade55260 Remove the upper limit for the number of T-states. 2012-04-27 04:38:24 +00:00
jruoho
92fc4fb961 Revert previous. Revision 1.79 was right; Qemu does not implement _PIC. 2012-04-27 04:32:27 +00:00