Commit Graph

169430 Commits

Author SHA1 Message Date
martin
cd22f25e6f Move TNF licenses to 2 clause form 2008-05-02 18:11:04 +00:00
ad
04feebca3b PR kern/38141 lookup/vfs_busy acquire rwlock recursively
Until the code paths are fixed properly, put in place an ugly workaround
to make it safe to recursively acquire a read lock on a mount.
2008-05-02 17:40:30 +00:00
reinoud
62c4a64698 Extend the MMC framework to also create sensible reports on audio discs. 2008-05-02 16:06:38 +00:00
reinoud
f83002a905 Add definitions for the close track/session, reserve track and repair
track SCSI commands.
2008-05-02 15:56:25 +00:00
reinoud
87bf4ab915 Fixup CD and DVD drives that appear to be on crack when reporting features.
They state f.e. that a recordable CD-R is rewritable or completely forget
that the fixed packet size formatted CD-RW is strict overwrite rewritable
and not randomly rewritable.
2008-05-02 15:53:10 +00:00
reinoud
8d14ab3bcb Make the SCSI sense code "Logical Unit Not Ready, Operation In Progress"
(Sense code 0x04, 0x07) not a fatal error anymore but retry command later.
This sense code can be returned on a CD-MRW write that encounters a bad
block resulting in the drive being busy relocating it. During that time it
can return this sense code to indicate its busy for a while.

Also reduce waiting time for the other "Logical Unix Not Ready, Long Write
In Progress" to half a second.
2008-05-02 15:34:16 +00:00
ad
31d4b62867 - Give x86 BIOS boot the ability to load new style modules and pass them
into the kernel. Based on a patch by jmcneill@, with many fixes and
  improvements by me.
2008-05-02 15:29:18 +00:00
ad
bfc5732320 - Give x86 BIOS boot the ability to load new style modules and pass them
into the kernel. Based on a patch by jmcneill@, with many fixes and
  improvements by me.

- Put MEMORY_DISK_DYNAMIC and MODULAR into the GENERIC kernels, so that
  you can load miniroot.kmod from the boot blocks and boot into the
  installer!
2008-05-02 15:26:38 +00:00
christos
00c6e78061 Since we cannot guarantee that all machines do ieee math, or that they have
the proper math setup deal with SIGFPE directly.
2008-05-02 15:10:05 +00:00
ad
3ba209837a - Add a bsd.kmodule.mk to build new style modules.
- Set the file suffix to .kmod
2008-05-02 14:20:50 +00:00
ad
2830fe3488 PR kern/38497 Out of memory allocating ksiginfo
Work around: don't acquire softnet_lock in protocol drain routines.
2008-05-02 13:40:32 +00:00
ad
8c94e76aa9 Add a module that looks up a "miniroot" section within its ELF object,
and passes that to md_root_setconf(). The file system image can be added
with objcopy after the module is built.
2008-05-02 13:03:58 +00:00
ad
1253c2cad4 Allow md_root_setconf() to set in a miniroot as the root file system
even if MEMORY_DISK_IS_ROOT is not defined (a runtime override).
2008-05-02 13:02:31 +00:00
ad
3f1b4f1759 Keep the program table and section strings around after loading the object,
since module_find_section() needs them.
2008-05-02 13:00:01 +00:00
ad
5d413581c7 Re-do yesterday's build fix to hook in the MD stuff if available. 2008-05-02 12:59:34 +00:00
lukem
d77bf7654f Explicitly set MKLINT=no if MKLINKLIB==no, rather than just acting that way. 2008-05-02 11:45:19 +00:00
lukem
3e0e2ca90a remove bogus setting of MKLINT 2008-05-02 11:27:08 +00:00
martin
ca37ecd7b6 Move to 2 clause TNF license (was: strange 3 clause version) 2008-05-02 11:13:02 +00:00
simonb
96093a0d4f Sprinkle a teeny bit of KNF goodness.. 2008-05-02 01:53:33 +00:00
bjs
98dd3c4324 Wedge in a smattering of updates for ati_pcigart.c and radeon support:
-- detypedef drm_ati_pcigart_info
-- add support for variable sized apertures in ati_pcigart.c
-- Add support for radeon IGP adapters (untested on NetBSD)
-- Update r300_reg.h to a much newer version.
-- Miscellaneous fixes in radeon_cp.c, radeon_state.c.

TODO: r300_cmdbuf.c  (?)

Please report any regressions to me.  While I try to make sure the
updates are somewhat coherent, our initial code base is old enough
such that it's quite difficult to be absolutely certain.  I hope to
rebase the NetBSD-specific code on the BSD code at the head of GIT
within a month or two, so this will do for now.
2008-05-02 01:29:36 +00:00
tsutsui
407e634a58 Pull the follwoing fix from upstream:
http://gcc.gnu.org/viewcvs/trunk/gcc/config/m68k/m68k.md#rev117181
>       * config/m68k/m68k.md (negsf2, negdf2, negxf2): Use
>       -2147483647 - 1 instead of 0x80000000.

