summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* merge benfor branch changes onto mainline.peter1998-03-086-120/+996
|
* Spell -Bshareable correctly... :-]peter1998-03-082-2/+2
|
* Change default temporary directory (TMPDIR) from /tmp to /var/tmp.wosch1998-03-084-11/+11
| | | | | Mosts users seems to have a larger /var/tmp partition than /tmp - IMHO silly but who cares?
* Improve shell variable substitution.wosch1998-03-083-30/+24
|
* Fixed a few ancient typos, added a little missing stuff, and updatedmckay1998-03-081-20/+23
| | | | | | references to abort() in light of POSIX mandated behaviour. I'm still not 100% happy with much of the wording, but it's better than it was.
* Construct the minor number for the root device taking into account themsmith1998-03-082-16/+20
| | | | | | | | | slice number passed in by the bootblocks. This means the kernel will not use the compatability slice to obtain the root filesystem when booting from a sliced disk. Use the extraction macros from reboot.h rather than stating them in full again.
* Define shift, mask and extraction macros for obtaining the slice numbermsmith1998-03-081-1/+4
| | | | | from the bootdev parameter. This is arguably a 386-ism, although disks partitioned in this fashion are not uncommon.
* If we are mounting the root filesystem, and we're accessing it throughmsmith1998-03-084-6/+76
| | | | | | | | | | | | | | something that might refer to the compatability slice rather than the correct slice entry, try all the possible slice entries first. This is a compatability hack to deal with the case where the kernel has correctly mounted the root filesystem out of its slice, but the user has not updated their /etc/fstab file to reflect this. A diagnostic is emitted if the mount succeeds, indicating that the file should be updated. This is a prelude to fixing the kernel to behave as alluded to above. Reviewed by: (discussed with) julian, phk
* Rewrite script as a select loop rather than as a twin reader/write process.peter1998-03-082-75/+96
| | | | | This allows simple logging of keys sent to a session (turned on with -k). Also allow specifying the script file flush interval.
* svr4.h defines ASM_IDENTIFY_GCC, but neglects to definepeter1998-03-082-0/+20
| | | | | ASM_IDENTIFY_LANGUAGE. Use the osfrose.h method, because gdb assumes 'C' by default, so there's no need to further clutter the symbol table.
* Cosmetic cleanup for a.out asm generation.. Don't put the end-of-filepeter1998-03-082-6/+20
| | | | markers that the stabs-in-elf system uses.
* add `CC' as a link to `c++' for compatablity with SGI.obrien1998-03-081-2/+2
|
* Put the function stabs in traditional order on a.out, or gdb doesn't seepeter1998-03-083-12/+22
| | | | function local variables.
* Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman)julian1998-03-0880-642/+2348
| | | | | Submitted by: Kirk McKusick (mcKusick@mckusick.com) Obtained from: WHistle development tree
* MF22: update table.jkh1998-03-081-4/+3
|
* Note that ed0's IRQ is now 10 to help those upgrading from 2.x.obrien1998-03-081-0/+5
|
* Replaced by ncalhelbig1998-03-084-570/+0
|
* Initialize b_resid, and also print out better diagnostics on I/Odyson1998-03-082-14/+38
| | | | errors. This will allow for better tracking of user error reports.
* Submitted by: kirk McKusickjulian1998-03-081-0/+255
| | | | Stub file for soft updates.
* Set LIB_PATH explicitly otherwise genscripts makes (incorrect) referencespeter1998-03-081-3/+5
| | | | all over the place.
* Add a quirk entry for IO DATA CDC-TX86 6 CD changer.jkh1998-03-081-1/+6
| | | | | PR: 5942 Submitted by: Masanao Sasai <m_sasai@mxa.meshnet.ne.jp>
* Some cruft left over from my megacommit. A page rotation optimizationdyson1998-03-081-7/+2
| | | | | was a good idea, but can cause instability. That optimization is now removed.
* Several minor fixes:dyson1998-03-081-4/+11
| | | | | | | | | | | | 1) When freeing pages, it is a good idea to protect them off. (This is probably gratuitious, but good form.) 2) Allow collapsing pages in the backing object that are PQ_CACHE. This will improve memory utilization. 3) Correct the collapse code so that pages that were on the cache queue are moved to the inactive queue. This is done when pages are marked dirty (so that those pages will be properly paged out instead of freed), so that cached pages will not be paradoxically marked dirty.
* Free the first page also if it is not valid.dyson1998-03-081-2/+2
|
* Add hooks for John Birrell's kernel thread support library.peter1998-03-082-2/+2
| | | | Submitted by: John Birrell <jb@cimlogic.com.au>
* First round of changes to support generation of assembler for the oldpeter1998-03-0810-738/+1039
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a.out gas and the binutils gas (elf or a.out) with a single compiler. This uses other infrastructure not yet committed, in order to support both a.out and elf it needs to be able to get to both a.out and elf gas, ld, libs, crt* etc. So for now, the support is pretty much dormant. The new freebsd.h file is based on the old freebsd-elf.h file (which has a long lineage, right back through linux and svr4 files). The change is pretty dramatic from a gcc internals standpoint as it overrides a lot of definitions in order to generate different output based on target mode. There is potential for screw-ups, so please be on the lookout - gcc's configuration mechanism wasn't really meant for this kind of thing. It's believed to compile world etc just fine under both a.out and elf, can handle global constructors and destructors, handles the differences in a.out and elf stabs, and what sections things like exceptions go in. The initial idea came from i386/osfrose.h which is a dual rose/elf format target. These two are not as diverse as a.out and elf it would seem. The cc front-end uses external configuration to determine default object format (still being thrashed out, so read the source if you want to see it so far), and has a '-aout' and '-elf' override command line switch. There are some other internal switches that can be accessed, namely -maout, -mno-aout, -munderscores and -mnounderscores. The underscore and local symbol prefixing rules are controllable seperately to the output format. (ie: it's possible to generate a.out without the _ prefixes on symbols and also to generate elf with the _ prefixes. This isn't quite optimal, but does seem to work pretty well, except the linkers don't always recognise the local symbols without their normal names) The default format is a.out (still), nobody should see any major changes. With both elf and a.out tools and libraries installed: [1:26pm]/tmp-223> cc -elf -o hello hello.c peter@beast[1:27pm]/tmp-224> file hello hello: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked, not stripped [1:27pm]/tmp-225> ./hello hello world! [1:27pm]/tmp-226> cc -aout -o hello hello.c [1:27pm]/tmp-227> file hello hello: FreeBSD/i386 compact demand paged dynamically linked executable not stripped 1:27pm]/tmp-228> ./hello hello world! Since my co-conspirators put a lot of effort into this too, I'll add them so they can share the blame^H^H^H^H^Hglory. :-) Reviewed by: sos, jdp
* Sync with sys/i386/i386/machdep.c revision 1.292.kato1998-03-082-2/+6
|
* Add sched_yield() witch is the draft 10 equivalent of pthread_yield()jb1998-03-086-66/+66
| | | | | from draft 4. Move some of the schedule definitions to sched.h which is a POSIX header.
* Add a POSIX sched header. pthread_yield() in draft 4 becomesjb1998-03-082-2/+75
| | | | | sched_yield() in the final draft (10). This header contains the prototype. Other things in here are "future".
* Added forgotten new file for `-Lfoo -lbar' -> `foo/bar.a' change.bde1998-03-081-0/+9
|
* Support a couple of new "-s" stats.dyson1998-03-071-1/+3
|
* Revert previous commit. Despite the names, these files containjraynard1998-03-072-2/+2
| | | | troff input, not C source.
* Oops, merge back 32bit fat description from -stable.ache1998-03-072-2/+2
| | | | It was added to -stable but not to -current, strange.
* Prevent passwd locking database forever waiting for user inputache1998-03-071-3/+4
| | | | Submitted by: Antti Kaipila <anttik@iki.fi>
* This mega-commit is meant to fix numerous interrelated problems. Theredyson1998-03-0736-426/+766
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | has been some bitrot and incorrect assumptions in the vfs_bio code. These problems have manifest themselves worse on NFS type filesystems, but can still affect local filesystems under certain circumstances. Most of the problems have involved mmap consistancy, and as a side-effect broke the vfs.ioopt code. This code might have been committed seperately, but almost everything is interrelated. 1) Allow (pmap_object_init_pt) prefaulting of buffer-busy pages that are fully valid. 2) Rather than deactivating erroneously read initial (header) pages in kern_exec, we now free them. 3) Fix the rundown of non-VMIO buffers that are in an inconsistent (missing vp) state. 4) Fix the disassociation of pages from buffers in brelse. The previous code had rotted and was faulty in a couple of important circumstances. 5) Remove a gratuitious buffer wakeup in vfs_vmio_release. 6) Remove a crufty and currently unused cluster mechanism for VBLK files in vfs_bio_awrite. When the code is functional, I'll add back a cleaner version. 7) The page busy count wakeups assocated with the buffer cache usage were incorrectly cleaned up in a previous commit by me. Revert to the original, correct version, but with a cleaner implementation. 8) The cluster read code now tries to keep data associated with buffers more aggressively (without breaking the heuristics) when it is presumed that the read data (buffers) will be soon needed. 9) Change to filesystem lockmgr locks so that they use LK_NOPAUSE. The delay loop waiting is not useful for filesystem locks, due to the length of the time intervals. 10) Correct and clean-up spec_getpages. 11) Implement a fully functional nfs_getpages, nfs_putpages. 12) Fix nfs_write so that modifications are coherent with the NFS data on the server disk (at least as well as NFS seems to allow.) 13) Properly support MS_INVALIDATE on NFS. 14) Properly pass down MS_INVALIDATE to lower levels of the VM code from vm_map_clean. 15) Better support the notion of pages being busy but valid, so that fewer in-transit waits occur. (use p->busy more for pageouts instead of PG_BUSY.) Since the page is fully valid, it is still usable for reads. 16) It is possible (in error) for cached pages to be busy. Make the page allocation code handle that case correctly. (It should probably be a printf or panic, but I want the system to handle coding errors robustly. I'll probably add a printf.) 17) Correct the design and usage of vm_page_sleep. It didn't handle consistancy problems very well, so make the design a little less lofty. After vm_page_sleep, if it ever blocked, it is still important to relookup the page (if the object generation count changed), and verify it's status (always.) 18) In vm_pageout.c, vm_pageout_clean had rotted, so clean that up. 19) Push the page busy for writes and VM_PROT_READ into vm_pageout_flush. 20) Fix vm_pager_put_pages and it's descendents to support an int flag instead of a boolean, so that we can pass down the invalidate bit.
* This commit was generated by cvs2svn to compensate for changes in r34204,jb1998-03-079-0/+903
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import of the mpn asm source files for alpha from V2.0.2 whichjb1998-03-079-0/+903
| | | | | | | | appears to match the other libgmp files in the repository.
* | Reenable redirection of clock interrupt to a higher priority vector.tegge1998-03-071-2/+2
| | | | | | | | | | setidt() now knows about f00f_hack(), and the APs now use the same interrupt descriptor table as the BSP.
* | Make vm_fault much cleaner by removing the evil macro inlines, anddyson1998-03-072-221/+211
| | | | | | | | | | | | | | | | | | | | put alot of it's context into a data structure. This allows significant shortening of its codepath, and will significantly decrease it's cache footprint. Also, add some stats to vmmeter. Note that you'll have to rebuild/recompile vmstat, systat, etc... Otherwise, you'll get "very interesting" paging stats.
* | Enable csu/i386-elf under the appropriate conditions.jdp1998-03-071-0/+2
| |
* | This commit was generated by cvs2svn to compensate for changes in r34198,jdp1998-03-076-0/+263
|\ \ | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | Import C startup files for ELF support.jdp1998-03-076-0/+263
| | | | | | | | | | | | Submitted by: John Polstra <jdp@polstra.com>
* | | Import C startup files for ELF support.jdp1998-03-076-0/+263
| | | | | | | | | | | | Submitted by: John Polstra <jdp@polstra.com>
* | | The APs now reload the interrupt descriptor table pointer aftertegge1998-03-079-9/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | f00f_hack has run. Use the global r_idt descriptor in f00f_hack when in SMP mode, so the APs find the relocated interrupt descriptor table. Submitted by: Partially from David A Adkins <adkin003@tc.umn.edu>
* | | Add support for ELF.jdp1998-03-071-34/+106
| | | | | | | | | | | | Switch to ANSI-style function definitions.
* | | Enable rtld-elf when building an ELF system on the i386.jdp1998-03-071-1/+5
| | |
* | | Some kern_lock code improvements. Add missing wakeup, and enabledyson1998-03-071-10/+43
| | | | | | | | | | | | disabling some diagnostics when memory or speed is at a premium.
* | | This commit was generated by cvs2svn to compensate for changes in r34192,jdp1998-03-079-0/+2403
|\ \ \ | |/ / | | | | | | which included commits to RCS files with non-trunk default branches.
| * | Import the ELF dynamic linker. This is the ElfKit version withjdp1998-03-079-0/+2403
| | | | | | | | | | | | | | | | | | | | | quite a few enhancements and bug fixes. There are still some known deficiencies, but it should be adequate to get us started with ELF. Submitted by: John Polstra <jdp@polstra.com>
* | | Import the ELF dynamic linker. This is the ElfKit version withjdp1998-03-071-0/+83
| | | | | | | | | | | | | | | | | | | | | quite a few enhancements and bug fixes. There are still some known deficiencies, but it should be adequate to get us started with ELF. Submitted by: John Polstra <jdp@polstra.com>
OpenPOWER on IntegriCloud