aboutsummaryrefslogtreecommitdiff
path: root/sys/i386
Commit message (Collapse)AuthorAgeFilesLines
* Set si_bsize_phys and si_bsize_max in all legacy CD drivers.Poul-Henning Kamp1999-09-015-0/+10
| | | | Notes: svn path=/head/; revision=50748
* Try to win back the "removal of most crufty code" trophy from markm:Poul-Henning Kamp1999-09-013-104/+33
| | | | | | | | | | | | Remove WD formatting code which has never worked in 386bsd or FreeBSD. Remove DIOCSSTEP and DIOCSRETRIES ioctls as well, they belong in history, along with the SMD disks. OK'ed by: bde Notes: svn path=/head/; revision=50744
* Try and commit the tun comment fix again; I have no idea why thereJordan K. Hubbard1999-09-011-1/+1
| | | | | | | | was a clash the last time, leading me to think that it had already been fixed. Notes: svn path=/head/; revision=50736
* Eliminate some magic numbers.Peter Wemm1999-09-011-4/+4
| | | | Notes: svn path=/head/; revision=50732
* ppp(1) -> ppp(8)Brian Somers1999-09-011-1/+1
| | | | Notes: svn path=/head/; revision=50719
* Make buffered acces to bdevs from userland controllable withPoul-Henning Kamp1999-08-312-2/+2
| | | | | | | a sysctl vfs.bdev_access. Notes: svn path=/head/; revision=50714
* C-NET(9N)C support (PC-98 only).Yoshihiro Takahashi1999-08-311-13/+42
| | | | | | | Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) Notes: svn path=/head/; revision=50697
* Make the error return from mem_range_attr_get actually do something usefulMike Smith1999-08-311-3/+5
| | | | | | | (return an error to the caller) Notes: svn path=/head/; revision=50677
* Check that there is memory range support before attempting to perform suchMike Smith1999-08-301-2/+14
| | | | | | | | | | | | | an operation, as a kernel client may not have previously checked the CPU type (it may not be able to). Also correct the function declaration style for the mem_range functions to match the rest of this file (oops). Submitted by: gibbs Notes: svn path=/head/; revision=50674
* Null commit to get last commit message recorded:Poul-Henning Kamp1999-08-301-0/+1
| | | | | | | Avoid name clash with dev_t member si_tty. Notes: svn path=/head/; revision=50671
* *** empty log message ***Poul-Henning Kamp1999-08-301-2/+2
| | | | Notes: svn path=/head/; revision=50669
* Wrong sleep addr passed to wakeup.Luoqi Chen1999-08-301-1/+1
| | | | | | | Submitted by: Vsevolod Lobko seva@sevasoft.alex-ua.com Notes: svn path=/head/; revision=50666
* Make bdev userland access work like cdev userland access unlessPoul-Henning Kamp1999-08-302-0/+6
| | | | | | | | | | | | | the highly non-recommended option ALLOW_BDEV_ACCESS is used. (bdev access is evil because you don't get write errors reported.) Kill si_bsize_best before it kills Matt :-) Use the specfs routines rather having cloned copies in devfs. Notes: svn path=/head/; revision=50623
* Converted the silly SAFTEY option into a new-style option by renaming it toBruce Evans1999-08-302-12/+0
| | | | | | | | | DIAGNOSTIC. Fixed an English style bug in the panic messages controlled by SAFETY. Notes: svn path=/head/; revision=50616
* ident GENERIC -> ident PCCARDMitsuru IWASAKI1999-08-291-1/+1
| | | | | | | Okayed by: hosokawa Notes: svn path=/head/; revision=50585
* Fix a braino: Linux minor device numbers are 8 bits wide and not 10.Marcel Moolenaar1999-08-291-1/+1
| | | | Notes: svn path=/head/; revision=50558
* Removed dysfunctional/defunct options KERNFS_DIAGNOSTIC,Bruce Evans1999-08-292-8/+2
| | | | | | | | | UMAPFS_DIAGNOSTIC and UNION_DIAGNOSTIC. Uncommented NULLFS_DIAGNOSTIC. It is as bogus as the above three but since it is already a new-style option it is easier to use it than to fix it. Notes: svn path=/head/; revision=50555
* Merge alpha and pc98 changes into i386 MBR handling code and replace allPoul-Henning Kamp1999-08-292-442/+1
| | | | | | | three copies with one copy in MI land. Notes: svn path=/head/; revision=50551
* Fix a missing '-1' in the size argument of copyout in getgroups. Spotted whileMarcel Moolenaar1999-08-291-6/+6
| | | | | | | reviewing the MFC in -stable. Notes: svn path=/head/; revision=50546
* Fix various trivial warnings from LINTPoul-Henning Kamp1999-08-283-5/+2
| | | | Notes: svn path=/head/; revision=50523
* We don't need to pass the diskname argument all over the diskslice/labelPoul-Henning Kamp1999-08-284-20/+20
| | | | | | | code, we can find the name from any convenient dev_t Notes: svn path=/head/; revision=50511
* Implement the OSS_GETVERSION ioctl. The version returned can be changed throughMarcel Moolenaar1999-08-282-0/+10
| | | | | | | | | | the sysctl variable `compat.linux.oss_version'. PR: 12917 Originator: Dean Lombardo <dlombardo@excite.com> Notes: svn path=/head/; revision=50500
* Regen after Id->FreeBSDPeter Wemm1999-08-2811-11/+11
| | | | Notes: svn path=/head/; revision=50482
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | Notes: svn path=/head/; revision=50480
* $Id$ -> $FreeBSD$Peter Wemm1999-08-28372-376/+376
| | | | Notes: svn path=/head/; revision=50477
* Add sysctl variables for the Linuxulator. These reside under `compat.linux' asMarcel Moolenaar1999-08-274-4/+284
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | discussed on current. The following variables are defined (for now): osname (defaults to "Linux") Allow users to change the name of the OS as returned by uname(2), specially added for all those Linux Netscape users and statistics maniacs :-) We now have what we all wanted! osrelease (defaults to "2.2.5") Allow users to change the version of the OS as returned by uname(2). Since -current supports glibc2.1 now, change the default to 2.2.5 (was 2.0.36). oss_version (defaults to 198144 [0x030600]) This one will be used by the OSS_GETVERSION ioctl (PR 12917) which I can commit now that we have the MIB. The default version number is the lowest version possible with the current 'encoding'. A note about imprisoned processes (see jail(2)): These variables are copy-on-write (as suggested by phk). This means that imprisoned processes will use the system wide value unless it is written/set by the process. From that moment on, a copy local to the prison will be used. A note about the implementation: I choose to add a single pointer to struct prison, because I didn't like the idea of changing struct prison every time I come up with a new variable. As a side effect, the extra storage is only needed when a variable is set from within the prison. This also minimizes kernel bloat when the Linuxulator is not used; both compiled in or as a module. Reviewed by: bde (first version only) and phk Notes: svn path=/head/; revision=50465
* Reference the correct gdt[] entry on SMP. Remove the `generation' flag,Jonathan Lemon1999-08-272-15/+13
| | | | | | | and always reload the selectors for every bios call. Notes: svn path=/head/; revision=50463
* - Set the correct value to va_line_width while in the ioctlKazutaka YOKOTA1999-08-271-6/+17
| | | | | | | FBIO_SETLINEWIDTH. Notes: svn path=/head/; revision=50446
* - Ouch! Do not assume the VESA BIOS will preserve the upper 16 bitsKazutaka YOKOTA1999-08-271-20/+20
| | | | | | | of EAX and EBX. Notes: svn path=/head/; revision=50445
* A few style changes (fixes hopefully) and some more tidying up. Fix (?)Peter Wemm1999-08-271-101/+104
| | | | | | | the volatile cast warnings. Notes: svn path=/head/; revision=50442
* Don't return 0 for an unknown ioctl (!). This was breaking ppp(8).Peter Wemm1999-08-271-10/+9
| | | | | | | Slight tidy up while here. Notes: svn path=/head/; revision=50435
* Use .p2align to ensure consistant a.out/elf alignment. I'd have usedPeter Wemm1999-08-251-6/+6
| | | | | | | | SUPERALIGN_TEXT, but this is inline assembler and after cpp has run. Inspired by bde's comments on linux_locore.s. Notes: svn path=/head/; revision=50379
* It would help if things that MUST be 32 bit aligned were really 32 bitPeter Wemm1999-08-251-3/+3
| | | | | | | | | aligned. If I recall correctly, this is to ensure apic_imen can be accessed in a single bus cycle. Also, use TEXT_ALIGN rather than a .align 2 (which means 2 byte align on ELF and 4 byte align on a.out) Notes: svn path=/head/; revision=50378
* Replace ".align 2" with "ALIGN_TEXT" as per recent discussion re: the linuxMark Newton1999-08-251-2/+2
| | | | | | | | | emulator. Suggested by: bde Notes: svn path=/head/; revision=50377
* Use ALIGN_TEXT macro for alignment to avoid ambiguity.Marcel Moolenaar1999-08-251-2/+1
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=50363
* Fix linux_newlstat in that it doesn't return the attributes of its containingMarcel Moolenaar1999-08-251-117/+104
| | | | | | | | | | | directory. Also, update arguments of NDINIT for both newstat and newlstat. While I'm at it, fix style bugs in all {s|ls|fs}tat syscalls. Reported by: bde Notes: svn path=/head/; revision=50356
* Fix {g|s}etgroups semantics. We use cr_groups[0] to hold egid. This means thatMarcel Moolenaar1999-08-251-53/+70
| | | | | | | | | | | | egid will be twice in the set and that setting cr_groups[0] will change egid. This is simply solved by ignoring cr_groups[0]. That is; linux_getgroups does not return cr_groups[0] and linux_setgroups does not touch it. Noticed by: bde Brought to my attention by: sheldonh Notes: svn path=/head/; revision=50350
* Fix lingo: 'is not implemented or obsoleted' is not the same as 'is obsoletedMarcel Moolenaar1999-08-251-2/+2
| | | | | | | or not implemented'. Notes: svn path=/head/; revision=50348
* Change all UNIMPL syscalls to STD and add them to linux_dummy. Now we alwaysMarcel Moolenaar1999-08-256-77/+247
| | | | | | | | | | | | | | | know if and when an unimplemented or obsoleted syscall is being used. Make the message more end-user friendly. And as long as we're here, rename some unimplemeted syscalls (linux_phys -> linux_umount2, linux_vm86 -> linux_vm86old, linux_new_vm86 -> linux_vm86). Change prototype for linux_newuname from `struct linux_newuname_t *' into `struct linux_new_utsname *'. This change is reflected in linux.h and linux_misc.c. Notes: svn path=/head/; revision=50345
* Change all UNIMPL syscalls to STD and add them to linux_dummy. Now we alwaysMarcel Moolenaar1999-08-251-86/+87
| | | | | | | | | | | | | | | | | know if and when an unimplemented or obsoleted syscall is being used. Make the message more end-user friendly. And as long as we're here, rename some unimplemeted syscalls (linux_phys -> linux_umount2, linux_vm86 -> linux_vm86old, linux_new_vm86 -> linux_vm86). Change prototype for linux_newuname from `struct linux_newuname_t *' into `struct linux_new_utsname *'. This change is reflected in linux.h and linux_misc.c. Lastly, make line-continuation and indentation more uniform. Notes: svn path=/head/; revision=50344
* Fix stack misalignment for Linux binaries caused by `linux_sigcode' not beingMarcel Moolenaar1999-08-251-1/+1
| | | | | | | | | | a multiple of 4 bytes in size. This solves the recent SIGBUS errors for glibc2.1 configurations. Explained by: bde Notes: svn path=/head/; revision=50343
* Rename 'bios_jmp' to 'bios16_jmp' to make it clear what it's related to.Mike Smith1999-08-252-7/+7
| | | | Notes: svn path=/head/; revision=50337
* Use the far jump for the base of the page arithmatic rather than thePeter Wemm1999-08-252-6/+7
| | | | | | | | | | calling function, otherwise Bad Things Happen(tm) when bios16_call is not in the same page as bios_jmp. Reviewed by: msmith Notes: svn path=/head/; revision=50336
* Remove unneeded prototypes.Poul-Henning Kamp1999-08-241-8/+1
| | | | Notes: svn path=/head/; revision=50315
* Work around a bad design in some PnP BIOS code whereby the BIOS can reachMike Smith1999-08-241-2/+11
| | | | | | | | off the top of our constructed stack segment while it's trying to copy a maximally-sized PnP argument frame around. Notes: svn path=/head/; revision=50313
* Cosmetic: Correct the Id string.Alan Cox1999-08-241-1/+1
| | | | | | | Submitted by: Peter Jeremy <jeremyp@gsmx07.alcatel.com.au> Notes: svn path=/head/; revision=50303
* Cast pointers to uintptr_t instead of casting them to u_long, and/or viceBruce Evans1999-08-241-2/+2
| | | | | | | versa. Cosmetic. Notes: svn path=/head/; revision=50275
* Fixed a misplaced cast to uintptr_t. Cosmetic.Bruce Evans1999-08-242-14/+8
| | | | | | | Use device_get_nameunit() instead of rolling our own. Notes: svn path=/head/; revision=50271
* `bootdev' is an ordinary u_long, so don't cast it to a pointer to print it.Bruce Evans1999-08-231-4/+3
| | | | | | | | | gcc warns about the cast on i386's with 64-bit longs. Print `bootdev' in all cases when we bail out because it is unreasonable. Notes: svn path=/head/; revision=50268
* Implement a version of s_lock_try that doesn't cause the next s_lockAlan Cox1999-08-231-20/+20
| | | | | | | | call to panic when SL_DEBUG is set. (SL_DEBUG is currently set by default.) Notes: svn path=/head/; revision=50262