summaryrefslogtreecommitdiffstats
path: root/sys/i386
Commit message (Collapse)AuthorAgeFilesLines
* Change the definition of the debugging registers to be an array, sophk2002-10-203-58/+55
| | | | | | | that we can index into it, rather than do pointer gymnastics on a structure containing 8 elements. Verified by: MD5 hash on the produced .o files.
* Remove a boatload of '&' which are surplus to the requirements.phk2002-10-202-82/+82
| | | | Validated by: md5 hash is unchanged.
* Revert last commit, there actually was a -1 waaaaay down in pcireg_cfgread().phk2002-10-201-0/+2
|
* Hide inline assembly if lint is defined.phk2002-10-201-1/+1
|
* "id" is never going to be -1 when it is unsigned.phk2002-10-201-2/+0
| | | | Spotted by: FlexeLint
* Add two hooks to signal module load and module unload to MD code.marcel2002-10-191-0/+14
| | | | | | | | | | | | The primary reason for this is to allow MD code to process machine specific attributes, segments or sections in the ELF file and update machine specific state accordingly. An immediate use of this is in the ia64 port where unwind information is updated to allow debugging and tracing in/across modules. Note that this commit does not add the functionality to the ia64 port. See revision 1.9 of ia64/ia64/elf_machdep.c. Validated on: alpha, i386, ia64
* Permits UFS ACLs to be used with the GENERIC kernel. Due to recentrwatson2002-10-191-0/+1
| | | | | | | | | | | | | ACL configuration changes, this shouldn't result in different code paths for file systems not explicitly configured for ACLs by the system administrator. For UFS1, administrators must still recompile their kernel to add support for extended attributes; for UFS2, it's sufficient to enable ACLs using tunefs or at mount-time (tunefs preferred for reliability reasons). UFS2, for a variety of reasons, including performance and reliability, is the preferred file system for use with ACLs. Approved by: re
* Style(9). Make some function declarations consistent with the rest,markm2002-10-193-24/+10
| | | | and remove some nearby extraneous {}'s.
* Add the !define(COMPILING_LINT)pirzyk2002-10-171-1/+1
| | | | | | pass the pointy hat... Requested by: Juli Mallett <jmallett@FreeBSD.org>
* 1. Fix a comment. Locking _is_ needed (but not done).iwasaki2002-10-172-24/+16
| | | | | | | | | | | | | | | | | | | | | | | | | 2. Update a comment. We now restore much more than RTC updates and interrupts. 3. Order change. Stop interrupts by writing to RTC_STATUSB, restore rate bits for the interrupts by writing to RTC_STATUSA, then enable interrupts again. This seems to be done perfectly backwards in startrtclock(). Otherwise, the idea for this change was obtained from startrtclock(). 4. Don't stop the clock (RTCB_HALT). We only program some control bits and don't want to stop the clock. 5. (Not really related.) Add caveats to the comment about timer_restore(). The update is non-atomic since locking is not done. On locking: 6. rtcin() and writertc() are locked() adequately by splhigh() in RELENG_4, but this locking is null in -current. 7. Doing things in the correct order in (3) combined with (6) is probably enough locking for rtcrestore() in RELENG_4. In -current, the writertc()'s race with rtcintr() unless the BIOS disables RTC interrupts. Submitted by: bde (including commit message) MFC after: 1 week
* Fixed the quoting of the value of SC_CUT_SEPCHARS. The double quotesbde2002-10-171-2/+2
| | | | | | | | | | | | | | | | | | | needed to be quoted (to get a C string literal), not the value itself. Fixed the value of SC_CUT_SEPCHARS. Setting this value would have had no effect even if it were used, since the value was the same as the default. The above bugs had no effect except to set bad examples, since test coverage of SC_CUT_SEPCHARS is broken by enabling a negative option. Removed (unquoted) double quotes for all options. They were all bogus since they had no effect except to make non-strings look like strings. Most of the non-strings were expressions. The value of INIT_PATH is a non-string since it is stringified later (unlike SC_CUT_SEPCHARS). Fixed parenthesization errors inside bogus quotes (parenthesize values if they have more than one token in them but don't parenthesize single tokens).
* put an #error directive when SMP and CPU_DISABLE_CMPXCHG are setpirzyk2002-10-171-0/+3
| | | | | | | together. Requested by: Lars Eggart <larse@isi.edu> Enlighted how to do it by: John Baldwin <jhb@freebsd.org>
* Use the global pcib devclass instead of our own static copy.jhb2002-10-161-2/+0
|
* - curproc may be NULL in 4-stable. In that case use the vmspace fromjhb2002-10-161-2/+4
| | | | | | | proc0. - Remove unused include. Sponsored by: The Weather Channel
* Include <sys/select.h> on -stable instead of <sys/selinfo.h> to get thejhb2002-10-161-0/+4
| | | | | | definition of struct selinfo. Sponsored by: The Weather Channel
* Updated the CPU_DISABLE_CMPXCHG notes to warn users not to also enablepirzyk2002-10-161-1/+2
| | | | | | SMP with it. Requested by: Lars Eggert <larse@ISI.EDU>
* Be consistent about funtions being static.phk2002-10-166-19/+31
| | | | Spotte by: FlexeLint.
* Be consistent about functions being static.phk2002-10-166-6/+6
| | | | Spotted by: FlexeLint.
* The a.out md_coredump stuff isn't referenced anywhere anymore, andpeter2002-10-151-10/+0
| | | | hasn't been filled in for ages.. Nuked.
* Add a knob to turn on and off the CMPXCHG instruction on > i386 IA32 systems.pirzyk2002-10-142-1/+6
| | | | | | | This is most beneficial for vmware client os installs. Reviewed by: jmallet, iedowse, tlambert2@mindspring.com MFC After: never, -STABLE does not currently use this instruction
* Remove the P1003_1B kernel option; it is no longer used.mike2002-10-132-4/+2
|
* Add standards visibility conditionals. Change any uses of sigset_t tomike2002-10-131-4/+8
| | | | struct __sigset to avoid depending on objects from <sys/signal.h>.
* Fixed syntax errors and printf format errors.bde2002-10-121-3/+5
|
* Remove NO_GEOM option. No outstanding show-stoppers.phk2002-10-122-4/+0
| | | | Sponsored by: DARPA & NAI Labs.
* - Create a new scheduler api that is defined in sys/sched.hjeff2002-10-121-2/+3
| | | | | | | | | | - Begin moving scheduler specific functionality into sched_4bsd.c - Replace direct manipulation of scheduler data with hooks provided by the new api. - Remove KSE specific state modifications and single runq assumptions from kern_switch.c Reviewed by: -arch
* Change iov_base's type from `char *' to the standard `void *'. Allmike2002-10-111-1/+1
| | | | | uses of iov_base which assume its type is `char *' (in order to do pointer arithmetic) have been updated to cast iov_base to `char *'.
* - Add support for IPC_64 extensions into shmctl(2), semctl(2) and msgctl(2);sobomax2002-10-113-28/+218
| | | | | | | | | | | | | - add wrappers for mmap2(2) and ftruncate64(2) system calls; - don't spam console with printf's when VFAT_READDIR_BOTH ioctl(2) is invoked; - add support for SOUND_MIXER_READ_STEREODEVS ioctl(2); - make msgctl(IPC_STAT) and IPC_SET actually working by converting from BSD msqid_ds to Linux and vice versa; - properly return EINVAL if semget(2) is called with nsems being negative. Reviewed by: marcel Approved by: marcel Tested with: LSB runtime test
* Use d_thread_t for cdevsw functions instead of struct thread * so that itjhb2002-10-091-4/+4
| | | | is easier to share this code with 4-stable.
* Remove 'at' hints for npx and apm as both drivers have identify routinesjhb2002-10-091-4/+0
| | | | | | | that add an instance of themselves. The npx(4) driver doesn't even check the npx 'port' hint but hardcodes IO_NPX instead. The npx(4) driver also will use isa IRQ 13 (on x86, 8 on pc98) by default if no 'irq' hint is specified, so we don't need that hint either.
* Round out the facilty for a 'bound' thread to loan out its KSEjulian2002-10-092-4/+29
| | | | | | | | | | | | | | | | | | | | | | | | in specific situations. The owner thread must be blocked, and the borrower can not proceed back to user space with the borrowed KSE. The borrower will return the KSE on the next context switch where teh owner wants it back. This removes a lot of possible race conditions and deadlocks. It is consceivable that the borrower should inherit the priority of the owner too. that's another discussion and would be simple to do. Also, as part of this, the "preallocatd spare thread" is attached to the thread doing a syscall rather than the KSE. This removes the need to lock the scheduler when we want to access it, as it's now "at hand". DDB now shows a lot mor info for threaded proceses though it may need some optimisation to squeeze it all back into 80 chars again. (possible JKH project) Upcalls are now "bound" threads, but "KSE Lending" now means that other completing syscalls can be completed using that KSE before the upcall finally makes it back to the UTS. (getting threads OUT OF THE KERNEL is one of the highest priorities in the KSE system.) The upcall when it happens will present all the completed syscalls to the KSE for selection.
* o go ahead and route the interupt, even if it is supposedly unique.imp2002-10-072-14/+24
| | | | | | | | | | | there are some strange machines that seem to need this. o delete bogus comment. o don't use the the bios for read/writing config space. They interact badly with SMP and being called from ISR. This brings -current in line with -stable. # make the latter #ifdef on USE_PCI_BIOS_FOR_READ_WRITE in case we # need to go back in a hurry.
* Add conditionals to allow va_list to be defined in other headers.mike2002-10-061-0/+4
|
* o Add conditionals to allow va_list to be defined in other headers.mike2002-10-061-4/+10
| | | | | o Standardize on _MACHINE_STDARG_H_ to allow multiple header includes. o Restrict the definition of va_copy() to C99 environments.
* NB: This commit does *NOT* make GEOM the default in FreeBSDphk2002-10-053-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NB: But it will enable it in all kernels not having options "NO_GEOM" Put the GEOM related options into the intended order. Add "options NO_GEOM" to all kernel configs apart from NOTES. In some order of controlled fashion, the NO_GEOM options will be removed, architecture by architecture in the coming days. There are currently three known issues which may force people to need the NO_GEOM option: boot0cfg/fdisk: Tries to update the MBR while it is being used to control slices. GEOM does not allow this as a direct operation. SCSI floppy drives: Appearantly the scsi-da driver return "EBUSY" if no media is inserted. This is wrong, it should return ENXIO. PC98: It is unclear if GEOM correctly recognizes all variants of PC98 disklabels. (Help Wanted! I have neither docs nor HW) These issues are all being worked. Sponsored by: DARPA & NAI Labs.
* Fix building of minimal kernels without npx by rearranging ifdefs.deischen2002-10-051-11/+11
| | | | | | | Also fix some style bugs in surrounding code, and add a comment about FP state restoral that seems questionable. Submitted by: bde
* Fix namespace issues by using visibility conditionals frommike2002-10-051-1/+3
| | | | <sys/cdefs.h>.
* style(9) <machine/setjmp.h> headers so they look mostly the same.mike2002-10-041-5/+10
|
* New bus_dma interfaces for use by crypto device drivers:sam2002-10-042-0/+229
| | | | | | | | o bus_dmamap_load_mbuf o bus_dmamap_load_uio Test on i386. Known to compile on alpha and sparc64, but not tested. Otherwise untried.
* Fix a bogon in previous commit. bcopy() from the malloc'd memory that wejhb2002-10-041-1/+1
| | | | | already copied into, rather than doing the bcopy() from the userland pointer. "Oops."
* Add another temporary hack to allow running older i386 binaries.deischen2002-10-042-20/+18
| | | | | | | | This will be removed when new versions of syscalls sigreturn() and sigaction() are added (mini is working on this but is in the middle of a move). This should fix the problem of cvsupd dying.
* Remove duplicate make_dev() calls.mdodd2002-10-041-4/+0
|
* newbus & bus_space the mcd(4) driver.mdodd2002-10-043-2062/+0
|
* Alas, poor matcd, I knew ye well.scottl2002-10-047-3890/+0
| | | | | | | | It doesn't work. It cannot be made to work. Goodbye. X-MFC after: ASAP
* Minor style(9) changes.mdodd2002-10-041-9/+16
|
* Remove duplicate calls to make_dev().mdodd2002-10-041-4/+0
|
* Add 2 Ids for new ServerWorks host to PCI bridge chipset.iwasaki2002-10-021-0/+8
| | | | | | | | | These are still unknown name but these are working as well as the other ServerWorks chipset. Description strings should be corrected when the chipsets are known. MFC after: 1 week
* Some kernel threads try to do significant work, and the default KSTACK_PAGESscottl2002-10-022-17/+69
| | | | | | | | | | | | | doesn't give them enough stack to do much before blowing away the pcb. This adds MI and MD code to allow the allocation of an alternate kstack who's size can be speficied when calling kthread_create. Passing the value 0 prevents the alternate kstack from being created. Note that the ia64 MD code is missing for now, and PowerPC was only partially written due to the pmap.c being incomplete there. Though this patch does not modify anything to make use of the alternate kstack, acpi and usb are good candidates. Reviewed by: jake, peter, jhb
* Removed bits related to MBRs now that they have a proper home inbde2002-10-021-20/+0
| | | | <sys/diskmbr.h>.
* The pmap_prefault_pageorder[] array was initialize with wrong valuesphk2002-10-011-2/+2
| | | | | | | | due to a missing comma. I have no idea what trouble, if any, this may have caused. Pointed out by: FlexeLint
* Whitespace nit.jhb2002-10-011-1/+1
|
OpenPOWER on IntegriCloud