Commit Graph

200614 Commits

Author SHA1 Message Date
matt
ccb56f14ea A little more constification 2011-05-02 01:43:37 +00:00
mrg
05ec7078b4 use a unique wchan identifier for node_queue_cv than the old default. 2011-05-02 01:14:06 +00:00
mrg
70f1be105d re-apply the reverted previous, after fixing the missed wakeup:
convert eq_mutex to a kmutex/cv.
convert ltsleep() used for plain timeout into kpause().
2011-05-02 01:07:24 +00:00
mrg
a0ccbf8109 rever the previous for now; it hangs reconstruction. 2011-05-02 00:39:37 +00:00
rmind
38d699a20d Extend PCU:
- Add pcu_ops_t::pcu_state_release() operation for PCU_RELEASE case.
- Add pcu_switchpoint() to perform release operation on context switch.
- Sprinkle const, misc.  Also, sync MIPS with changes.

Per discussions with matt@.
2011-05-02 00:29:53 +00:00
matt
85aa586742 Add an IPI for xcalls. 2011-05-02 00:17:35 +00:00
jym
23cf76057e - Rather use pmap_pte_set() when modifying a PTE.
- Call pmap_pte_flush() when issuing PTE modifications. While it is a NOOP
for native x86, it is not for Xen. It will flush all operations that are
possibly waiting in the queue, like xpq_queue_pte_update(). Do it for
each level, this function is only called at boot time and is not
performance critical.

