Commit Graph

162849 Commits

Author SHA1 Message Date
skrll
f1273d89a6 Set up the tail of the instruction address queue so that
we don't have to rely on luck for swapcontext(3) to work.

This fixes a problem pointed out to me by Chuck Silvers.
2007-10-28 09:38:06 +00:00
jnemeth
62ce053780 no such user as _authpf, just a group 2007-10-28 09:36:01 +00:00
jnemeth
2fa555aeb3 group rwhod -> _rwhod and add user _rwhod 2007-10-28 09:31:15 +00:00
nisimura
ae8068f5f7 still remain crude, work in progress. 2007-10-28 03:15:04 +00:00
dsl
b279dc62eb Instead of having 2 copies of the sycall entry code, reprocess the file
to generate syscall_plain() with #defines to remove the trace calls.
Join the club of making micro-optimisations to this code to speed up
benchmarks of empty system calls (eg getpid()):
- Use __predict_false() to get fewer branches in the 'normal' path.
- Just copy all the arguments from the stack frame to 'args', since the
  jump indirect for the switch statement is basically unpredicatable.
- Keep the (rather pointless) test for 0 arguments - just for higher
  benchmark scores.
NB system call timing are dominated by other factors! I measured getppid()
  as faster than getpid(), sometimes open("foo", -1) was also faster.
I also suspect that if trace_is_enabled(p) were a simple bit test (that
could be inlined), then the cost of the tests would be unmeasurable and
the syscall_plain/fancy fiasco could be expunged completely.
2007-10-27 22:56:41 +00:00
jnemeth
e5922f73c9 sort users/groups to be manually created 2007-10-27 19:55:35 +00:00
plunky
60822ed9d3 When no estimate of battery minutes_left can be made, apm should
return a value of 0.
2007-10-27 19:51:29 +00:00
pooka
eff8fdc9d1 Prevent recursion in INACTIVE -> vrecycle -> inactive -> ... 2007-10-27 19:36:34 +00:00
christos
b4403619e0 bump date. 2007-10-27 18:43:37 +00:00
christos
59604b5887 uncomment the group handling documentation. 2007-10-27 18:42:42 +00:00
dsl
7cfa26e69a Remove some gratuitous differences between syscall_fancy and syscall_plain. 2007-10-27 18:41:57 +00:00
christos
5f2b082001 PR/37236: Matthias Scheler: Mac OS X NFS client frequently crashes rpc.lockd(8)
on NetBSD. Use calloc to allocate the lock as suggested in the PR.
2007-10-27 18:41:54 +00:00
abs
9e1ca15c9c Add somewhat inelegant logic to handle config.h for now - obviously not
crossbuildable
2007-10-27 18:14:45 +00:00
tsutsui
7eee2a15d6 Use PCI bus/dev/function numbers rather than device unit
to check first tlp in device_register().
2007-10-27 17:23:37 +00:00
manu
6c5e7992c7 More details about my commit 2007-10-27 15:41:27 +00:00
christos
3670ce19dd - move grutil code to newgrp.
- enable user:group and :group code.
2007-10-27 15:37:45 +00:00
nisimura
b08d93761c stop to generate SREC kernel image. netboot is now considered a
standard path to boot off. DINK32 and ppcboot can handle it as a
staging bootloader.
2007-10-27 15:36:29 +00:00
christos
542b6466e3 Move the grutil code from su to here. Requested by ginsbach@ 2007-10-27 15:36:21 +00:00
christos
40a10c757f From Anon Ymous:
- Fix a memory leak in newgrp().  (Noted by ginsbach@.)

- If the new and old groups are the same, addgrp() does nothing so
  exit early.  (Noted by ginsbach@.)

- In newgrp(), if the new group isn't found in the in-core, check the
  group membership list anyway as the in-core list may be full or
  /etc/groups may have been edited since login.  (Requested by
  ginsbach@.)

- Deal with a full in-core group[] array in addgid() rather than
  silently ignoring it and ending up with a group[] array that is
  inconsistent with the current group.

- More explicit error handling in addgroup().
2007-10-27 15:33:25 +00:00
christos
4556f89a2d From Anon Ymous:
- Add a "bounce" command as requested by garbled@.
  From the manpage:

 bounce  Takes a list of messages and prompts for an address to bounce the
         messages to.  All the original header fields are preserved except
         for the ``Delivered-To'', ``X-Original-To'' and ``Status''
         fields.  The new ``To'' field contains the bounce address(es)
         plus any addresses in the old ``To'' field minus the user's local
         address and any on the alternates list.  (See the alternates com-
         mand.)
