summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* FIxed printf format errors (an new one that is only detected on systemsbde1998-09-291-6/+6
| | | | | with pointers smaller than u_longs, and 2 possibly-truncating casts in the same printf).
* The bootinfo struct was getting clobbered or not passed through correctly.peter1998-09-291-2/+14
| | | | | | | | | | | | | | | Presumably VTOP doesn't work for static objects. The easiest way to get it working was to reserve some space after the environment strings and copy the bootinfo struct there. Also, set RB_BOOTINFO, it's needed. I got the code to load and run an unmolested kernel OK for the first time with this system a few minutes ago - at last!. I did have to stop it looking at the floppy though as BTX was trapping a mode 14 fault when it look for /boot/boot.conf when no disk was in the drive. (I'm booting from a scsi disk (bios disk 0x80)). Now to teach it about ELF and modules :-)
* Don't pretend to support ix86's with 16-bit ints by using longs justbde1998-09-2913-53/+53
| | | | to ensure 32-bit variables. Doing so broke ix86's with 64-bit longs.
* Fixed initialization of new inodes. ext2fs doesn't clear inodes whenbde1998-09-292-2/+6
| | | | | | they are deleted, so inodes must be cleared when they are reused, but we didn't clear the indirect blocks. This caused serious filesystem corruption.
* Several minor cleanups, inspired by bug reports and the old driver:imp1998-09-291-10/+67
| | | | | | | | | | | | | | | | | | o Unlock mailbox interface if we have a new card. Before only newer cards (B or newer) that had the BIOS disabled would probe. Cards with the BIOS enabled would fail to probe in the mailbox initialization code. o Increase the number of ccbs and sg to 17 from 16 to support 64k I/O on a non page aligned boundary. Ideas for dynamic determination of this value welcomed, as more of these are better. o Took credit for this driver, even though I derived it from Justin's code. Made sure that Justin's copyright from bt.c was preserved, along with his name, since the error handling code is nearly identical. Add my own, identical copyright. Point people to aha_isa.c. Cards tested: 1542C and 1542CF. The B and CP might work now as well, but logistical problems precluded me from testing them this evening (if you have jumper settings for the B card, please send me private mail).
* cosmetique - remove unneded static in previous commitache1998-09-291-2/+2
|
* workaround painful vm86_datacall requirement that segment+offsetache1998-09-291-5/+14
| | | | must be withing the same PAGE frame
* Fix destructive cursor shape after text mode switch.ache1998-09-296-68/+74
| | | | This is only for standard modes, I don't check vesa modes yet.
* John Dyson approved of this solution; make vnode_pager_input_old set m->validrvb1998-09-281-1/+3
|
* fix handling more than one cardsache1998-09-282-4/+6
| | | | Submitted by: "Sergey V.Dorokhov" <svd@kbtelecom.nalnet.ru>
* Only bcopy the correct amount of data from the buffer in case it is everpeter1998-09-281-1/+1
| | | | in an overrun situation.
* Use the variable with the path in it for the error message.peter1998-09-281-2/+2
|
* Reactivate the a.out kernel loader code.peter1998-09-282-4/+4
|
* Missing return value that was kinda important.peter1998-09-283-3/+6
|
* Argh, I don't believe how much time I wasted looking for this...peter1998-09-281-1/+1
| | | | Bytes of extended memory = (extkb * 1024), not (extkb + 1024)
* Cleanup and fix THE bugrvb1998-09-288-44/+78
|
* The comconsole mode is accessed as 'comconsole' not 'com'.peter1998-09-281-2/+2
|
* MBR magic is 0x55aa not 0xffaa.peter1998-09-281-2/+2
|
* Precedence bug (?) causing probe problems.peter1998-09-281-2/+2
|
* Fix (?) EISA interrupt configuration based on observation of what we'vepeter1998-09-281-26/+9
| | | | | | | | | | | | | | | | | | | | | | seen in practice. The MPspec is ambiguous and/or contradicts itself. We now look at the ELCR to determine the trigger mode (edge/level) of an interrupt tagged as "conforming" in the mptable. EISA interrupts appear to be presented to the APIC as active high in all cases (they are level inverted) that we've seen, so use this for the 'conforming' level case. Of note, the system I'm using has 2 PCI cards in it, and the PCI cards interrupts (5 and 9) appear in the ELCR register as level sensitive and the mptable lists 5 and 9 as coming from the EISA bus. The PCI interrupts are active-high by the time they reach the APIC even though they are electrically active low at the slot. We should still work should somebody implement this on motherboards differently in the future as long as the mptable is clear about the trigger/polarity. Current should work on Holm Tiffe's machine now. Based on code from: Tor.Egge@fast.no
* Back out rev 1.6 (temporarily at least). <machine/asmacros.h> is usedpeter1998-09-281-3/+1
| | | | | | | here for getting the #defines for the removal of the leading '_' in symbols in the assembler code. We could probably #include <machine/asnames.h> instead, but everything else seems to use asmacros.h directly as well. Once we convert symbols, this becomes irrelevant.
* Sync with sys/i386/i386/userconfig.c revision 1.110.kato1998-09-281-2/+3
|
* Sync with sys/i386/i386/machdep.c revision 1.310.kato1998-09-282-74/+2
|
* Sync with sys/i386/conf/options.i386 revision 1.89.kato1998-09-282-6/+4
|
* Sync with sys/i386/conf/SMP-GENERIC revision 1.16.kato1998-09-281-2/+1
|
* Include vinum in SUBDIRgrog1998-09-281-2/+2
|
* Correct calculation of revive blocksizegrog1998-09-282-4/+4
| | | | Submitted by: Chris Csanady
* Get include paths rightgrog1998-09-282-4/+4
|
* Use defines APM_BIOS and SYSTEM_BIOS instead of hardcoding 0x53 and 0x15.jlemon1998-09-282-10/+10
|
* Initialize pcb_mpnest to 1 in the child process in cpu_fork(). This shouldtegge1998-09-282-2/+8
| | | | | | | fix the 50% idle problem that the ELF /sbin/init triggered. The problem appeared when the last context switch before a fork() call was due to the kernel faulting in user pages via normal page faults (e.g. copyin). Reviewed by: Peter Wemm <peter@netplex.com.au>
* Use correct virtual address when configuring the per CPU idle page directorytegge1998-09-284-5/+16
| | | | for a vm86 call under SMP.
* Be more selctive about when we clear p->valid.dg1998-09-281-3/+5
| | | | Submitted by: John Dyson <toor@dyson.iquest.net>
* `strings' -> `strings -aout -n 3'jkoshy1998-09-273-6/+6
| | | | | Pointer out by: Ben Smithurst <ben@scientia.demon.co.uk> and <des@freebsd.org>
* Update SimOS scsi driver to use CAM.dfr1998-09-262-143/+173
|
* Don't try to attach an isa bus if there isn't one.dfr1998-09-261-2/+3
|
* Merge changes from i386/isa/sio.c up to revision 1.215.dfr1998-09-262-92/+84
|
* Add hooks so that the alpha can detect which disk has the root partition.dfr1998-09-263-2/+12
|
* Don't set script to vaddr2 on the alpha - it can't access scripts in devicedfr1998-09-261-2/+6
| | | | memory using simple pointers.
* Dike out some obsolete defines which referenced ih_next and ih_prev fromdfr1998-09-261-3/+1
| | | | | struct ipovly (they don't exist anymore because they don't work when pointers are 64bit).
* Start using the new SWI registration system instead of hardwiring everything.dfr1998-09-263-32/+53
|
* Underlying ,v files were copied and detagged. Re-commit old versionspeter1998-09-264-334/+668
| | | | onto the head revision. (mainly using sys/bus.h etc for alpha)
* Updated ext2_reload() and ext2_sync(). Locking was broken, and MNT_LAZYbde1998-09-262-84/+126
| | | | | | | | | syncs weren't optimized properly (they probably still aren't, but are bug for bug compatible with ffs). These fixes are mostly academic, since ext2fs is too broken to mount read-write (it apparently doesn't clear indirect blocks). Obtained from: mostly from Lite2
* Automatically detect which disk was booted and change the root to that disk.dfr1998-09-263-8/+128
|
* * Add old UFS compatibility code to alpha/boot1.dfr1998-09-2618-58/+98
| | | | | | * Fix a raft of warnings, printf and otherwise. * Allocate the correct amount in mod_searchmodule to prevent an overflow. * Fix the makefiles so they work outside my home directory (oops).
* Fixed missing newlines in messages in ext2_check_descriptors().bde1998-09-262-16/+24
| | | | | | | Fixed vnode and memory leaks after an unlikely (?) error in ext2_mountfs(). Fixed an unconditional memory leak in ext2_unmount().
* Fixed clean flag handling:bde1998-09-264-20/+72
| | | | | | | | | | | | | | | | | | | | | | | Fixes for bugs not shared with ffs: - don't mount unclean filesystems rw unless forced to. - accept EXT2_ERROR_FS (treat it like !EXT2_VALID_FS). We still don't set this or honour the maximal mount count. - don't attempt to print the name of the mount point when mounting an unclean file system, since the name of the previous mount point is unknown and the name of the current mount point is still "". Fixes for bugs shared with ffs until recently: - don't set the clean flag on unmount of an initially-unclean filesystem that was (forcibly) mounted rw. - set the clean flag on rw -> ro update of a mounted initially-clean filesystem. - fixed some style bugs (mostly long lines). The fixes are slightly simpler than for ffs, because the relevant on-disk state is not a simple boolean variable, and the superblock has a core-only extension. Obtained from: parts from ffs_vfsops.c, parts from NetBSD
* Fixed clean flag handling:bde1998-09-261-23/+33
| | | | | | | | | | | | | | - don't set the clean flag on unmount of an unclean filesystem that was (forcibly) mounted rw. - set the clean flag on rw -> ro update of a mounted initially-clean filesystem. - fixed some style bugs (mostly long lines). This uses the fs_flags field and FS_UNCLEAN state bit which were introduced in the softdep changes. NetBSD uses extra state bits in fs_clean. Reviewed by: luoqui
* Cosmetic changes:yokota1998-09-265-51/+47
| | | | | | | | | | | | | | | - there were too many global variables (there still are :-). - the data section was bloated by explicit initializations of static variables to 0 (only fixed the recently changed ones). - WRAPHIST() had silly parentheses around foo->bar. - the comment about inline functions was stale. - the comment about Userconfig presumes too much about the boot environment. - `i' was reused confusingly in scioctl(). - the declaration of `butmap' used a deprecated K&R misfeature. - the initializeation of `butmap' had an unnecessary line break. - `unsigned char' was not consistently (mis)spelled as u_char. - English was poor in a comment in videoio.c. Submitted by: bde
* - Use `u_long cmd' ioctl arg.yokota1998-09-266-34/+18
| | | | | - Fix some external function declaration. Submitted by: bde
* Recover the arguments passed in from the previous load stage, use them to setmsmith1998-09-262-3/+31
| | | | | the default console. Print malloc stats from the new libstand allocator.
OpenPOWER on IntegriCloud