Commit Graph

150800 Commits

Author SHA1 Message Date
thorpej fd7e02e68f Revert previous. 2006-09-09 15:01:37 +00:00
tnozaki 48d386f61a mapper_std iconv module and mkcsmapper(1) now can treat
plain-row-col charset and 4byte code(like GB18030) as SRC_ZONE.
2006-09-09 14:35:17 +00:00
tsutsui 33a8df7bae ${.CURDIR}/sleeptest -> ./sleeptest for MKOBJDIR=yes case. 2006-09-09 12:20:07 +00:00
elad eb92c9c9aa Authorize ntp_adjtime() on the correct scope. 2006-09-09 11:52:56 +00:00
tsutsui c1ba1fb63b Try to make this timecounter ready.
XXX untested since I have no HP-UX binary to test these syscalls
2006-09-09 11:27:19 +00:00
tsutsui 2ef029e9e9 Use microtime(9), rather than copying time directly. 2006-09-09 11:12:53 +00:00
tsutsui 57878c999b time.tv_sec -> time_second 2006-09-09 11:09:48 +00:00
mlelstv a7851eb473 initialize global est_fqlist to NULL in case nothing is found
in est_cpus table.
Don't use a fake table on the stack, est_fqlist points to it
and is used by the sysctl_helper.
2006-09-09 09:39:35 +00:00
xtraeme 82b358e3b5 Don't re-define RB_{LEFT,RIGHT,PARENT} before undef'ing them first. 2006-09-09 09:35:16 +00:00
tsutsui e6031402c8 volatile void -> void __attribute__((__noreturn__)) to appease gcc4. 2006-09-09 08:27:13 +00:00
thorpej 25b4258767 Adapt Matt Thomas's red-black tree implementation for use in proplib. This
has a significant code size savings over <sys/tree.h>.

Also change prop_number_t to store all number objects in an r-b tree,
only ever allocating one object for any given number (we can do this
because numbers are immutable).  This results in significant run-time
memory savings.
2006-09-09 06:59:28 +00:00
matt d9bb545dc5 Shrink rb_tree to 4 pointers (2 if RBSMALL is defined). Move compare
functions to a separate rb_tree_ops structure.  Make every int explicit
in being signed or unsigned.  Use RBDEBUG to enable debug code.  Move
rbt_count to RBSTATS.  Use RBSMALL to not keep track of min/max.
2006-09-09 06:52:18 +00:00
tsutsui 21d899a826 Apply patch from Scott Reynolds in PR port-mac68k/32583
with some tweaks (add a comment and macro):
Handle odd byte case correctly in (ETHER_MIN_LEN-ETHER_CRC_LEN) padding
so that bus_space_set_region_2() won't be called with count==0.
2006-09-09 06:25:08 +00:00
tsutsui 4ab5c21e01 Apply patch in PR port-mac68k/33636 from Dave Huang (with wrapping long lines).
i.e. args in macro should be wrapped with parentheses.
2006-09-09 06:01:48 +00:00
matt 75de26ab17 Add rb_tree_find_node_{geq,leq}. Add stats. Make TAILQ DEBUG only.
Keep track of tree's min/max nodes for easier iteration.  Improve comments.
Move functions around to improve locality.
2006-09-09 05:55:51 +00:00
simonb cec3b712bd Use %p to print a pointer. 2006-09-09 04:12:00 +00:00
simonb 996ce3b799 Fix some cast-qual lossage. 2006-09-09 04:11:43 +00:00
simonb 30151b7fc1 Fix a white-space nit. 2006-09-09 04:01:37 +00:00
simonb 65d14d5f62 Add ath@pci.
Bump SYMTAB_SPACE.
2006-09-09 04:00:24 +00:00
simonb 1592ce0c68 Move the "reseting board..." printf to before the first code that can
reset a board.
2006-09-09 03:58:46 +00:00
simonb b53f76b4fe Use -Wno-uninitialized for ns32k. For some reason, gcc on ns32k
doesn't detect initialisation correction in simple "for" loops like:
	for (i = 0; i < 10; i++)
		var = i;
2006-09-09 03:53:19 +00:00
tsutsui 5319672b12 Remove %fp and %a6 from a clobber description in __asm() statement.
It shouldn't be clobbered and there is nothing for compiler to do
in that case anyway as gcc4 complains.
2006-09-09 03:51:04 +00:00
dogcow 3601de35ef correct placement of '#ifdef's. 2006-09-09 03:32:17 +00:00
tsutsui 0bf82e682e Note news68k timecouner. 2006-09-09 03:26:06 +00:00
tsutsui b2cb5b0241 G/c now unused #includes. 2006-09-09 03:18:00 +00:00
tsutsui db93638de2 Switch news68k to timecounters. From gdamore on port-news68k. 2006-09-09 03:14:18 +00:00
gdamore 65c8d7e075 Note that ews4800mips has timecounter support. 2006-09-09 01:04:06 +00:00
gdamore c14a94e6d6 Arc has been timecountered. 2006-09-09 00:51:04 +00:00
gdamore 17d511c8a9 Convert arc to timecounters, using common mips3 timecounters. We have not
converted the platform to use the MIPS3 cp0 for the hardclock interrupt yet,
but that should be done as well.  In the meantime, there are no functional
changes.
2006-09-09 00:47:54 +00:00
gdamore 17d8d811d5 Add <machine/locore.h>, used by some other common MIPS code. 2006-09-09 00:46:08 +00:00
gdamore 780822fb96 whitespace fix. 2006-09-09 00:14:46 +00:00
gdamore 8639b95c43 Convert code to pick remove pasteware, picking up common implementations of
delay, mips3_init_tc, etc.
2006-09-09 00:14:27 +00:00
gdamore bf6fc8ef63 Various improvements to make the common mips3 clock handling more generally
useful.  The functions delay, cpu_initclocks, and setstatclcokrate have been
renamed to mips3_delay, mips3_initclocks, and mips3_setstatclockrate.

