Commit Graph

108880 Commits

Author SHA1 Message Date
jruoho
6315c7d63e Add __cpu_simple_lock_t. Use it, x86_read_psl(), and x86_disable_intr() to
disable interrupts locally and protect the access to APERF and MPERF. Also
rationalize the MD initialization sequence.
2011-03-05 09:47:19 +00:00
jruoho
b3a05fed5a If the P-state control mask is set, do a proper read-modify-write. 2011-03-05 06:39:55 +00:00
jruoho
78d39fa3b6 KNF. 2011-03-05 06:28:29 +00:00
joerg
8871ccf0f3 Fix spelling of MKZFS 2011-03-05 03:15:25 +00:00
joerg
d9f40f2741 Use deflate.sh from the right directory. Execute with HOST_SH. 2011-03-05 01:58:01 +00:00
matt
78c213b247 Simplify copyin_psstrings a bit. 2011-03-05 01:52:18 +00:00
joerg
48717cfc00 Refactor ps_strings access. Based on PK_32, write either the normal
version or the 32bit compat layout in execve1. Introduce a new function
copyin_psstrings for reading it back from userland and converting it to
the native layout. Refactor procfs to share most of the code with the
kern.proc_args sysctl handler.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.
2011-03-04 22:25:24 +00:00
oster
01b117db0c Remove bogus RF_ASSERT that must have crept in by accident.
Thanks to Jan-Hinrich Fessel for reporting the issue.
2011-03-04 17:45:17 +00:00
christos
7fcafe3a34 Revert max stack size change. This is not used anymore for 32 bit binaries. 2011-03-04 13:24:19 +00:00
jruoho
4e1517c4e6 Rename a badly named constant. Make it correspond with <x86/specialreg.h>. 2011-03-04 12:10:49 +00:00
jruoho
a9a815071b Only attach on the first SMT ID (as in revision 1.16). 2011-03-04 11:56:27 +00:00
jruoho
d87d6f14e7 Remove redundant/wrong increment of a variable. 2011-03-04 09:28:34 +00:00
jruoho
120b4f01cf Add module build glue for odcm(4). 2011-03-04 05:02:47 +00:00
jruoho
70fcc95611 Raise the return value of the match-function of est(4) and powernow(4).
The assigned priorities are now: 10 for acpicpu(4), 5 for est(4) and
powernow(4), and 1 for odcm(4). These are used to pick the preferred driver.
2011-03-04 04:53:28 +00:00
jruoho
839fb5fa76 Move INTEL_ONDEMAND_CLOCKMOD -- or odcm(4) -- to the cpufeaturebus. 2011-03-04 04:48:39 +00:00
christos
72233ad7fa PR/44673: Arna Clauson: Latest MAXSSIZ bump broke netbsd32 emulation on amd64.
- Use MAXSSIZ32 instead of MAXSSIZ for 32 bit binaries
- Default MAXXSIZ32 to a quarter of MAXSSIZ (good enough?)
- Add debugging
XXX: Note that:
	- sparc32 MAXSSIZ is larger than sparc64 MAXSSIZ
	- sparc64 MAXSSIZ32 != sparc32 MAXSSIZ
2011-03-04 04:25:58 +00:00
christos
1428cd07df better debugging messages. 2011-03-04 04:17:12 +00:00
joerg
22701ee034 Reduce MAXSSIZ to 64MB, otherwise netbsd32 binaries crash in ld.elf_so,
including the trivial main(){}. Add a warning to not modify this without
testing compatibility mode.
2011-03-04 03:34:24 +00:00
christos
af8f930405 PR/44674: Taylor R Campbell: Fix compat copyin and copyout routines which
were obviously broken.
2011-03-04 01:36:56 +00:00
martin
ccc5092ed2 Do not restrict the siginfo a process sends to itself in any way, but
keep restrictions for foreign processes. This is needed to allow raising
of full SIGFPE siginfo from softfloat libraries for example.
2011-03-03 20:46:16 +00:00
jruoho
80dcd7f76f Add DMI quirk support via pmf_get_platform(9). If any of the listed models
are matched, the whole driver will be prevented from attaching. The first
entry is Supermicro PDSMi-LN4+ (a BIOS bug with bogus P-state entries).
2011-03-03 19:24:43 +00:00
matt
d4bc3823a0 Change MIPS_CP0FL_CONFIG*
Add MIPS_CP0FL_HWRENA and USERLOCAL
2011-03-03 18:44:58 +00:00
skrll
1ec0684c4b Deal with cr27 in process_{read,write}_regs 2011-03-03 09:37:21 +00:00
pooka
cd8c039974 In rename, use char[12] for new names instead of [11]. At least
one routine called from here (unix2dosfn) expects and uses all of
a [12].

