Commit Graph

166600 Commits

Author SHA1 Message Date
christos 6ad6f673b0 add a script to generate the mini-termcap and use it. 2008-02-02 21:02:29 +00:00
christos a1232e4db1 Add more undocumented capabilities to the *cap printing. 2008-02-02 20:57:20 +00:00
christos 0d149bc5fe Add csetexpandtc() 2008-02-02 20:56:46 +00:00
elad 4240d37675 KTRFAC_ROOT -> KTRFAC_PERSISTENT, and update comments.
Discussed with christos@ and yamt@.
2008-02-02 20:42:18 +00:00
skrll 6b8ce99a9e Check alignment against pp->pr_align not pp->pr_alloc->pa_pagesz.
DIAGNOSTIC kernels on hppa boot again.

OK'd by ad.
2008-02-02 20:21:55 +00:00
dsl 7e5ac7072d Extract the fcntl64() suppoort from linux_file64.c into linux_fcntl64.c
Unravel some of the knots that caused linux_file64.c to be compiled twice
for an amd64 kernel (once for linux and once for linux32) with different
parts being skipped each time.
2008-02-02 19:37:52 +00:00
uwe a6e384a141 Use std.sh3e{l,b} 2008-02-02 18:28:33 +00:00
uwe c2b2ccc344 Add -D_LOCORE to AFLAGS. 2008-02-02 18:18:14 +00:00
martin d5ed42ea19 When doing a reboot from ddb, set panicstr, so that later LOCKDEBUG checks
show the same mercy as with a real panic.
2008-02-02 18:16:42 +00:00
matt c0033b9584 Add a -d flag so that primes will print the difference between the current
prime and the previous prime.  [I needed that for some reason I don't recall
and these changes lying about.  Since they might be useful/interesting to
someone, I might as well as commit them.]
2008-02-02 18:15:14 +00:00
uwe 025bcad369 Use std.sh3eb and g/c local duplicates. 2008-02-02 17:54:16 +00:00
matt 375a7f707b Fix typo: sive -> sieve. 2008-02-02 17:45:05 +00:00
joerg 648c15667b amd64 kernels should use amd64 GENERIC.local. 2008-02-02 17:23:43 +00:00
christos 000f6e1084 PR/37932: Yakovetsky Vladimir: build distribution with USE_FORT fails
Remove unused bcopy crap
2008-02-02 17:16:14 +00:00
christos 99a86a6512 PR/37932: Yakovetsky Vladimir: build distribution with USE_FORT fails
Avoid read redefinition
2008-02-02 17:12:44 +00:00
christos 9aa2376bc7 PR/37932: Yakovetsky Vladimir: build distribution with USE_FORT fails
avoid getcwd redefinition
2008-02-02 17:11:01 +00:00
christos a0e4739ced PR/37932: Yakovetsky Vladimir: build distribution with USE_FORT fails
Avoid read redefinition
2008-02-02 17:09:29 +00:00
christos 18d6bea575 PR/37932: Yakovetsky Vladimir: build distribution with USE_FORT fails
fix buffer overflow
2008-02-02 17:07:04 +00:00
tsutsui 4da2d6da3a Add a findstage2 function (which returns block numbers where
the secondary boot is stored to embed them into the primary bootxx)
for ext2fs.

Currently disabled because there is no primary boot block
which supports ext2fs, but it might help someone in some day.
2008-02-02 17:01:03 +00:00
itohy 4db9c4eb62 ".ne" only ".if t" to avoid unwanted blank lines for text outputs. 2008-02-02 16:56:46 +00:00
hannken 35f84b8843 BO_COWDONE -> B_COWDONE: this flag is tested/modified from the thread owning
the buffer and therefore needs no protection by a mutex.

Ok: Andrew Doran <ad@netbsd.org>
2008-02-02 16:51:34 +00:00
itohy 9ef5327a26 Try to warn possibly unbootable conditions:
- no disklabel
 - no partition "a"
 - partition "a" exceeds 2GB boundary
