197204 Commits

Author SHA1 Message Date
wiz
7515698c17 Dd arguments should be full month names; new sentence, new line;
add serial comma; remove trailing whitespace; avoid xref to itself.
2011-01-27 09:50:00 +00:00
wiz
9422767211 Remove trailing whitespace. 2011-01-27 09:46:59 +00:00
mrg
9d38664bd2 consolidate the interrupt evcnt(9) into a full set of per-IPL per-CPU
soft/hard counters.  beyond the extra info, it seems to help avoid some
of these counters getting corrupted due to unlocked multiple accesses.

adjust the xcallintr() from xcall() hack so that we don't count these
events as interrupts.  align the existing evcnt name to count this.
2011-01-27 06:24:59 +00:00
mrg
43b17d1067 to quote a new comment:
* There's a deadlock potential between multiple CPUs trying
 * to xcall() at the same time, and the thread that loses the
 * race to get xpmsg_lock is at an IPL above the incoming IPI
 * IPL level, so it sits around waiting to take the lock while
 * the other CPU is waiting for this CPU to handle the IPI and
 * mark it as completed.
 *
 * If we fail to get the mutex, and we're at high enough IPL,
 * call xcallintr() if there is a valid msg.tag.

this seems to fix the xcall() failed to ping cpus problem.
idea from martin, tested by macallan and myself.
2011-01-27 05:31:13 +00:00
nisimura
717da00c62 remove an excess echo line accidentally creeped in. 2011-01-27 04:54:40 +00:00
nisimura
5311358b9c arrange vers.c generation to honour MKREPRO for global build control. 2011-01-27 04:32:49 +00:00
uwe
019e9658dd general_exception: when printing current mode in the panic message,
test "usermode" directly instead of testing for EXP_USER bit.
2011-01-27 01:01:55 +00:00
uwe
b4bb14b73f Include only headers that are actually used. 2011-01-27 00:19:27 +00:00
uwe
3476d7709a Clear MDP_SSTEP in setregs(). 2011-01-26 23:29:16 +00:00
uwe
9fc3efc45b Add MDP_SSTEP flag. Not used yet. 2011-01-26 23:26:37 +00:00
njoly
5488d3a23f Add section 3 for getpwuid_r xref. 2011-01-26 22:00:45 +00:00
njoly
4a85854e5e Do mask the upper 16 bits, when sanity checking fs/gs register values.
Fix my own PR/43842.
2011-01-26 21:44:31 +00:00
joerg
de8f1690b2 Fix tools build on !NetBSD. Fix printfs to use correct types. 2011-01-26 21:35:14 +00:00
jakllsch
8e0c3a90a8 Attempt to correct two regressions.
- avoid Virtualbox's BIOS panicing on 64-bit LBAs
 - MBR-without-disklabel was ignored
2011-01-26 20:59:48 +00:00
christos
4e0632c12d PR/44470: Dr. Wolfgang Stukenbrock: opencrypto kernel implementation may pass
outdated argument to worker
2011-01-26 19:52:16 +00:00
drochner
cc068f7930 fix and cleanup for tvtohz():
-assume (KASSERT) that the timeval given is normalized, and remove
 some partial fixup which I don't see what it is good for
 (I'm ready to back that out if someone tells a reason)
-catch overflows due to conversion of time_t (from tv_sec) to
 integer -- this function doesn't do 64-bit arithmetics (which makes
 sense because relative times which don't fit into 32 bits can be
 considered nonsense here), and before a huge tv_sec could lead to
 a zero hz result, violating the caller's assumptions (in particular
 trigger a diagnostic panic in abstimeout2timo())
