aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Added two new utilities, both ported from Minix: mined (editor), andAndrzej Bialecki1998-10-2115-0/+9229
| | | | | | | msh (largely compatible Bourne shell). Notes: svn path=/head/; revision=40552
* Get things limping along again for the 80386 and friends. TheRobert Nordier1998-10-211-2/+5
| | | | | | | | ELF assembler emits a redundant operand-size prefix for the fnstsw %ax instruction, and this stops the show for 3.0-RELEASE. Notes: svn path=/head/; revision=40551
* Eliminate a superfluous comment.John Polstra1998-10-211-5/+1
| | | | Notes: svn path=/head/; revision=40550
* Remove most of the code and replace it with a call to getobjformat().John Polstra1998-10-212-116/+14
| | | | Notes: svn path=/head/; revision=40549
* Nuked PG_TABLED flag. Replaced with m->object != NULL.David Greenman1998-10-212-10/+5
| | | | Notes: svn path=/head/; revision=40548
* Fixed previous commit to actually work. The wrong variable was initializedBruce Evans1998-10-211-3/+4
| | | | | | | | earlier (with style bugs of course), so zcat was an alias for uncompress instead of `uncompress -c'. Notes: svn path=/head/; revision=40547
* Add a diagnostic printf for freeing a wired page. This will eventuallyDavid Greenman1998-10-211-1/+2
| | | | | | | | be turned into a panic, but I want to make sure that all cases of freeing pages with wire_count==1 (which is/was allowed) have first been fixed. Notes: svn path=/head/; revision=40546
* Decrement the now unused page table page's wire_count prior to freeing it.David Greenman1998-10-213-3/+9
| | | | | | | | It will soon be required that pages have a zero wire_count when being freed. Notes: svn path=/head/; revision=40545
* Fix types.Dima Ruban1998-10-211-19/+19
| | | | Notes: svn path=/head/; revision=40544
* list.c:Greg Lehey1998-10-211-4/+106
| | | | | | | | Add dump of last requests with 'info -V'. This requires the requests to be enabled with 'debug 8'. Notes: svn path=/head/; revision=40543
* config.c:Greg Lehey1998-10-2122-112/+376
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | config_drive: Catch an instance of anonymous drives. Doubtless many remain. interrupt.c: complete_rqe: Call logrq to log iodone events if DEBUG_LASTREQS is set. Call set_sd_state with setstate_noupdate to avoid buffered I/O out of interrupt context. Use define DEBUG_RESID instead of constant. memory.c: Remove dead expandrq() function Malloc: Remove directory component of file names in malloc table. Add function vinum_rqinfo (part of the request tracing stuff). request.c: Add function logrq (part of the request tracing stuff). vinumstrategy: Check whether config needs to be written to disk, do it if so. This is a stopgap until the Vinum daemon (bacchusd? oenologistd?) is written. If DEBUG_LASTREQS is set, call logrq to log user buffer headers. launch_requests: Correct format of debug output to console. If DEBUG_LASTREQS is set, call logrq to log request elements. request.h: Add definitions for request trace. state.c: set_sd_state: Check flags for setstate_noupdate. If set, don't write the config to disk, just set global VF_DIRTYCONFIG flag. This is part of the kludge to avoid writing config from an interrupt context. vinumext.h: Add declaration for vinum_rqinfo, put inside #ifdef DEBUG Remove dead macro expandrq vinumio.h: Increase maximum ioctl reply length to 4 kB if DEBUG is set. Define VINUM_RQINFO ioctl if DEBUG is set. vinumioctl.c: vinumioctl: Change implementation of VINUM_DEBUG ioctl: use a debug flag (DEBUG_REMOTEGDB) to decide whether to go into remote debugging or not. Implement VINUM_RQINFO. vinumkw.h: Define kw_info even when not debugging. vinumvar.h: Define VF_DIRTYCONFIG Add pointers to request info to vinum_info if DEBUG is set. Define setstate_noupdate Define additional debug bits DEBUG_RESID, DEBUG_LASTREQS and DEBUG_REMOTEGDB. Notes: svn path=/head/; revision=40542
* Make serial port, data format, and bps configurable.Robert Nordier1998-10-204-12/+24
| | | | Notes: svn path=/head/; revision=40541
* Revert last change. mkstemp() wasn't to blame, it's nvi. However,Peter Wemm1998-10-201-21/+5
| | | | | | | mkstemp() is not behaving as documented. Notes: svn path=/head/; revision=40540
* Stop mk*temp() from being pathologically stupid in the face of a umask(0);Peter Wemm1998-10-201-5/+21
| | | | | | | | | | There are other ways to fix this than wrapping _gettemp(), but this was the most convenient. Discovered by: bde Notes: svn path=/head/; revision=40539
* Since vfork() was changed to fork(), we have to pass errno back from theDag-Erling Smørgrav1998-10-202-6/+12
| | | | | | | | | | child to the parent somehow. PR: 8353 Submitted by: Andrew J. Korty <ajk@purdue.edu> Notes: svn path=/head/; revision=40538
* Make this compile, and honour the spirit of the original design whileMike Smith1998-10-201-8/+10
| | | | | | | | | | incorporating the intended fix. Attempt to address some of the putative style bugs introduced. Others doubtless remain. Embarrassed by: bde Notes: svn path=/head/; revision=40537
* make talk/talkd work on alpha.Dima Ruban1998-10-201-3/+3
| | | | Notes: svn path=/head/; revision=40536
* - mkdir -m should call chmod because the high-order bits get ignoredMike Smith1998-10-201-1/+19
| | | | | | | | | by the kernel as a security feature of some sort. Submitted by: Wilfredo Sanchez <wsanchez@apple.com> Notes: svn path=/head/; revision=40535
* Behave like zcat if invoked as zcat. We don't install as zcat; this justMike Smith1998-10-201-2/+5
| | | | | | | | | makes us more useful in a tight environment. Submitted by: Wilfredo Sanchez <wsanchez@apple.com> Notes: svn path=/head/; revision=40534
* - Fix off-by-one problem in tar where filenames of length 100Mike Smith1998-10-201-7/+6
| | | | | | | | | | and dirnames of length 99 don't archive. Submitted by: Wilfredo Sanchez <wsanchez@apple.com> Obtained from: OpenBSD Notes: svn path=/head/; revision=40533
* Hex constants should only have one '0x' prefix.Mike Smith1998-10-201-1/+1
| | | | Notes: svn path=/head/; revision=40531
* Specify BINOWN explicitly - we don't want to depend on bsd.own.mkBrian Somers1998-10-201-0/+1
| | | | | | | setting it to ``root''. Notes: svn path=/head/; revision=40530
* Modify the transmit packet queuing strategy a bit to be a little lessBill Paul1998-10-192-20/+23
| | | | | | | | | | | | | | | | | agressive. With the old code, if a descriptor chain was already on its way to the chip, xl_start() would try to splice new chains onto the end of the current chain by stopping the transmitter, modifying the tail pointer of the current chain to point to the head of the new chain, then restart the transmitter. The manual says you're allowed to do this and it works, but I'm not too keen on it anymore. The new code waits until the eixsting chain has been sent and then queues the next waiting chain in the 'transmit ok' handler. Performance still looks good one way or the other. Notes: svn path=/head/; revision=40528
* Use sysctl() rather than kvm_read() when getting informationDima Ruban1998-10-192-0/+29
| | | | | | | | about clock stuff from kernel. This fixes xntpd on alpha. Notes: svn path=/head/; revision=40527
* Default to aout only on i386. Before we defaulted to elf only onWarner Losh1998-10-192-8/+8
| | | | | | | | | Alpha. This is a minor, but important distinction. Should be a no-op to the install base. If OBJFORMAT is set elsewhere, things work exactly as they did before. Notes: svn path=/head/; revision=40526
* Make gcore work for ELF.John Polstra1998-10-195-99/+625
| | | | Notes: svn path=/head/; revision=40525
* Make configurable (a) whether to use int 0x13 extensions; (b) timeoutRobert Nordier1998-10-193-17/+25
| | | | | | | | value. Ignore failure to update mbr sector. Disable interrupts while using extended registers. Default to F1 not F2. Notes: svn path=/head/; revision=40524
* Add entries for DiskOnChip2000 Flash device.Jordan K. Hubbard1998-10-193-3/+9
| | | | | | | Submitted by: phk Notes: svn path=/head/; revision=40522
* Reclaim the 48k used by the first bootstrap stage by adding it to the mallocDoug Rabson1998-10-194-13/+23
| | | | | | | pool. Notes: svn path=/head/; revision=40521
* Implement a hook to allow us to reclaim the memory used by the first stageDoug Rabson1998-10-192-2/+14
| | | | | | | of the bootstrap (the bit which loads /boot/loader). Notes: svn path=/head/; revision=40520
* We're now in post-release; make the docs indicate as much.Jordan K. Hubbard1998-10-192-359/+25
| | | | Notes: svn path=/head/; revision=40519
* Rename boot2 to loader.Doug Rabson1998-10-182-3/+3
| | | | Notes: svn path=/head/; revision=40518
* R_ALPHA_RELATIVE relocations need to add the value to the existing memoryDoug Rabson1998-10-182-6/+6
| | | | | | | contents. Notes: svn path=/head/; revision=40517
* Add driver support for PCI fast ethernet adapters based on theBill Paul1998-10-1816-13/+2603
| | | | | | | | | | | | RealTek 8129/8139 chipset like I've been threatening. Update kernel configs, userconfig.c, relnotes and sysinstall. No man page yet; comming soon. I consider this driver stable enough that I want to give it some exposure in -current. Notes: svn path=/head/; revision=40516
* Commented out aic.KATO Takenori1998-10-181-2/+2
| | | | Notes: svn path=/head/; revision=40515
* Some cleanups and optimizations:Peter Wemm1998-10-181-163/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use the system headers method for Elf32/Elf64 symbol compatability - get rid of the UPRINTF debugging. - check the ELF header for compatability much more completely - optimize the section mapper. Use the same direct VM interfaces that imgact_aout.c and kern_exec.c use. - Check the return codes from the vm_* functions better. Some return KERN_* results, not an errno. - prefault the page tables to reduce startup faults on page tables like a.out does. - reset the segment protection to zero for each loop, otherwise each segment could get progressively more privs. (eg: if the first was read/write/execute, and the second was meant to be read/execute, the bug would make the second r/w/x too. In practice this was not a problem because executables are normally laid out with text first.) - Don't impose arbitary limits. Use the limits on headers imposed by the need to fit them into one page. - Remove unused switch() cases now that the verbose debugging is gone. I've been using an earlier version of this for a month or so. This sped up ELF exec speed a bit for me but I found it hard to get consistant benchmarks when I tested it last (a few weeks ago). I'm still bothered by the page read out of order caused by the transition from data to bss. This which requires either part filling the transition page or clearing the remainder. Notes: svn path=/head/; revision=40514
* Add an ELF_MACHINE_OK() macro for compatability with the Alpha version.Peter Wemm1998-10-182-2/+6
| | | | Notes: svn path=/head/; revision=40513
* Update SMP-GENERIC98 to something a bit more recent based on GENERIC98.KATO Takenori1998-10-181-3/+14
| | | | Notes: svn path=/head/; revision=40512
* Sync with sys/i386/conf/GENERIC revision 1.125.KATO Takenori1998-10-182-2/+14
| | | | Notes: svn path=/head/; revision=40511
* adjust to match current times.Jordan K. Hubbard1998-10-181-2/+2
| | | | Notes: svn path=/head/; revision=40510
* Add a missing ++.Poul-Henning Kamp1998-10-181-3/+3
| | | | | | | | Noticed by: gcc via phk Submitted by: Mike Spengler <mks@networkcs.com> Notes: svn path=/head/; revision=40509
* Allow building games w/o an existing /usr/games.David E. O'Brien1998-10-181-3/+6
| | | | Notes: svn path=/head/; revision=40508
* Added missing dependency for bus_if.o on bus_if.hPoul-Henning Kamp1998-10-181-1/+1
| | | | Notes: svn path=/head/; revision=40507
* Allow ``make BINDIR=/foo/games'' to work.David E. O'Brien1998-10-182-3/+7
| | | | Notes: svn path=/head/; revision=40506
* Allow ``make BINDIR=/foo/games'' to work.David E. O'Brien1998-10-181-2/+2
| | | | Notes: svn path=/head/; revision=40505
* Initialize earlier (ie: before npx) in case it makes any difference.Peter Wemm1998-10-181-4/+8
| | | | | | | | Print a message when it attaches to pmath_emulate if bootverbose so that we can be sure it's online. Notes: svn path=/head/; revision=40504
* Print a message if bootverbose that the emulator is present in the kernel.Peter Wemm1998-10-181-5/+11
| | | | | | | | | | | Move the initialization before isa_configure() and npx, in case npx does something to initialize the state of the emulator somehow. I do not have any machines without a FPU so that I can test this with - except an old 386sx motherboard in a box somewhere that might work... Notes: svn path=/head/; revision=40503
* PR: 7583Peter Hawkins1998-10-181-4/+4
| | | | | | | | Submitted by: Dave Glowacki <dglo@SSEC.WISC.EDU> Support input via stdin if no input file name specified explicitly Notes: svn path=/head/; revision=40502
* OOPS!Peter Wemm1998-10-181-2/+2
| | | | | | | | | Supply the moduledata handle rather than the event dispatcher function. This should explain the panic on boot problem that's been discussed in -current at the moment. Both machines had GNU_MATH_EMULATE. Notes: svn path=/head/; revision=40501
* Only process the ``PWD'' environmental var if built with "WANT_ENV_PWD"David E. O'Brien1998-10-182-5/+14
| | | | | | | | defined. Bash v2 sets PWD and it creates major problems for those of us with /usr/src being a symlink. See the lists for examples of the problems. Notes: svn path=/head/; revision=40500