Commit Graph

727 Commits

Author SHA1 Message Date
apb 0cc72e51ac Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.
2009-02-13 22:41:00 +00:00
jym 92ae85d18e Changes to MEMORY_RBFLAGS option:
- renamed to MEMORY_DISK_RBFLAGS to better fit the rest of the
MEMORY_DISK options(4)
- change default value to RB_AUTOBOOT instead of RB_SINGLE, and adapt
the config(5) files accordingly
- document this option inside options(4)

See also http://mail-index.netbsd.org/tech-kern/2008/12/25/msg003924.html

Reviewed by abs@ in private mail.
2009-02-06 18:50:26 +00:00
jym 78f949082f Fix some whitespace and indentation. No functional change. 2009-02-06 18:34:19 +00:00
mrg c6a4afa995 add COMPAT_50 to all the configs with COMPAT_40. 2009-01-24 05:06:05 +00:00
ad 6ba528b5bc Remove softdep, pass 1. We are focused on improving journalling.
Proposed on tech-kern@.
2008-11-24 11:41:07 +00:00
ad 5b57d1bcce LKM -> MODULAR 2008-11-13 10:51:23 +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
tls fca9d633b9 Add accept filters to GENERIC kernels where they exist. 2008-08-10 15:31:20 +00:00
simonb 0751ba4bff Add "options WAPBL" to standard GENERIC/INSTALL type configs. 2008-07-31 07:40:59 +00:00
kiyohara c89be31957 Enable siop and scsi bus/devices. 2008-06-11 02:23:52 +00:00
kiyohara 064d2af81d Fix use pci clock for siop(4), set value "use_pciclock" is 1 by
prop_dictionary_set_bool().
2008-06-11 02:14:29 +00:00
kiyohara 246597c4a4 Fix waiting for the input from keyboard after "Boot: " is displayed in frame
buffer.  Read out ugly data.
2008-06-07 03:56:20 +00:00
kiyohara 1e2b0fc5a1 Fix spl disable at boot time. 2008-06-07 02:48:00 +00:00
tsutsui 6b0322861b Add options COMPAT_40 to files which have options COMPAT_30. 2008-05-30 20:10:01 +00:00
kiyohara 9e26ff7373 Renewal GENERIC and files.bebox. 2008-05-30 16:03:01 +00:00
kiyohara f34810b383 Remove unused prototype for function. 2008-05-30 15:56:32 +00:00
kiyohara 99539a09bc Support genfb console. 2008-05-30 15:54:50 +00:00
kiyohara 33aaae50a1 Split boot/boot_com0/boot_vga.
boot supports framebuffer.
  boot_com0 supports com0.
  boot_vga supports vga, not frambuffer.
2008-05-26 16:28:39 +00:00
kiyohara 4b5fb67334 Integrated to powerpc-mkbootimage. Obsoleted. 2008-05-25 16:27:56 +00:00
kiyohara 5039d4063f Integrated to powerpc-mkbootimage. Obsoleted. 2008-05-25 16:21:07 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
tsutsui 4090172b20 Don't forget to initialize sc_dev. 2008-03-29 05:42:45 +00:00
tsutsui 048fb884fc Split device_t and softc for MI mc146818 clock,
and other related misc cosmetics.
2008-03-28 19:05:49 +00:00
kiyohara 08b5f8f61c Remove printf() when VGA vendor is case Diamond and Matrox. Moreover
this printf() will make the start of CPU1 fail.  I have not understood the
reason yet.  When doing DEBUG is effective, the vender of all PCI devices
will be displayed again.  At this time, printf() doesn't support the format
like "%08x".
2008-03-26 15:09:50 +00:00
kiyohara 7bff3a9b0b We might be able to use VGA. Please comment out for line '-DCONS_SERIAL'
if you wish for it.  In that case, you will occasionally see the hoarsely
and strangely transformed character on screen. This reason cannot be
understood yet.
Default is continuously a serial console.
2008-03-26 14:56:18 +00:00
kiyohara 9edbb57d26 Cleanup bebox_{enable,disable,get}_irq(). 2008-03-26 14:34:42 +00:00
kiyohara 4e674399aa Remove unnecessary comment-outed call. 2008-03-16 17:39:56 +00:00
kiyohara f717170f44 Remove TEXTADDR. We start to 0x100000. 2008-03-16 17:37:09 +00:00
tsutsui 2d5be04276 cnscan() should return -1 (no input) if there is no console device. 2008-03-01 05:21:50 +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
kiyohara a69c196184 USER_SR defines 10, like prep. 2008-02-17 03:57:15 +00:00
kiyohara a867585079 Interrupt setting of PCI from 3.1. In present interrupt, 32
BeInterruptController queues up following i8259(16).
2008-02-17 03:54:21 +00:00
he 663b0ebf3e Don't include <powerpc/oea/pmap.h>, use <powerpc/pmap.h> instead.
Discussed with garbled@, fixes build problem for LKMs.
2008-02-14 15:21:22 +00:00
joerg e69482d49d Introduce device_find_by_xname and device_find_by_driver_unit to replace
alldevs iterations all over src.

Patch discussed with and improved on suggestioned from cube@.
2008-02-12 17:30:57 +00:00
kiyohara 40e0856c1f Fix some bugs since ppcoea-renovation.
It status is reach asking boot device now.
2008-02-08 16:53:34 +00:00
garbled 81953d91fb Ifdef out all the MPC601 code with PPC_OEA601. Now only arches that have the
possibility of running on an MPC601, are infected with all the extra code
and nops that it added.

Also, fix compilation that I broke with the pmap code, by adding
oeacpufeat to the locores of various ppc arches.  Noted by mlelstv.
2008-02-05 22:31:48 +00:00
joerg 3615cf7715 Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
2008-01-20 18:09:03 +00:00
tsutsui db09bcc34f Move todr_attach(9) calls from each MD attachment to MI mc146818_attach(). 2008-01-10 15:17:39 +00:00
ad 2ecdf58c2c Remove systrace. Ok core@. 2007-12-31 15:31:24 +00:00
garbled 76a99a952a Fix the endless stream of 7's problem on i8259-like interrupt controllers
once and for all.  The i8259 does not like to be read in a loop, when an
interrupt comes in, it will return a valid value, however, if you keep
reading it until there are no outstanding interrupts, it will return 7
(which is the lpt interrupt).  Change the pic handler to give an argument
to the get_irq functions of mode, which indicates if this is the first
time we are asking, or if we are just rechecking in a loop.  Non-i8259
handlers can safely ignore this argument.

Tested to fix the stream of 7's problem on prep and ofppc.  Got rid of
the nasty hack in ofppc with this too, and the prep machine seems to take
less interrupts now, which is a good thing.
2007-12-11 18:04:18 +00:00
ober 02ade29d04 Cleaning up commented out code. Formatting according to style rules. 2007-12-09 03:33:29 +00:00
ober 86724c8c4c Remove pccons as it is gone forever. 2007-12-08 15:31:16 +00:00
tsutsui 99221a563b Use TAILQ_FIRST(3) and TAILQ_NEXT(3) macro. 2007-12-05 12:31:25 +00:00
ad 4b293a84e1 Interrupt handling changes, in discussion since February:
- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.
2007-12-03 15:33:00 +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
ad 9f56dfa520 Merge brelse() changes from the vmlocking branch. 2007-10-08 18:02:53 +00:00
ad 66fefd117b It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
2007-07-29 12:15:35 +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