2007-10-27 15:14:50 +00:00
tsutsui
3d88d4ee08 Assume netboot if "nfsroot=/path" is specified in bootstring. 2007-10-27 15:12:09 +00:00
tsutsui
683d044ea4 In device_register(), check booted devices more properly:
- check "tlp" name on netboot
- use ata channel and drive numbers to check wd unit
2007-10-27 14:47:04 +00:00
ragge
4ce08a9bc7 Import of current (today) pcc. 2007-10-27 14:43:28 +00:00
ad
88ac8d733c Note addition of jemalloc. 2007-10-27 13:30:11 +00:00
ad
024f9d1113 Update status of vmlocking branch. 2007-10-27 13:27:24 +00:00
tsutsui
d1b230ab5a Include <lib/libsa/dev_net.h> for "extern int try_bootp" decl. 2007-10-27 12:23:44 +00:00
tsutsui
fe9146d494 Add an extern decl of try_bootp variable here since MD sources could set it. 2007-10-27 12:21:17 +00:00
tsutsui
03f68714d2 Include "bootp.h" for a function declaration of bootp(). 2007-10-27 12:19:41 +00:00
njoly
d57ae6a62d Regen for chown additions. 2007-10-27 09:17:50 +00:00
njoly
97151f15f1 Add missing chown's syscalls family members.
This makes chown(1)/chgrp(1) works under compat linux32.

Problem reported and fix tested by Arto Huusko. Thanks.
2007-10-27 09:16:24 +00:00
plunky
ad0b47dec4 add mention of _sdpd/_sdpd user/group in the compatibility section 2007-10-27 07:11:58 +00:00
nisimura
f1a2c1395e arrange cache line friendly allocation where applicapable. Not
immutune from careless change of struct local. Away from
compiler extention.
2007-10-27 06:34:19 +00:00
nisimura
f74459a106 redo again the arrangement. 2007-10-27 05:35:55 +00:00
nisimura
94ca8c41e4 - remove ppb which is unlikey used.
- a comment about console selection.
2007-10-27 05:24:29 +00:00
nisimura
e7cbc24fab rearrange lines to make the previous change easy to understand. 2007-10-27 05:10:19 +00:00
nisimura
653a3ff7de - an inch forward southbridge-less configuration.
- make sure to have a fallback default for the case when no bootinfo
  was prepared by a bootloader.
2007-10-27 04:32:39 +00:00
wiz
17ebf6dcc9 less409 out. 2007-10-27 02:56:51 +00:00
nisimura
2cbfeb1621 - make sure to have Rx poll demand issued.
- more vtophys() fallout.
- dismiss PHY stuff until MII r/w ops written.
2007-10-27 02:51:59 +00:00
nisimura
a7153f09ae - copy intr.h from prep and make mods.
- ANSI-fy pci_machdep.c
2007-10-27 02:06:04 +00:00
nisimura
80011a5b90 off-by-one error to detect MSB of SEEPROM index. 2007-10-27 02:01:42 +00:00
ad
dde5d75e78 Fix spelling. 2007-10-27 01:23:25 +00:00
ad
f7b1ea2b3f Tweak comments. 2007-10-27 01:22:53 +00:00
xtraeme
358f1bd73f Comment out piixpcib(4) until the multiple PRs are fixed. 2007-10-26 22:42:43 +00:00
xtraeme
a2da5d58f1 xen/i386/cpu.c uses i686_mtrr_init_first if MTRR is defined, but
mtrr_i686.c wasn't built...
2007-10-26 22:33:23 +00:00
uwe
538e94b48f We don't need MIN_LWP_ALIGNMENT. 2007-10-26 22:24:51 +00:00
xtraeme
72b98e9287 Add amdpcib(4). 2007-10-26 22:21:20 +00:00
xtraeme
19affc8a1a - Add amdpcib(4) commented out.
- Comment out piixpcib(4) until the multiple PRs are fixed, this driver
  has been broken for long time in some machines.
2007-10-26 22:20:43 +00:00
xtraeme
7e8be191f1 Share pcib(4) and amdpcib(4) between i386 and amd64; one copy is enough. 2007-10-26 22:17:13 +00:00
xtraeme
66ba6aa324 ichlpcib(4) lives in x86/pci these days... 2007-10-26 22:11:45 +00:00
xtraeme
8129e894df Apply some KNF. 2007-10-26 21:58:17 +00:00