Commit Graph

2306 Commits

Author SHA1 Message Date
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
mhitch fd011e452f Something I've wanted to do for quite some time: while looking for the
RDSK block, check for a valid native NetBSD label.  If found, use the
NetBSD label.  When writedisklabel() gets called, if no RDB was found,
write out the native NetBSD label.  The disk won't be usable by AmigaDOS,
but is usable as a 'normal' NetBSD drive, with partition changes saved in
the disk label.
2006-11-30 05:14:24 +00:00
mhitch f12efa62ca If no 'a' partition on initial label, create a BSDFFS 'a' partition for the
default label.  Allows creating an FFS filesystem on an unlabeled disk
without needing to use the RAW partition.  If an RDSK block is found,
reset the default label prior to processing the PART blocks.
2006-11-25 18:45:03 +00:00
mhitch 12f26b14c2 Correct spelling in comment. 2006-11-25 18:28:18 +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
christos d8f5d5f044 fix capitalization of NetBSD; from Zapher 2006-11-24 19:38:55 +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 d4e479987d Regen. Per bernd@'s instructions. 2006-11-12 09:14:32 +00:00
jmmv 7a13fe4abf Remove tmpfs's experimental status. OK'ed by core@. 2006-11-11 18:47:08 +00:00
yamt 3342bd892a cpu_dumpconf: oops, redo the previous correctly. 2006-10-23 15:15:52 +00:00
yamt 7eadca1ca8 fix parenthesis mismatch in 1.197. (hi mrg) 2006-10-23 15:08:20 +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
mhitch 031f3db0fe Conversion to clock_ymdhms wasn't complete: the match routine was calling
ugettod() with a NULL pointer to test if the clock was present.  That
argument was changed to a struct clock_ymdhms pointer and is no longer
optional.  Change to pass the address of a local structure when probing
for the clock.
2006-10-10 17:24:23 +00:00
mhitch fb0de0c946 Use atomic operations for setting ssir. Fixes problem when compiled without
optimization of losing a scheduled software interrupt and stalling the
softclock processing.
2006-10-07 17:31:44 +00:00
tsutsui 43bb02c059 Use #ifdef _AMIGA_INTR_H_ rather than _MACHINE_INTR_H_
to protect multiple inclusion.
2006-10-06 18:16:46 +00:00
chs e8295642bd remove MALLOC_NOINLINE, it doesn't do anything anymore. 2006-10-02 03:28:29 +00:00
elad 65792a0340 More from Matt Fleming:
Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
2006-10-01 20:31:49 +00:00
elad bdc51baebb Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!
Also, add forgotten splx() calls in some places.
2006-10-01 19:28:43 +00:00
elad e8373398dc Adapt MD code to KAUTH_DEVICE_TTY_OPEN. Patch from Matt Fleming, thanks! 2006-10-01 18:56:21 +00:00
mhitch 4adefbd6e8 Uvm changes over 17 months ago resulted in the 68040/060 segment table
page being entered with pmap_kenter(), which does not record the mapping
in the pv table.  Attempting to inhibit caching of that page as required
by the 68060 hardware no longer changes the PTE and caused varying degrees
of multiple faulting, sometimes resulting in an unusable system.  Apparently
very few people attempted to run a 68060 based system since that change.
Fix to to change the caching bits directly rather than using pmap_changebit().
2006-09-14 01:27:59 +00:00
spz f3dd46346c change the variable name in the CSR_TRACE macro so it doesn't collide with
a previous definition of 's' (which makes gcc4 warn)
Reviewed by <is>.
2006-09-13 16:45:58 +00:00
spz baf526d49e const'ify several char * to shut up gcc4 warnings
Reviewed by <is>
2006-09-13 16:43:51 +00:00
gdamore dcc5a66350 Convert a2kbbc and a3kbbc to newer clock_ymdhms convenience routines in
kern_todr.
2006-09-11 17:18:00 +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
mhitch 14c9ea00e0 Switch amiga to MI todr. 2006-09-05 05:32:30 +00:00
he 03d728a806 Collapse two more separate instances of MD vuid_event.h header
files to instead use the common <dev/sun/vuid_event.h> header.
2006-08-28 16:52:09 +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 6fed756003 Regen from GENERIC.in:
1.54:
> Disable SYSTRACE by default on all kernels (discussed with core)
1.55:
> Remove obsolete #options VERIFIED_EXEC, found by grep(1).
2006-08-26 08:04:32 +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
mhitch 23e6dfaccf Add a new ADOS partition type, "RAI?" to specify a RaidFrame partiion
which can then be autoconfigured.  Currently can only use the 'c'
partition of the raid* device, since there will be no RDB on the device.
2006-08-03 20:29:54 +00:00
mhitch 1553e3ad3f gcc4 uninitialized warning - initialize the darned thing like pmap_motorola.c. 2006-08-03 20:26:24 +00:00
mhitch 7f15b0ef11 gcc4 checks for and warns about specifying a general register constraint
for operands that won't accept an address register.  Change constraint
to specify only a data register.
2006-08-03 20:24:57 +00:00
hubertf ded0447fa8 spc(4) can also attach to pcmcia(4), as was already in hpcmips/GENERIC
for quite some time. Add it to all systems that have pcmcia SCSI.

Pointed out by Björn Johannesson <rherdware@yahoo.com> in private mail,
OK'd by matt@
2006-07-31 23:29:54 +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
gdamore 34537908ab Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@.  Fixes PR port-evbmips/32362.
2006-07-13 22:56:00 +00:00
tsutsui 1c1d619cf7 Regen from GENERIC.in rev 1.53:
> Add CARP to further platforms
2006-06-30 10:54:09 +00:00
liamjfoy d00a9ac91b Add CARP to further platforms
ok christos, julian coleman and matthew green
2006-06-29 14:00:55 +00:00
tsutsui b9927f2311 Remove static from devsw[] declaration since it's declared as extern
in <lib/libsa/stand.h>.
2006-06-27 11:12:57 +00:00
tsutsui 267074cf60 - fix signed/unsigned mismatch
- fix lvalue cast
2006-06-27 11:07:17 +00:00
tsutsui 762bb578e9 Include <stdlib.h> for exit(3) prototype. 2006-06-27 10:55:16 +00:00
tsutsui d03388424c volatile void func(decl) -> void func(decl) __attribute__((__noreturn__))
to appease gcc4.
2006-06-27 10:53:11 +00:00
is d6a3b8fecd Fix typo in comment 2006-06-20 19:57:32 +00:00
gdamore 800f1efe25 Make this cross-compile on Solaris, by wrapping the #include of sys/endian.h
with a test for #ifndef HAVE_NBTOOL_CONFIG_H.
2006-06-15 23:06:48 +00:00
aymeric 11fb090059 in the softintr-with-si_callbacks framework, don't use add_sicallback()
everytime softintr_schedule() is called. They don't have the same semantics
when called multiple times before the callback is triggered.
Should avoid huge numbers of si_callbacks being created when a machine is
overloaded.
XXX the fix certainly applies to the atari port, too.
2006-06-09 21:29:39 +00:00
he 9bc6aa0193 Get rid of LHS casts by introducing a pair of local helper variables. 2006-06-07 10:07:03 +00:00
yamt d73ce018b0 include kauth.h for kauth_cred_geteuid. 2006-05-15 09:26:18 +00:00