This may fix the "stack size exceeded" problem which has been
triggering in gson's test runs.  (i'm not entirely sure why it
doesn't trigger in anyone else's env)
2011-03-03 08:10:45 +00:00
kiyohara
1caa7e3dc2 Add support boot. only support SH4 machine(mmEye-WLF and others) now. 2011-03-03 05:59:37 +00:00
christos
b1b063f09f check rawvp before doing ioctl or strategy. 2011-03-03 03:39:08 +00:00
matt
5469ac9d1c When probing the PCI bars, make sure to only probe BARS (PPBs and PCB has
fewer bars than type 0 devices).
2011-03-02 21:57:40 +00:00
tsutsui
a8c2005e67 Make this compile with PMAP_POOLPAGE_DEBUG.
XXX: not sure if this is ever used
2011-03-02 13:26:41 +00:00
pooka
67365afb80 We track page modified info with PG_CLEAN, so make clear_modify
return false.  This makes rump lfs unmount work on platforms which
use the pmap stub (i.e. non-x86, which already returned false here).
Otherwise, lfs would hang itself trying to flush some buffers but
couldn't fill a segment and therefore wouldn't actually write
anything.
2011-03-02 13:11:52 +00:00
tsutsui
5106307ad8 Fix misplaced #endif. PR port-arc/44664
XXX: I'll also remove ENABLE_INT5_STATCLOCK soon since no visible improvements.
2011-03-02 10:51:04 +00:00
ahoka
17bee7a3e6 Resolve build failures caused by local use of "device flash" in config. 2011-03-02 08:25:08 +00:00
jruoho
3c37c8c0bc Adjust the detection of Turbo Boost to prevent a theoretical array OOB access. 2011-03-02 06:23:17 +00:00
jruoho
5bfb3ade6b Append Intel's Turbo Boost to the debug printfs if we detect it. 2011-03-02 06:17:08 +00:00
riz
213d0d6de1 Always return at least one parity region. Fixes PR#44239.
Fix from oster@, code (such as it is) by me.
2011-03-01 22:51:14 +00:00
macallan
5bf2d32443 use hardware to draw characters, while there use vcons_replay_msgbuf() 2011-03-01 21:47:13 +00:00
joerg
20a3edc3f6 Ensure that the LWP private area has a consistent value after exec. 2011-03-01 18:53:10 +00:00
pooka
da0742f9b8 Reset node's parent pointer when it's removed. Technically the
parent still exists, but allows us to avoid complicated g/c algorithms
if the parent *is* removed.
2011-03-01 15:14:35 +00:00
jruoho
5b407ea29a Detach evcnt(9) before the states. 2011-03-01 13:38:45 +00:00
pooka
405dec72d6 Pass accurate protection info from ubc_uiomove() to the pager.
Fixes nfs{,ro}_fileio tests on at least sparc64 (and probably macppc
and other fat endian machines).

The problem was that nfs was fooled to thinking read() caused a
write fault because of VM_PROT_WRITE being unconditionally set and
therefore set NMODIFIED on a r/o file system.  It is absolutely
beyond me why the test worked on i386/amd64.  Incidentally, I seem
to have "misplaced" a few goats.
2011-03-01 10:02:11 +00:00
phx
1b9ef66f08 Revert the major number for satmgr(4) back to 100 and allocate it from
majors.powerpc, as suggested by matt@.
2011-03-01 09:17:06 +00:00
jruoho
e98440f29b Move also the evcnt(9) event counters to one place. No functional change. 2011-03-01 05:57:04 +00:00
jruoho
2562de9c62 Use __arraycount(3). 2011-03-01 05:37:02 +00:00
jruoho
b9f7a5accd Simplify by moving the debug printfs to one place. No functional change. 2011-03-01 05:32:03 +00:00
jruoho
83e392c16f Remove the cross-call from the APERF/MPERF -function. 2011-03-01 05:02:16 +00:00
jruoho
c9111546fe Move the xcall(9) that does the P- and T-state transformations from the MD
layer to the main code. Makes the caches coherent and provides consistent
vmstat(1) output. This is still not quite right, given that most of the
cross-calls are typically unnecessary with the dependency coordination.
2011-03-01 04:35:48 +00:00
skrll
01a744c41e Add the trapframe pointer to the syscall information. 2011-02-28 21:24:25 +00:00
skrll
3c6d72d744 __HAVE___LWP_GETPRIVATE_FAST works now. 2011-02-28 21:23:33 +00:00
skrll
641cef61dc Don't use %tr3 (aka cr27) in emu trap. cr27 is now used for lwp private
info.
2011-02-28 21:22:35 +00:00
skrll
0dad921873 Remove old/incorrect comment. 2011-02-28 21:20:50 +00:00
christos
0437d56b01 Make error checking consistent, possibly fixes PR/44652. 2011-02-28 18:28:20 +00:00