Commit Graph

535 Commits

Author SHA1 Message Date
thorpej 32a8b62d33 - Shrink ipl_cookie_t from 32-bits to 16-bits (large enough to hold
an SR value or an IPL_* constant).
- Take advange of the smaller ipl_cookie_t to shrink kmutex_t from
  16 bytes to 8 bytes by overlapping storage where possible.
- Implement a RAS-based _lock_cas() for mc68010 systems (Sun2).  See
  sun68k/sun68k/isr.c.

Tested on various m68k platforms, but NOT Sun2.  In any case, at least
Sun2 compiles now.
2007-03-11 05:22:24 +00:00
tsutsui d5a5c6095d Allocate msgbufaddr in pmap_bootstrap.c where it's initilized,
and move its declaration into <m68k/pmap_motorola.h>.
2007-03-05 12:50:15 +00:00
tsutsui 820ffe52e1 - void *CADDR1, CADDR2; -> void *CADDR1, *CADDR2;
- vmmap is declared as (char *) in <m68k/pmap_motorola.h>
2007-03-04 11:05:53 +00:00
tsutsui e5d3d8c8fd - remove unnecessary cast
- use (char *) on pointer arith
2007-03-04 11:00:01 +00:00
tsutsui 9fc72fad14 Add (char *) casts on pointer arithmetic. 2007-03-04 10:50:30 +00:00
tsutsui b9fead901a Remove a declaration for extiobase, which is in <machine/cpu.h>. 2007-03-04 10:46:23 +00:00
tsutsui 2f5e95ec66 Merge #ifdef _KERNEL stuff into one place. 2007-03-04 10:02:42 +00:00
tsutsui e06ffd4f4e Remove #ifdef _KERNEL since this file is no longer exported. 2007-03-04 09:59:10 +00:00
tsutsui 7105072ba9 Stop installing <machine/intr.h> on news68k. Suggested by simonb. 2007-03-04 08:51:19 +00:00
christos 53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
tsutsui 6d4ee08459 - move netintr() from isr.c to softintr.c and make it static
- remove redundant initialization in ipl2psl_table.
2007-03-03 07:36:11 +00:00
thorpej 09c5f9cc49 TRUE -> true, FALSE -> false 2007-02-28 04:21:51 +00:00
tsutsui 5dea0b7003 Make disconnect/reselect work on news68k si(4) with DMA and
enable it by default.
2007-02-17 01:27:07 +00:00
tsutsui 7d0e6302b9 Remove autovectored ISR priorities and use now properly defined
IPL_* values for isrlink_autovec().
2007-02-16 21:52:47 +00:00
tsutsui c98c1f9199 Use LIST_*() macro. 2007-02-16 21:46:27 +00:00
ad 3363855a4a Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
via a soft interrupt. In the near future, softclock will be run from process
context.
2007-02-16 02:53:43 +00:00
tsutsui 67b858ce4e - fix prototype for ctrl_int2 port (u_char -> uint8_t) in intr.h
- use proper macro to assert/clear ctrl_int2 port for softintr
- use KDASSERT() rather than #ifdef DEBUG + assert()
- don't count uvmexp.softs twice in softintr_dispatch()

XXX: Maybe we should have common m68k/softintr.c like mips ports.
2007-02-10 13:08:30 +00:00
tsutsui ac79486fd5 Implement generic softintr(9) support for news68k.
Mostly taken from mvme68k.
2007-02-10 02:57:46 +00:00
tsutsui 123ed5aad5 Implement generic softintr(9) support for news68k.
Mostly taken from mvme68k.
2007-02-10 02:03:51 +00:00
tsutsui 9a49275170 Apply some changes for newlock2, taken from other m68k ports. 2007-02-10 02:01:26 +00:00
ad b07ec3fc38 Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
yamt 3f0f3de613 update comments on NFS_V2_ONLY after nqnfs removal. no functional changes.
from Arnaud Lacombe.
2006-12-29 21:49:03 +00:00
yamt 8bf7662829 merge yamt-splraiseipl branch.
- finish implementing splraiseipl (and makeiplcookie).
	  http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
	- complete workqueue(9) and fix its ipl problem, which is reported
	  to cause audio skipping.
	- fix netbt (at least compilation problems) for some ports.
	- fix PR/33218.