Fixes "internal compiler error: in do_SUBST" on compiling
floating point ops with -msoft-float or -m68010 on LP64 hosts,
and may also close PR toolchain/38359.  Tested on alpha.
2008-05-01 23:50:32 +00:00
garbled
cc7a9bfb3c Switch to using x_ed and x_umount. x_mount didn't save much, but x_ed
saved alot:  1516140->1503104.  28k to go, and running out of ideas.
2008-05-01 23:23:23 +00:00
xtraeme
69231bd9c5 The template file should be built in ${.OBJDIR} not in ${.CURDIR},
build.sh now works.
2008-05-01 23:14:35 +00:00
dyoung
89e32494c3 Release mutex before unmapping bus space to stop a locking error. 2008-05-01 22:59:37 +00:00
garbled
889060cb8a Update to point to the cut-down version of protocols 2008-05-01 22:44:23 +00:00
xtraeme
e0328a5a63 Add the hpqlb(4) manpage. (HI CEGGER!) 2008-05-01 22:09:29 +00:00
garbled
01e0801fb8 Use the generated protocols file. Save another 20k or so. 2008-05-01 22:03:58 +00:00
garbled
890832bb43 Add a stripped down protocols file, similar to how services was done. If
you use this instead, you save about 21k on the install media.
2008-05-01 22:02:54 +00:00
garbled
9ce0927805 Create a litle script to generate a stripped down protocols file. 2008-05-01 22:01:16 +00:00
cegger
8127f641e3 device_t / softc split. From Hans Rosenfeld. 2008-05-01 22:00:44 +00:00
xtraeme
4e0bb25a64 Also add boot.cfg into the installation CD, as was intended by ad@. 2008-05-01 21:59:07 +00:00
christos
ee5dd5c8d7 fix const and volatile printing in types. 2008-05-01 21:52:19 +00:00
xtraeme
126b0d446f Build and install by default the following LKMs on i386 and amd64:
aps(4), finsio(4), itesio(4), nsclpcsio(4), smsc(4) and ug(4).

These drivers aren't enabled in GENERIC kernels, so having the LKMs
in base will simplify future testing.
2008-05-01 21:51:20 +00:00
garbled
82b40b9f32 Delete glasstty lpr and vt52 entries. 2008-05-01 21:32:23 +00:00
garbled
ec2ea43eb7 This file is nothing but comments. Trim it out to a stub. 2008-05-01 21:27:46 +00:00
rmind
0fe9197c91 lwp_suspend: check for LW_* flags in l_flag, not l_stat. 2008-05-01 21:25:23 +00:00
garbled
4ad2d863e8 Remove mount_kernfs from the prep install floppy. Saves a few bytes, we
already put dmesg on there, and the prep install kernels don't have KERNFS
defined anyhow.  A quick test shows it's cheaper to use dmesg than kernfs:

1528511         +kernfs +mount_kernfs -dmesg
1524332         +dmesg -kernfs -mount_kernfs
2008-05-01 21:20:54 +00:00
garbled
e5bede68a5 Squeeze 14k out of the INSTALL_SMALL image. Still too big. (by 49k)
Savings detailed below:
6274    #pseudo-device  rnd
799     no options      EXEC_AOUT
1082    options         NO_DEV_PTM
6023    st* at scsibus
2008-05-01 20:57:38 +00:00
gdt
36bcd10549 Use -f in cp, so that a previous file in the OBJDIR that's read-only
won't cause a failure.
2008-05-01 20:56:39 +00:00
cegger
d9b775927c hpqlb(4): driver for HP Quick Launch buttons - found on HP Pavilion Notebooks 2008-05-01 20:18:18 +00:00
garbled
82a9123f59 Add a missing Makefile that I forgot to commit in the mkbootimage
switch.  Caught by Juergen Hannken-Illjes.
2008-05-01 18:13:38 +00:00
nonaka
abafa09887 fix make release breakage. 2008-05-01 17:27:33 +00:00
ad
1bb1fee762 - Add module_find_section(), allows a module to look up data in its object.
- Work around build failure.
2008-05-01 17:23:16 +00:00
ad
416e98a01e Another fix for pre-loaded modules. 2008-05-01 17:07:10 +00:00
simonb
c3325defad Be consistent with #define<space-or-tab>. 2008-05-01 16:06:41 +00:00
njoly
4c44d432ea Add SCHED_FIFO/SCHED_RR support to sched_get_priority_{min,max}. 2008-05-01 16:06:17 +00:00
cegger
50fa672c8b build fix: <sys/condvar.h> is needed for 'extern kcondvar_t mount_cv'. From Hans Rosenfeld.
ok simonb
2008-05-01 16:05:13 +00:00
christos
640f4f7d25 mention thread local support. 2008-05-01 15:52:31 +00:00
jmmv
f6d581922f Adjust file lists after the import of atf-0.5. 2008-05-01 15:41:16 +00:00
jmmv
b3bc2ad3e2 Note import of ATF 0.5. 2008-05-01 15:39:43 +00:00