Commit Graph

150776 Commits

Author SHA1 Message Date
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
uebayasi c1a02ec4d9 Typo. 2006-09-08 06:38:55 +00:00
matt 958730091e Fix and simplify node removal. Add lots of assertions and comments. 2006-09-08 04:07:15 +00:00
reinoud 25522cfb86 Oeps! I overlooked the size argument of the SCSI call. It ought to be equal
to the number of bytes we are reading: READ_DISCINFO_BIGSIZE

sorry.
2006-09-08 00:33:18 +00:00
riz 7bbc0ebe95 include <bsd.own.mk>. From Geoff Wing on source-changes. 2006-09-07 23:53:41 +00:00
reinoud a5b62cb444 The size of struct scsipi_read_discinfo_data is not even due to the data[1]
pseudo array in the structure. The scsi command issued used
sizeof(scsipi_read_discinfo_data) but included thus the last byte that
wasn't going to be inspected anyway. Using the constant
READ_DISCINFO_BIGSIZE fixes the bug.

Even though SCSI adapters *should* accept odd lengths, the Sun U10
(sparc64's) crashes in bus_space_read_multi_stream_2(). That explains the
crash.

NOTE: somewhere in NetBSD/sparc64's atapibus support there is the
assumption on the even size; this needs to be fixed! (Hi Sparc64 portmaster
:-) )
2006-09-07 22:52:46 +00:00
xtraeme bdcb6691e9 - Fix Pentium M 770 table. I don't know why did work before but
the values were not correct... tested by seb@.
- Remove binary bits from struct fqlist members, why do we need them?
2006-09-07 22:50:50 +00:00
tron 8e86c1ab96 Make sure that all "move-if-change" scripts in "src/gnu/dist" are
executable in the source ".tgz" files. This is necessary while
bootstrapping the toolchain which isn't done using NetBSD makefiles.

This should fix PR toolchain/34489 by Kirk Russell.
2006-09-07 22:03:58 +00:00
riz bc22f236a4 Regen. 2006-09-07 21:17:32 +00:00
riz 0fcac2612f Add the SK-9Sxx Gigabit Ethernet, from OpenBSD. 2006-09-07 21:16:55 +00:00
mhitch 7b2d0951ce Correct some error returns for gettod() and settod() left over from the
pre-todr code, and use actual E* return codes for any error return.
2006-09-07 20:59:47 +00:00
garbled 9f65f017a3 Now that the interrupt bug on the 7043-140 is fixed, it also fixes the
long standing issue with interrupts onthe PowerStack E1.  Remove the
quirk entry for the PowerStack E1 and revert to using the IVR.
Also, add a \n to the attachment of the mk clock printf that was missing.
2006-09-07 20:13:05 +00:00
garbled 50c16ab16f Apply the patch found in PR/28512 and PR/23801. Ok'd by a few people.
From the PR:
The cache is flushed using the bus address where the phys address
is required.  Errors would be seen only on ports where address
translation is done between the bus and physical memory.
2006-09-07 19:13:11 +00:00
mrg baafcdbb23 make the bpendtsleep: label only active if KERN_SYNCH_BPENDTSLEEP_LABEL
is defined.  if this option is present in the Makefile CFLAGS and we are
using GCC4, build kern_synch.c with -fno-reorder-blocks, so that this
actually works.

XXX be nice if KERN_SYNCH_BPENDTSLEEP_LABEL was a normal 'defflag' option
XXX but for now take the easy way out and make it checkable in CFLAGS.
2006-09-07 18:41:28 +00:00
garbled 50ea065348 Note 7025-F40 support and MI todr for prep. 2006-09-07 18:30:55 +00:00
rjs 69e635a534 Switch to MI todr. Mostly copied from prep. 2006-09-07 18:27:09 +00:00
rumble 561c032f4c Do not permit accesses to unmapped pci registers. 2006-09-07 18:24:05 +00:00
sanjayl 3c19528c31 Remove debug printf that got left in accidentally 2006-09-07 16:00:29 +00:00
simonb 4f4791b37f Switch pc532 to timecounters and generic TODR.
From Garrett D'Amore, with only a couple of minor tweaks by me.
2006-09-07 15:56:01 +00:00
simonb 0c05b6c17e DEBUG="-g" wasn't good enough to remove the "objcopy -x" step, the
library makefiles want the "-g" in COPTS instead.
2006-09-07 15:50:04 +00:00
gdamore 6347eaa294 Run tc_setclock at splclock(). Suggested by kardel@. 2006-09-07 15:49:49 +00:00
simonb a6e21ef05b Guard the timecounter manipulations including the call to tc_windup()
in tc_init() with splclock().  Fixes doubled-up "selected timecounter"
messages on some architectures, including pc532 and cobalt.

Fix suggested by Frank Kardel.
2006-09-07 15:48:14 +00:00
christos 156b02eae7 make postconf configurable 2006-09-07 15:26:08 +00:00
gdamore 257e75f92c Note that timecounters were added for sun3, cesfic, and cobalt. 2006-09-07 14:53:19 +00:00
ad c2ed6959c7 Add a very brief EXAMPLES section. 2006-09-07 14:52:38 +00:00