Commit Graph

72 Commits

Author SHA1 Message Date
uwe e1bf976dc6 Provide empty module_init_md() so that modular kernel links. 2008-11-17 01:55:00 +00:00
uwe 7d798e4789 Add commented out "options MODULAR" (doesn't work yet). 2008-11-12 19:41:30 +00:00
ad 0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
dyoung 94d985722a It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled.  So I have made two changes:

1 Do not call pmf_system_shutdown() from doshutdownhooks().  Instead,
change every call to doshutdownhooks() to a call to doshutdownhooks()
followed by a call to pmf_system_shutdown().  No functional change
is intended by this change.

2 Make i386 re-enable interrupts briefly while it calls
pmf_system_shutdown().  I leave it to others either to fix the
other ports, or to factor out some MI shutdown code, as joerg@
suggests, and fix that.  Note that a functional change *is* intended
by this change.

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.
2008-11-11 06:46:40 +00:00
apb f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
tls fca9d633b9 Add accept filters to GENERIC kernels where they exist. 2008-08-10 15:31:20 +00:00
matt 91d4704c12 Update <machine/ieeefp.h> to use the C99 FE_* definitions instead of the
NetBSD defined ones.  Redefine the NetBSD ones in terms of the C99 ones.
Step 1 to having <fenv.h>
2008-08-05 16:47:41 +00:00
simonb 0751ba4bff Add "options WAPBL" to standard GENERIC/INSTALL type configs. 2008-07-31 07:40:59 +00:00
ad 06c343ac94 vm_page: put TAILQ_ENTRY into a union with LIST_ENTRY, so we can use both. 2008-06-04 12:41:40 +00:00
uwe 5e11d3a535 Enable TMPFS by default. 2008-06-01 03:34:17 +00:00
tsutsui 04f1cf0315 Fix intr name for irq5. Now both IPL_BIO and IPL_NET are aliases of IPL_VM.
XXX is it better to pass intrname strings to extintr_establish()?
2008-05-16 16:24:17 +00:00
uwe d7e68261ea Avoid uninitialized variable warning at -O. 2008-05-06 02:12:19 +00:00
uwe 3b59dc3936 Enable re(4) now that bus_dma is fixed to deal with TLB-mapped data in mbufs. 2008-05-06 01:30:22 +00:00
uwe a0a69502b3 Deal with TLB-mapped data in mbufs. Makes nfs writes work with re(4). 2008-05-06 01:29:00 +00:00
martin 637bc2e71d Move TNF licenses to 2 clause form 2008-05-04 19:43:05 +00:00
uwe 83c6d7c82f Prettify to make the code easier to follow.
While here remove the XXX comments I added for lastaddr
initialization, now that I can see what's going on.
2008-05-03 23:45:40 +00:00
uwe 4b4321601b Make DPRINTFs depend on busdma_debug variable (off by default).
Move mixed PRE/POST check in _bus_dmamap_sync under DIAGNOSTIC.
Use __func__ to print function name and wrap long DPRINTF lines
to reduce visual clutter.
2008-05-03 22:07:07 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
uwe ba371d8f54 Convert to CFATTACH_DECL_NEW and misc related facelift. 2008-04-15 00:21:49 +00:00
uwe ba989a607d Say "buttons" not "button" as there are several. 2008-03-27 03:01:05 +00:00
uwe e65c61e272 Split device_t and softc. 2008-03-27 02:52:04 +00:00
uwe 44bf67fb94 Split device_t and softc. 2008-03-27 02:40:14 +00:00
uwe 907d951360 Split device_t and softc. While here, hide obio_softc - there's no
reason to expose it via obiovar.h
2008-03-27 02:26:34 +00:00
uwe 3d9ebca642 Split device_t and softc. 2008-03-27 02:15:29 +00:00
uwe d767a02150 Add missing aprint_naive("\n"); 2008-03-27 02:08:14 +00:00
cube 7aa6248cdf Split device_t and softc for ATA devices, as well as wd(4). Other
cosmetic changes where appropriate.
2008-03-18 20:46:35 +00:00
rmind c6186face4 Welcome to 4.99.55:
- Add a lot of missing selinit() and seldestroy() calls.

- Merge selwakeup() and selnotify() calls into a single selnotify().

- Add an additional 'events' argument to selnotify() call.  It will
  indicate which event (POLL_IN, POLL_OUT, etc) happen.  If unknown,
  zero may be used.

Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>
2008-03-01 14:16:49 +00:00
jmmv 055a66c56c Remove GENERIC.local from the repository
Make all the kernels that currently include their corresponding GENERIC.local
file use the cinclude directive instead of include.  This way config(1) will
not complain if the file cannot be found.

After doing this, remove the GENERIC.local files from the repository so that
the user will not see modified files during updates, and local changes to
them cannot end up in the repository by mistake.

Discussed in tech-kern@ earlier this month.  No strong objections.
2008-02-29 14:42:32 +00:00
drochner bb33f35f20 Since files.wscons et al. are included by ~all ports anyway, include
them in the mi "files" file, and remove include statements from md files.
These shouldn't pull in additional kernel code when not in use, so it
shouldn't do any harm except a risk of namespace collisions which
should be easy to fix.
2008-02-20 21:43:33 +00:00
uwe 5f972824f5 Use makeoptions DEFTEXTADDR instead of setting TEXTADDR in the makefile. 2008-02-02 05:53:40 +00:00
uwe 113a8429d2 Drop MACHINE_ARCH from here, it's specified with "makeoptions" in
std.sh3el now.
2008-02-02 03:14:03 +00:00
uwe ec7fffd0f0 Drop exec and endianness options that are in std.sh3* and instead
include std.sh3el.
2008-02-02 03:10:06 +00:00
ad b439191858 Remove vestiges of simplelock debugging. 2008-01-07 00:27:35 +00:00
ad 0c8143169b Fix includes 2008-01-05 00:22:34 +00:00
ad 2ecdf58c2c Remove systrace. Ok core@. 2007-12-31 15:31:24 +00:00
ad 2505fdfd77 Get landisk compiling again. 2007-12-11 16:51:13 +00:00
pooka 61e8303e9d Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern
2007-11-26 19:01:26 +00:00
uwe 8b4bf162e5 Use device_t and device_private(). Use aprint_* in attach. 2007-11-06 01:00:59 +00:00
uwe 5e48e66a0e Use device_t and device_private().
While here - make ops static.
2007-11-06 00:36:30 +00:00
xtraeme 4ba09b41c3 Remove System V semaphores and share memory options to set the limits:
SEMMNI, SEMMNS, SEMUME and SHMMAXPGS.

They can be tweaked via sysctl now. Ports that were setting values on
them weren't touched, I only removed the ones that were commented out.
2007-11-04 14:34:19 +00:00
garbled d974db0ada Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00
uwe ca8a189dd1 Pass correct size in CFATTACH_DECL (obio_softc, not device).
I have no idea how/why it's been working all this time, but I guess
today's changes to struct device shifted delicate numerology balance
and exposed the problem that's been around since the import.
2007-09-24 22:55:13 +00:00
ad 88ab7da936 Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
martin c2534a819b Add pseudo-device agr to all GENERIC kernels where it might make sense
(commented out in some).
2007-06-04 08:55:18 +00:00
uwe 0390c5df8f Add COMPAT_40. 2007-06-01 13:20:56 +00:00
skrll 13951ee3d4 Add an INSTALL kernel for landisk and enable building it.
Also add an installation/misc directory for a boot.fs image which is WIP.
2007-05-02 08:02:00 +00:00
macallan 2644a249ac include files.wsfb 2007-04-10 02:40:16 +00:00
uwe 7220e7517c We don't need SYMTAB_SPACE. 2007-03-23 02:19:17 +00:00
uwe 2e7cdeb33d Don't hijack COPTS to specify cpu type, we have CPUTYPE for that.
Provide a commented out example of a useful COPTS setting.
2007-03-17 14:19:39 +00:00
drochner ab07e481e4 It doesn't make sense to specify "configuration" and "interface"
locators for uhub because a hub can't have sub-devices.
This might be sanity-checked eventually.
Same for ubt now after the change to device attachment.
2007-03-14 12:27:20 +00:00