2011-01-26 19:15:13 +00:00
uwe
9e17c3f550 Add sh4 PSL_FD - FPU disable bit. 2011-01-26 19:07:42 +00:00
christos
4ffe9a1805 make the code more re-usable 2011-01-26 18:48:57 +00:00
bouyer
1fbeaeff16 Add a driver for the RDC Semiconductor RDC R6040 10/100 Ethernet controller,
as found in the vortex86 SoCs (http://www.vortex86dx.com).
Ported from freebsd.
Not added to amd64's GENERIC because this CPU is 32bit only.

thanks to DM&P Electronics, Inc for providing documentation and sample
devices for this work.
2011-01-26 18:48:51 +00:00
christos
9a37731036 make SSP friendly 2011-01-26 18:48:32 +00:00
bouyer
4ca29e6bc3 Add a driver for the RDC Semiconductor RDC R6040 10/100 Ethernet controller,
as found in the vortex86 SoCs (http://www.vortex86dx.com).
Ported from freebsd.
Not added to amd64's GENERIC because this CPU is 32bit only.

thanks to DM&P Electronics, Inc for providing documentation and sample
devices for this work.
2011-01-26 18:48:11 +00:00
uwe
0b43ff8c5f BRCR and BAMRA have different format in sh3 and sh4, so there's no
point in using SH_() wrapper to refer to them in code that is already
model-specific.
2011-01-26 18:43:30 +00:00
bouyer
948baca81d Regen: Add RDC Semiconductor R6040 10/100 integrated PHY 2011-01-26 18:39:25 +00:00
bouyer
a24cf481d2 Add RDC Semiconductor R6040 10/100 integrated PHY 2011-01-26 18:39:04 +00:00
bouyer
24529c48cd Regen: Add RDC Semiconductor R6040 10/100 Ethernet 2011-01-26 18:37:52 +00:00
bouyer
f8bfb5a7e1 Add RDC Semiconductor R6040 10/100 Ethernet 2011-01-26 18:37:06 +00:00
christos
74a83d351e Moving the ssp check inside the source code does not work properly because
the compiler loses information about the size of the object. So instead of
the hacky #define mess we did before, add a way to inject our function between
the user call and the system call.
2011-01-26 18:11:35 +00:00
christos
e6a9e964d2 provide a way to override the weak name. 2011-01-26 18:08:00 +00:00
christos
93fcf9c9a9 fix readlink prototype. 2011-01-26 18:07:44 +00:00
pooka
feb7052396 add entries required by sandpoint 2011-01-26 16:53:17 +00:00
uebayasi
346fff22c8 Fix build of malta/sbmips. 2011-01-26 16:31:00 +00:00
pooka
84a1daa21a add sandpoint dirs for man chapter 4, they seem to be required now 2011-01-26 15:00:56 +00:00
pooka
e6450adeb5 plug fd leak in reconnect code 2011-01-26 14:42:41 +00:00
nisimura
9f531b55b7 one more twist to complete newvers_stand.sh transition. Include timestamp
in banner.
2011-01-26 13:36:49 +00:00
tsutsui
08814574b2 Add proper prefix to structures. 2011-01-26 13:14:07 +00:00
phx
4ce3172075 bootprog_maker and bootprog_date are missing since we switched to the
MI newvers_stand.sh script. Remove the refering information line.
2011-01-26 13:13:25 +00:00
nisimura
d49f13dd72 add sandpoint satmgr device node entry. 2011-01-26 11:29:04 +00:00
nisimura
2b86ddb239 introduce sandpoint satmgr(4) and altboot(8) man page entries. 2011-01-26 11:25:51 +00:00
pooka
380d30c783 make this build on non-emips again 2011-01-26 10:58:19 +00:00
wiz
ba222fd491 Fix typo in Nd. From Ryo HAYASAKA in PR 44462. 2011-01-26 09:56:51 +00:00
wiz
17d601176d Fix typo. 2011-01-26 09:53:20 +00:00
enami
40713a94c3 Introducing inner loop prevent us from exiting from the original loop. 2011-01-26 08:49:48 +00:00
pooka
5f7e80a834 Add support for the Extensible MIPS ("eMIPS") platform. The
NetBSD/emips port runs on Xilinx and Beecube FPGA systems and the
Giano system simulator.

eMIPS is a platform developed at Microsoft Research for researching
reconfigurable computing.  eMIPS allows dynamic loading and scheduling
of application-specific circuits for the purpose of accelerating
computations based on the current workload.

NetBSD eMIPS support for NetBSD 4.x was written at Microsoft Research
by Alessandro Forin and Neil Pittman.  Microsoft Corporation has
donated full copyright to The NetBSD Foundation.

Platform support for eMIPS is the first part of Microsoft's
contribution.  The second part includes the hardware accelerator
framework and will be proposed on tech-kern soon.
2011-01-26 01:18:43 +00:00
matt
ecfd85d839 Fix KDASSERTMSG defintions for !DEBUG 2011-01-26 01:02:46 +00:00
dyoung
c2126ca4c3 Update comment on RTM_CHGADDR to describe better what it's for. 2011-01-26 00:58:36 +00:00
dyoung
7617f65929 Add some 10-gigabit media words used by Intel 82599. 2011-01-26 00:57:47 +00:00
dyoung
3f178d7fdb Protect against a NULL pointer dereference that I've seen in the wild. 2011-01-26 00:55:42 +00:00
dyoung
703c7df20f unifdef -U__bsdi__ -U__FreeBSD__ -D__NetBSD__. No functional change
intended.
2011-01-26 00:54:35 +00:00
dyoung
c168b21fd4 Define masks for subsystem vendor and subsystem ID fields, plus a couple
of macros for extracting them.
2011-01-26 00:49:56 +00:00
pooka
d13f306052 Add bwi from PR kern/40279. There is no know case of testing the
driver on amd64/i386, but if it doesn't work at least we're more
likely to get a PR instead of people wondering about lacking driver
support.
2011-01-26 00:25:55 +00:00