We provide weak aliases for the original names, so machdep code doesn't have
to provide wrapper routines.  (Giving good performance.)

I've moved mips3_clockintr, mips3_initclocks, and mips3_setstatclockrate to
their own mips3_clockintr file, because some ports may not be able to use
these, and its senseless to carry that baggage.
2006-09-08 23:39:27 +00:00
agc a5f1084d56 Sync some fields with reality. 2006-09-08 23:35:48 +00:00
mrg fc3c59182c make this idempotent. 2006-09-08 23:08:05 +00:00
gdamore cc68dbd9e5 Rename init_mips3_tc to mips3_init_tc() for consistency, and make it
extern.
2006-09-08 22:14:14 +00:00
elad c2ea23c509 Add __KERNEL_RCSID(), requested by and okay xtraeme@. 2006-09-08 21:57:38 +00:00
yamt ac9e01c324 - discourage nfs re-exporting.
- bump date.
2006-09-08 21:32:05 +00:00
elad 5f7169ccb1 First take at security model abstraction.
- Add a few scopes to the kernel: system, network, and machdep.

- Add a few more actions/sub-actions (requests), and start using them as
  opposed to the KAUTH_GENERIC_ISSUSER place-holders.

- Introduce a basic set of listeners that implement our "traditional"
  security model, called "bsd44". This is the default (and only) model we
  have at the moment.

- Update all relevant documentation.

- Add some code and docs to help folks who want to actually use this stuff:

  * There's a sample overlay model, sitting on-top of "bsd44", for
    fast experimenting with tweaking just a subset of an existing model.

    This is pretty cool because it's *really* straightforward to do stuff
    you had to use ugly hacks for until now...

  * And of course, documentation describing how to do the above for quick
    reference, including code samples.

All of these changes were tested for regressions using a Python-based
testsuite that will be (I hope) available soon via pkgsrc. Information
about the tests, and how to write new ones, can be found on:

	http://kauth.linbsd.org/kauthwiki

NOTE FOR DEVELOPERS: *PLEASE* don't add any code that does any of the
following:

  - Uses a KAUTH_GENERIC_ISSUSER kauth(9) request,
  - Checks 'securelevel' directly,
  - Checks a uid/gid directly.

(or if you feel you have to, contact me first)

This is still work in progress; It's far from being done, but now it'll
be a lot easier.

Relevant mailing list threads:

http://mail-index.netbsd.org/tech-security/2006/01/25/0011.html
http://mail-index.netbsd.org/tech-security/2006/03/24/0001.html
http://mail-index.netbsd.org/tech-security/2006/04/18/0000.html
http://mail-index.netbsd.org/tech-security/2006/05/15/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/01/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/25/0000.html

Many thanks to YAMAMOTO Takashi, Matt Thomas, and Christos Zoulas for help
stablizing kauth(9).

Full credit for the regression tests, making sure these changes didn't break
anything, goes to Matt Fleming and Jaime Fournier.

Happy birthday Randi! :)
2006-09-08 20:58:56 +00:00
skrll 296c01bb4f MD_DO_NOT_NEED_FALLTHRU for hppa 2006-09-08 19:18:26 +00:00
he 05fe6cd270 Provide ELF64_MACHDEP_ID_CASES and ELF64_MACHDEP_ENDIANNESS patterned
after the other 32-bit ports, so that the arm ports can build
usr.sbin/lockstat/.
2006-09-08 19:09:19 +00:00
tsutsui d7bf7d40db Remove last_clock_intr since it is only used for microtime(9). 2006-09-08 17:04:17 +00:00
martin e9814256e8 Print the correct UPA id for non-boot CPUs 2006-09-08 15:40:45 +00:00
blymn 6395103101 * Correct hashing macro so it uses FHANDLE_SIZE()
* Stop fhandle memory leaks and use the correct fhandle dealloc routine
  (thanks to Elad for these fixes)
* Remove include of kmem.h, it is not required.
2006-09-08 13:57:38 +00:00
tsutsui 4e1adf90bc Switch ews4800mips to a MIPS3 cp0 based timecounter. From gdamore
on port-ews4800mips.

XXX: ews4800mips can't use mips/mips/mips3_clock.c for now because
     it isn't configured to use internal clock interrupt for CPU INT 5,
     i.e. mips3_clockintr() is not needed and its own cpu_initclocks(9)
     is required.
2006-09-08 13:48:11 +00:00
xtraeme a0a2046917 - Change the cast of st_size to uint64_t to avoid future problems
with large files.
- u_uintXX_t -> uintXX_t
2006-09-08 12:38:32 +00:00
manu 9f294e2262 When colecting a 32 bit process' argument or environement vector, we need
to convert 32 bits pointers to the 64 bit environement
2006-09-08 11:59:52 +00:00
xtraeme f286b0fde2 - Match CPUs with cpuid signature 0x6a0, they have a different
signature in the PST block but fid/vid match.
- Remove useless comments.
- Sync informative messages with est.c.
2006-09-08 09:55:13 +00:00
uebayasi bd2328b737 Clarify POLLOUT and POLLWRNORM are equivalent. Bump date.
Reviewed By:	wiz
2006-09-08 09:43:51 +00:00
skrll 61b77d1855 MD_DO_NOT_NEED_FALLTHRU for ARM. 2006-09-08 07:29:19 +00:00