Commit Graph

416 Commits

Author SHA1 Message Date
tsutsui
279b8ed705 Use CFATTACH_DECL_NEW() (no softc). 2010-11-21 17:59:36 +00:00
tsutsui
b1361f43bd Split softc/device_t. 2010-11-21 16:11:32 +00:00
tsutsui
4eca61515e Make aica_round_blocksize() always return a fixed buffer size.
I'm not sure if this is correct, but audio playback doesn't work
on dreamcast without this workaround. (since kent-audio1 merge?)
2010-11-20 16:12:23 +00:00
uebayasi
52232a9d0d Pull in uvm/uvm.h where UVM's page level interface is used. 2010-11-12 13:18:56 +00:00
tsutsui
68cd53d20c - make local functions/variables static
- export more cons(9) functions in pvrvar.h
2010-10-24 13:34:27 +00:00
tsutsui
80b1067a63 Split device_t/softc. 2010-10-20 13:00:06 +00:00
tsutsui
0e356e23d5 Include "ioconf.h" for struct cfdriver. 2010-10-17 14:17:49 +00:00
tsutsui
83c0ebae98 Make local functions static. 2010-10-17 14:16:21 +00:00
tsutsui
07d8ce4981 Split device_t/softc. 2010-10-17 14:13:44 +00:00
tsutsui
2e58d58880 Add commented out options MODULAR. 2010-10-13 14:34:27 +00:00
tsutsui
6b1a1449bc Prepare empty module_init_md() for options MODULAR.
It just works on dreamcast even with root on gdrom environment.
2010-10-13 14:13:32 +00:00
tsutsui
d6b38309ca Include std.sh3 to pull options CPU_IN_CKSUM. Noted by Ryo SHIMIZU. 2010-10-13 10:56:56 +00:00
tsutsui
424c2d5c6b Build a raw binary format GENERIC kernel and put it into distribution dir.
This would make it possible to create a bootable CD using root on gdrom
without toolchain (i.e. without whole src tree).
2010-10-04 16:03:30 +00:00
tsutsui
9553e52cbf - split device_t/softc
- allocate struct todr_chip_handle in per-device softc
- some cosmetics
2010-09-01 17:06:00 +00:00
tsutsui
f2d6cdb4ee - misc KNF and cosmetics
- use DPRINTF() style debug printf macro
2010-09-01 16:48:00 +00:00
tsutsui
cea585929a Make local functions static, and comment out an unused function. 2010-09-01 16:23:15 +00:00
he
74a3769a96 Bump SYMTAB_SPACE so that it fits again. 2010-09-01 16:13:32 +00:00
tsutsui
a90704b5e7 Use appropriate variable data types. 2010-09-01 15:40:06 +00:00
tsutsui
938f3699d6 Replace an empty for() loop (which would be optimized out) with DELAY(1).
No visible performance difference.
2010-09-01 15:20:12 +00:00
tsutsui
68a1ead9c8 - use bufq(9)
- account busy counter of disk(9)
2010-09-01 15:08:22 +00:00
tsutsui
95919a0f0a Return ENOTTY rather than EINVAL for unhandled ioctl(2)s. 2010-09-01 12:25:27 +00:00
tsutsui
287b6acad1 - split device_t/softc
- include "ioconf.h" for struct cfdriver
2010-08-31 15:17:20 +00:00
tsutsui
1f68cc819a Set bp->b_resid properly after data transfer is complete.
Fixes unexpected "Bad address" errors on file read ops since January 2006.

The problem is reported and tracked by Yasushi Oshima.
2010-08-31 12:12:48 +00:00
tsutsui
15b7c57f37 Fix typo in pci_intr_disestablish(9) macro. 2010-08-01 12:42:45 +00:00
mrg
4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
he
0aa887981d Bump SYMTAB_SPACE so that the contents fits again. 2010-06-30 06:57:13 +00:00
tsutsui
244ae535ae Add WSDISPLAYIO_LINEBYTES, required by Xorg wsfb server. 2010-06-19 08:42:48 +00:00
tsutsui
a9edf8145e Clear RI_NO_AUTO in actual attach functions during autoconf(9)
for console devices that set the flag during consinit().
2010-05-15 08:53:26 +00:00
tsutsui
2e8243bab8 Set RI_NO_AUTO in ri_flg if pvr_getdevconfig() is invoked from cninit.
Tested on gxemul.
2010-05-15 06:48:22 +00:00
chs
7654d6d482 enable TMPFS in all GENERICs that have MFS enabled. 2010-04-29 22:40:48 +00:00
uwe
bfdd7a7c6e Bump SYMTAB_SPACE so that the contents fits again. 2010-03-11 02:21:41 +00:00
dyoung
66bdd36fe9 Use device_t, device_private(). 2010-02-24 22:58:45 +00:00
tsutsui
471e528b58 Remove `volatile' qualifier from argument types of
struct timeval passed to todr_gettime(9) and todr_settime(9).
We no longer have an ancient and volatile struct timeval `time'
global since we have switched to MI timercounter(9) on all port.

XXX1: some of these RTC drivers still assume 32bit time_t
XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms()
XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()
2009-12-12 14:44:08 +00:00
pooka
70d4493c77 Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs.  User functionality remains the same.
2009-12-05 20:11:01 +00:00
rmind
3f18fe8123 - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places.  Reduce sys/user.h inclusions.
2009-11-27 03:23:03 +00:00
cegger
9480c51b04 Add a flags argument to pmap_kenter_pa(9).
Patch showed on tech-kern@ http://mail-index.netbsd.org/tech-kern/2009/11/04/msg006434.html
No objections.
2009-11-07 07:27:40 +00:00
tsutsui
804b431ea3 Use rlphy(4) instead of ukphy(4) for BbA.
---
rtk0 at pci0 dev 0 function 0: SEGA Broadband Adapter (rev. 0x10)
rtk0: interrupting at SH4 IRL 11
rtk0: Ethernet address 00:d0:f1:03:69:68
rlphy0 at rtk0 phy 7: Realtek internal PHY
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
2009-08-23 14:38:43 +00:00
tsutsui
e6821b0d4b Add an empty bus_space_mmap(9) function as temporary workaround
for MI pci(4) mmap function in sys/dev/pci/pci_usrreq.c.

XXX: no bus_space_subregion(9) for g2bus.
2009-08-23 14:28:09 +00:00
cegger
df7f595ecd Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +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
mrg
c6a4afa995 add COMPAT_50 to all the configs with COMPAT_40. 2009-01-24 05:06:05 +00:00
yamt
70de973662 g/c BUFQ_FOO() macros and use bufq_foo() directly. 2009-01-13 13:33:58 +00:00
tsutsui
59f24f5fbc Remove obsolete options SYSTRACE. 2008-12-23 13:04:56 +00:00
martin
719a906ef5 As discussed on tech-kern: mutex_init is too heavyweight for early bootstrap
phases, so move the initialization of the ksyms mutex back into main via
a function called ksyms_init. Rename the existing (but quite different)
ksyms_init* variations into ksyms_addsyms_elf() and ksyms_addsyms_explicit()
and adapt machdep code accordingly.
2008-11-30 18:21:31 +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
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
marcus
e4036a331d Removed a local variable that is no longer needed (should have been removed in last commit...) 2008-10-19 21:24:20 +00:00
marcus
8a975ad955 Replaced funky delay loop with a call to DELAY (fixed problems with newer GCCs). 2008-10-19 14:57:22 +00:00