2006-12-21 15:55:21 +00:00
scw e07faf8a74 Replace the myriad copies of bounds_check_with_label() with a single MI
version.

Add disk_blocksize(9) so that disk drivers can record the physical
block size of a disk if it is different to DEV_BSIZE. Right now this
simply initialises dk_blkshift and dk_byteshift according to the
supplied block size. This information is used in the MI version of
bounds_check_with_label().
2006-11-25 11:59:55 +00:00
wiz 6919c6578c s/independant/independent/, from Zafer. 2006-11-24 22:04:21 +00:00
plunky 57c0199dcf Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
2006-11-12 19:00:42 +00:00
jmmv 7a13fe4abf Remove tmpfs's experimental status. OK'ed by core@. 2006-11-11 18:47:08 +00:00
elad 66e42f0f77 XXX: use KAUTH_DEVICE_RAWIO_PASSTHRU for direct disk access here. 2006-11-05 23:00:54 +00:00
mrg 648bbec934 in cpu_dumpconf(), don't panic() if we can't bdevsw_lookup() the
dumpdev.  this occurs when we try to set the dumpdev to a device
with no driver loaded.  this fixes PR#34872.

in sys_swapctl, if bdevsw_lookup() fails, set dumpdev = NODEV
before calling cpu_dumpconf().  (this also fixes PR#34872.)

XXX: cpu_dumpconf() should probably be changed to take a dumpdev
XXX: and return an error in such cases, but that is a much more
XXX: intrusive change.

XXX2: this is only run-tested on sparc64 and compile tested on a
XXX2: couple of platforms.
2006-10-21 05:54:31 +00:00
chs e8295642bd remove MALLOC_NOINLINE, it doesn't do anything anymore. 2006-10-02 03:28:29 +00:00
manu f309b668fd - Document COMPAT_15 as doing nothing
- Add COMPAT_15 to all the kernel that had COMPAT_14, for the sake of coherency
- Remove the only occurences of #ifdef COMPAT_15 in the tree: for the ARM
ports, COMPAT_15 was always used in conjunction with EXEC_AOUT. Only EXEC_AOUT
matters here.

This address kern/18407
2006-09-27 21:42:04 +00:00
he d22aa0483f Add now-required includes, and correct newly added kauth call so
that it builds.
2006-09-11 12:06:39 +00:00
tsutsui db93638de2 Switch news68k to timecounters. From gdamore on port-news68k. 2006-09-09 03:14:18 +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
tsutsui 8c3452b4f9 Switch news68k to MI todr. 2006-09-04 20:32:57 +00:00
christos e0df1e4c51 PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
2006-08-26 20:26:43 +00:00
tsutsui 6dffe5790d options<space><tab> 2006-08-26 08:13:46 +00:00
tsutsui dca3a6d117 Remove netns and netccitt options. 2006-08-26 08:08:30 +00:00
tsutsui 6ff205ce76 Remove obsolete #options VERIFIED_EXEC, found by grep(1). 2006-08-26 07:59:21 +00:00
christos b300b74469 Disable SYSTRACE by default on all kernels (discussed with core) 2006-08-12 15:29:52 +00:00
drochner 84f50d1b92 don't install <machine/db_machdep.h>, this is kernel only 2006-07-26 19:54:56 +00:00
ad f474dceb13 Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
ad 2b79369c7e - Hold a reference to the process credentials in each struct lwp.
- Update the reference on syscall and user trap if p_cred has changed.
- Collect accounting flags in the LWP, and collate on LWP exit.
2006-07-19 21:11:37 +00:00
tsutsui e50565f96a No need to install autoconf.h. 2006-07-01 17:33:25 +00:00
lukem 3358af6498 support MAKEVERBOSE 2006-06-29 00:30:32 +00:00
lukem 9969942b49 Rename LDFLAGS to LINKFLAGS, as the former is for CC not LD. 2006-06-29 00:28:30 +00:00
liamjfoy aeee5deab9 Add CARP to GENERIC kernel configs. CARP is not enabled by default.
ok: christos
2006-06-28 15:19:27 +00:00
tsutsui 8ff2abc2ad space nits. 2006-06-10 12:35:01 +00:00
yamt b3b862261c include kauth.h for kauth_cred_geteuid. 2006-05-15 12:41:21 +00:00
elad 8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00