While here:
- No need to cast early_zerop to void with memset().
- Move common variables out of the #ifdef's.
- KNF
2011-05-01 18:52:29 +00:00
jruoho
576aaaa585 Test also ttyname_r(3). 2011-05-01 18:14:01 +00:00
jruoho
5e6ff08c20 Verify PR standards/44921. 2011-05-01 17:07:05 +00:00
jruoho
2446e1b8a7 Naive tests for clearerr(3).
Converted from the "PCCA" test suite by Stathis Kamperis.
2011-05-01 16:36:37 +00:00
tsutsui
cc81f439dd Reset ZS chip properly in zscninit() so that zscngetc() works
even before zsc is attached during configure.
(i.e. make userconf(4) work on serial console)
2011-05-01 16:19:13 +00:00
ahoka
d17d98adaf fix some bugs and simplify locking
from rmind
2011-05-01 14:48:11 +00:00
rmind
9cc6428e00 Remove trailing tabs, add RCS IDs. 2011-05-01 13:20:28 +00:00
jruoho
700486254a Add the new 'termios' subdirectory. 2011-05-01 11:44:41 +00:00
jruoho
741dca333d Add a test for PR lib/41673 (another trivial errno "bug"). 2011-05-01 11:39:37 +00:00
mrg
393bf63659 convert eq_mutex to a kmutex.
convert ltsleep() used for plain timeout into kpause().
2011-05-01 10:01:01 +00:00
jruoho
2b2b951b5e Improve further so that this might actually fail. 2011-05-01 09:44:26 +00:00
jruoho
f74cfbd2d7 Actually, as this is nanosleep(2), test 1-10 nano second sleep times. 2011-05-01 09:19:12 +00:00
jruoho
77fa459178 Simplify the previous. (Apparently the sleep time is not that accurate.) 2011-05-01 09:15:14 +00:00
jruoho
23c04498b7 Few basic tests for nanosleep(2). 2011-05-01 09:09:35 +00:00
jruoho
cbbc4a7b84 Two elementary tests for gettimeofday(2). 2011-05-01 07:22:40 +00:00
mrg
44be382b63 convert rf_debug_mem_mutex to a kmutex, and fix RF_DEBUG_MEM option. 2011-05-01 06:49:43 +00:00
jruoho
e426bc4f89 PR lib/42587 was fixed; remove xfail. 2011-05-01 06:42:29 +00:00
mrg
14b1a44c1b convert rf_tracing_mutex to a kmutex. 2011-05-01 06:22:54 +00:00
mrg
480f8c7b98 convert the (unused) rf_sparet_wait_mutex to a real mutex/cv. 2011-05-01 05:44:47 +00:00
christos
89d0622f3e Start eliminating "super-user" from the documentation. 2011-05-01 02:54:22 +00:00
pgoyette
18fecdaed4 More lim_free() fallout 2011-05-01 02:52:42 +00:00
christos
0a101028d4 nice should always return EPERM, not EACCES 2011-05-01 02:49:54 +00:00
christos
74ccadd18b if donice fails, don't keep going with the next process. 2011-05-01 02:46:19 +00:00
rmind
8d15642306 Catch up with lim_privatise() change (missed in previous commit). 2011-05-01 02:08:15 +00:00
rmind
a38faca994 - Remove FORK_SHARELIMIT and PL_SHAREMOD, simplify lim_privatise().
- Use kmem(9) for struct plimit::pl_corename.
2011-05-01 01:15:18 +00:00
mrg
14a4134463 convert mcpair to kmutex. 2011-05-01 01:09:05 +00:00
rmind
38964b45cb Merge duplicate code fragments into a new lim_setcorename() routine. 2011-05-01 00:22:36 +00:00
rmind
d636db9233 Rename limfree() to lim_free(), misc clean up. No functional change. 2011-05-01 00:11:52 +00:00
rmind
b9ca5bc92d sysctl_proc_corename: improve comments, clean up, move a check for
KAUTH_REQ_PROCESS_CORENAME_SET earlier, do not bother to strcmp().
2011-04-30 23:41:17 +00:00
martin
251de2dee0 Save a few global registers during set/longjmp - at least the application
registers and the only currently used system register (%g7).
Sparc now passes the setjmp tests (and should be able to build perl again).
2011-04-30 23:41:12 +00:00
martin
9881f8de04 Fix previous: the way we calculate, we need to test the size of sigjmp_buf 2011-04-30 23:39:08 +00:00
martin
c670087695 Add another compile time assert: catch overflows of jmp_buf 2011-04-30 23:30:27 +00:00
martin
b549c67469 Save/restore some global registers (sigsetjmp compatible). Does not realy
make a difference currently, but is a hard to spot blackhole if something
ever starts using the application registers.
2011-04-30 19:43:17 +00:00
martin
44283e6e19 Rearange jmp_buf content again: storing the sigsetjmp() save_mask midway
inside the environment is not a good idea, we may overwrite it when
fetching other details of the sigjmp environment.
Instead move it to the very end again.
Do not bother to save volatile (caller saved) global registers.
Fixes PR port-sparc64/44918.
2011-04-30 19:39:38 +00:00
jym
8e2b504dac Small typo fix. 2011-04-30 19:34:10 +00:00
plunky
676a6668e7 correct comment 2011-04-30 19:21:09 +00:00
christos
6604c82010 add a define for pcb_sp 2011-04-30 16:58:35 +00:00
christos
acc16d96d1 Share the amd64 and i386 files.
XXX: Is there a better way to get the cpu family?
2011-04-30 16:57:58 +00:00
hannken
316e4e1a25 ufs_mknod: change vnode type to VNON before it gets unlocked. Closes a small
window where the vnode could have type VCHR but op vector ffs_vnodeop_p.
2011-04-30 14:24:27 +00:00
alnsn
df45d61f55 Save/restore errno in error path in dupgood. Check that n>0 before
accessing banner[n-1].

Approved a while ago by pooka@
2011-04-30 12:25:05 +00:00
alnsn
d4a5682920 Add new files. 2011-04-30 11:24:14 +00:00
phx
7a9e3e0e9f Add Iomega Storcenter dsrtc device (DS1337). 2011-04-30 11:14:04 +00:00
phx
a5da0088ea Detect QNAP board last, because a Realtek chip at pci device 15 is used
on several boards.
2011-04-30 11:12:58 +00:00
jruoho
4f729153dd Few fundamental consistency checks for kill(2). 2011-04-30 06:20:37 +00:00