2008-02-02 16:46:15 +00:00
mjf b1c9a380e4 Match up some VOP_OPEN()S with VOP_CLOSE()s. This allows the root
file system to be identified properly again.
2008-02-02 16:15:01 +00:00
tsutsui fc92a60a21 Update some entries to sync with reality. 2008-02-02 15:47:48 +00:00
tsutsui 660c4c949b sysinst is done. 2008-02-02 15:39:49 +00:00
tsutsui 1d1faf7fbf Done sysinst. 2008-02-02 15:28:07 +00:00
dsl 4e55f805dd Fix build 2008-02-02 15:17:06 +00:00
dsl 020f5fa28f Use the netbsd32_[u]int64 type for all 64bit items to ensure we have the
correct alignment/padding rules.
Removed the now-unnecessary #pragma packed for amd64.
Should fix the alignment of 'struct netbsd32_kevent' on non-amd64.
2008-02-02 14:34:56 +00:00
itohy 7eadf2219e Allow to boot from just 2GB partition.
Simplify the caluculation assuming the sector size is a power of two.
2008-02-02 14:21:02 +00:00
tsutsui bd48677918 Build a RAMDISK kernel on "release" target. 2008-02-02 14:07:39 +00:00
tsutsui 4b5bdb9982 Firstcut at a sysinst based RAMDISK kernel for cobalt. Based on arc. 2008-02-02 14:06:47 +00:00
dsl 0df418f9cb Change u_intxx_t to uintxx_t and uint to unsigined int etc.
Fix indentation.
2008-02-02 13:58:18 +00:00
tsutsui 552d8dcaa6 No need to strip symbols from a RAMDISK kernel. 2008-02-02 13:47:04 +00:00
tron fe8fd8a947 Add brgphy(4). It works with a 3Com 3C996B-T in my ULTRA60.
Approved by Martin Husemann.
2008-02-02 13:42:43 +00:00
itohy d87794fe47 Change be32toh to htobe32 where applicable. 2008-02-02 13:37:13 +00:00
itohy 347910d40e d_npartitions field of struct disklabel is 16bit, not 32bit. 2008-02-02 13:09:47 +00:00
tron 9cb1a5317f Avoid using a stale PCI chipset tag pointer. This avoids panics while
attaching a 3Com 3C996B-T on my ULTRA60. Reviewed by Matthew Green.
2008-02-02 12:12:09 +00:00
hannken 6a545682ed ccdbuffer(): add missing initialization of new bufs b_objlock. 2008-02-02 10:40:50 +00:00
sekiya 37c9e98b8d Uncomment firewire devices. Verified working on my IP32 with a combo
USB2.0/IEEE1394 card:

fwohci0 at pci0 dev 3 function 3: VIA Technologies VT6306 IEEE 1394 Host Controller (rev. 0x46)
fwohci0: interrupting at crime interrupt 10
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:40:26:01:08:01:57:07
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
fwohci0: BUS reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
ieee1394if0: bus manager 0 (me)

... and:

ieee1394if0: 2 nodes, maxhop <= 1, cable IRM = 1 (me)
ieee1394if0: bus manager 1 (me)
ieee1394if0: New S400 device ID:0001a35000317061
sbp0 at ieee1394if0: SBP-2/SCSI over IEEE1394
scsibus2 at sbp0: 1 target, 0 luns per target
sd1 at scsibus2 target 0 lun 0: <AL-COMBO, , > disk fixed
sd1: fabricating a geometry
sd1: 38154 MB, 38154 cyl, 64 head, 32 sec, 512 bytes/sect x 78140160 sectors
sd1: fabricating a geometry
sd1: no disk label

There are a few "mace: overrun at ff2001" errors during access, but they
appear harmless.
2008-02-02 10:31:08 +00:00
tsutsui 7a945e58eb Handle PIF_NEWFS against ext2fs with newfs_ext2fs(8) if USE_EXT2FS is defined. 2008-02-02 09:26:45 +00:00
tsutsui b949470a6b Use less(1) rather than x_more. 2008-02-02 09:23:41 +00:00
tsutsui f9ba3a6676 Add RAMDISK config, which has GENERIC + mdroot stuff. 2008-02-02 09:19:44 +00:00
tsutsui 2465bb71d5 Fix ttypo. 2008-02-02 09:18:00 +00:00
tsutsui fb7c8da0c1 Firstcut at sysinst for cobalt. Mostly taken from arc.
(using ext2fs instead of FAT12)
2008-02-02 09:14:32 +00:00
tsutsui 88c6f87ede Install the native bootloader (which can be loaded from MS-DOS floppy,
ISO9660 CD and FAT12 partition by the ARC BIOS) into
${RELEASEDIR}/${MACHINE}/installation.
2008-02-02 09:07:09 +00:00
sekiya 1ca3315527 Garbage-collect my old broken attempt at creating a ringbuffer for the audio
chip.  Fix grammar in a comment while I'm here.
2008-02-02 08:58:20 +00:00
itohy 612456b1a4 Clean ugly figure:
.***********************************************.
  * NetBSD-4.99.51 Install System                     * <==
  *                                               *
  *>a: Install NetBSD to hard disk                *
  * b: Upgrade NetBSD on a hard disk              *
2008-02-02 08:06:25 +00:00
itohy 4c61909d8e Limit root partition size to 2GB, since hp700 PDC can only address up to 2GB.
Should we have /stand partition a la HP-UX?
2008-02-02 06:11:23 +00:00
uwe de7abf3b9f Include std.sh3el.
Drop EXEC_ELF32 from configs now that it is standard.
2008-02-02 06:09:11 +00:00
uwe 5f972824f5 Use makeoptions DEFTEXTADDR instead of setting TEXTADDR in the makefile. 2008-02-02 05:53:40 +00:00