summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* $Id$ -> $FreeBSD$peter1999-08-287-7/+7
|
* Correction: uid -> gid (comment)green1999-08-271-2/+2
|
* $Id$ -> $FreeBSD$peter1999-08-274-4/+4
|
* Fix path for miibus_if.m (mii > dev/mii);wpaul1999-08-271-3/+3
|
* Make some cleanups related to miibus.wpaul1999-08-271-47/+21
|
* Add sysctl variables for the Linuxulator. These reside under `compat.linux' asmarcel1999-08-2713-16/+583
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Update these Makefiles; add mlphy and tlphy to the mii module, addwpaul1999-08-272-2/+8
| | | | miibus_if.h to tl module's dependencies.
* Reference the correct gdt[] entry on SMP. Remove the `generation' flag,jlemon1999-08-274-30/+26
| | | | and always reload the selectors for every bios call.
* Convert the ThunderLAN driver to miibus. This took me a while because Iwpaul1999-08-272-878/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | had to get the ML 6692 PHY driver working correctly, which is harder than it sounds. "Bitrate" ThunderLAN devices should still be supported (i.e the older 10Mbps Netflex 3/P, which use the TNETE110 chip that has no MII support). The ThunderLAN has an internal PHY which makes things a little complicated, but these are the basic rules: - For devices with just the ThunderLAN, the internal PHY is used to provide 10baseT, and 10base5/10baseT support. Autonegotiation will work, but only with 10baseT links. The only thing that really gets negotiated is whether the link is full or half duplex. - For devices with the ThunderLAN and an external 10/100 PHY (like the Compaq Netelligent 100Mbps cards, or the internal Netflex 3/P with 100Mbps upgrade daughter card), the external PHY is used for 10baseT and 100baseTX modes. The internal PHY is still used to support 10base5/10base2, though you have to select them manual with ifconfig. - For devices with the ThunderLAN and the ML6692 PHY, both the internal and external PHYs are used, though it will appear as though the 6692 PHY will be used to support 10baseT and 100baseTX modes. In reality, the internal PHY will be used for 10baseT, but this fact will be hidden from the user. The 10base5/10base2 modes can also be selected manually as with above.
* Add miibus drivers for the ThunderLAN internal PHY and the Micro Linearwpaul1999-08-275-1/+975
| | | | | | | | | ML6692 PHY. The Micro Linear driver is my own; the ThunderLAN driver is a port of the NetBSD driver with various hacks. The ML driver is necessary to support the Olicom OC-2326 ThunderLAN-based NIC. Also regenerated miidevs.h to pick up the proper 'obtained from' revision string.
* Add FIODTYPE ioctl for getting d_flags (type) info on a device.green1999-08-272-2/+9
| | | | Okayed by: phk
* Fix the child's return path from fork so that fork will return 0gallatin1999-08-273-12/+12
| | | | | | | | | in the child. This corrects a problem where linux/alpha binaries see the child's return value of fork as the parent's pid. This happens because linux/alpha binaries apparently check the return value directly, rather than looking for a non-zero value in a4, as *BSD & OSF/1 do. Reviewed by:dfr@nlsystems.com
* - Retain the previous vty and history buffers when setting upyokota1999-08-271-8/+5
| | | | | the graphics mode. This was the behavior prior to syscons.c rev 1.278, but broken in scvidctl.c rev 1.1.
* - Set the correct value to va_line_width while in the ioctlyokota1999-08-271-6/+17
| | | | FBIO_SETLINEWIDTH.
* - Ouch! Do not assume the VESA BIOS will preserve the upper 16 bitsyokota1999-08-271-20/+20
| | | | of EAX and EBX.
* A few style changes (fixes hopefully) and some more tidying up. Fix (?)peter1999-08-272-202/+208
| | | | the volatile cast warnings.
* Remove some vestiges of devfs direct calls.julian1999-08-273-18/+3
|
* Add PHK's make_dev() into more places where DEVFS used to bejulian1999-08-2719-368/+112
| | | | | | | | | hooked in directly. Alpha change checked by: Matthew Jacob <mjacob@feral.com> i4b ISDN changes checked by: Udo Schweigert <ust@cert.siemens.de> and Hellmuth Michaelis <hm@hcs.de> PC98 changes checked by: Takahashi Yoshihiro <nyan@FreeBSD.org>
* Don't return 0 for an unknown ioctl (!). This was breaking ppp(8).peter1999-08-272-20/+18
| | | | Slight tidy up while here.
* Add readonly OID ``net.inet.tcp.tcbhashsize'' so it is possible tojlemon1999-08-262-2/+12
| | | | discover the size of the TCB hashtable on a running system.
* Don't follow symlinks on coredumps.dima1999-08-262-6/+6
| | | | Reviewed by: dillon && security-officer
* Simplify the handling of VCHR and VBLK vnodes using the new dev_t:phk1999-08-2623-630/+160
| | | | | | | | | | | | | | | | | | | | | | | | | | | Make the alias list a SLIST. Drop the "fast recycling" optimization of vnodes (including the returning of a prexisting but stale vnode from checkalias). It doesn't buy us anything now that we don't hardlimit vnodes anymore. Rename checkalias2() and checkalias() to addalias() and addaliasu() - which takes dev_t and udev_t arg respectively. Make the revoke syscalls use vcount() instead of VALIASED. Remove VALIASED flag, we don't need it now and it is faster to traverse the much shorter lists than to maintain the flag. vfs_mountedon() can check the dev_t directly, all the vnodes point to the same one. Print the devicename in specfs/vprint(). Remove a couple of stale LFS vnode flags. Remove unimplemented/unused LK_DRAINED;
* Initialize the dev->si_bsize fields.phk1999-08-262-2/+10
| | | | | Submitted by: tegge Reviewed by: phk
* Fix DMA macros to work on alpha.dfr1999-08-261-0/+4
|
* Don't schedule the next transaction if the pipe is being aborted.dfr1999-08-261-1/+0
|
* Properly re-enable the transmitter in the TX error handler.wpaul1999-08-261-5/+3
|
* Handle buses with multiple PHYs correctly.wpaul1999-08-261-5/+3
|
* Change asf function to use the new name of the list in kern_linker.c.grog1999-08-261-1/+1
| | | | See revision 1.35 of sys/kern/kern_linker.c.
* read_drive: Remove references to vp->v_lastr, which is going away.grog1999-08-261-16/+3
| | | | Reviewed-by: dillon
* complete_rqe: explicitly reinitialize b.b_iodone. This shouldn't havegrog1999-08-261-3/+4
| | | | | | | changed, but we've seen some weird cases of b_iodone being NULL, and they don't make any sense. Suffered-by: Bernd Walter <ticso@cicely.de>
* config_plex: don't allocate a rangelock struct.grog1999-08-262-8/+3
| | | | | | | | lockrange: correctly expand rangelock struct, including expanding a null struct. Previously lockrange would attempt to lock a NULL pointer under these circumstances. Reported-by: Ian Freislich <iang@uunet.co.za>
* Use .p2align to ensure consistant a.out/elf alignment. I'd have usedpeter1999-08-252-12/+12
| | | | | SUPERALIGN_TEXT, but this is inline assembler and after cpp has run. Inspired by bde's comments on linux_locore.s.
* It would help if things that MUST be 32 bit aligned were really 32 bitpeter1999-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)
* Replace ".align 2" with "ALIGN_TEXT" as per recent discussion re: the linuxnewton1999-08-251-2/+2
| | | | | | emulator. Suggested by: bde
* Make a place to store the devfs hook for the block device, as the samejulian1999-08-253-5/+6
| | | | specinfo is used to identify both raw and block version sof a device.
* Use ALIGN_TEXT macro for alignment to avoid ambiguity.marcel1999-08-251-2/+1
| | | | Pointed out by: bde
* what is a devuce?mjacob1999-08-252-4/+4
|
* Fix linux_newlstat in that it doesn't return the attributes of its containingmarcel1999-08-252-234/+208
| | | | | | | | 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
* Fix {g|s}etgroups semantics. We use cr_groups[0] to hold egid. This means thatmarcel1999-08-252-106/+140
| | | | | | | | | 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
* Fix lingo: 'is not implemented or obsoleted' is not the same as 'is obsoletedmarcel1999-08-252-4/+4
| | | | or not implemented'.
* Introduce vn_isdisk(struct vnode *vp) function, and use it to test for diskness.phk1999-08-2512-71/+58
|
* Add a couple of missing but unimportant break; statements.phk1999-08-251-1/+3
|
* Change all UNIMPL syscalls to STD and add them to linux_dummy. Now we alwaysmarcel1999-08-259-110/+304
| | | | | | | | | | | | 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.
* Change all UNIMPL syscalls to STD and add them to linux_dummy. Now we alwaysmarcel1999-08-252-172/+174
| | | | | | | | | | | | | | 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.
* Fix stack misalignment for Linux binaries caused by `linux_sigcode' not beingmarcel1999-08-251-1/+1
| | | | | | | a multiple of 4 bytes in size. This solves the recent SIGBUS errors for glibc2.1 configurations. Explained by: bde
* Some very minor changes to the ISA dma code.dfr1999-08-251-3/+3
|
* Rename 'bios_jmp' to 'bios16_jmp' to make it clear what it's related to.msmith1999-08-253-10/+10
|
* Use the far jump for the base of the page arithmatic rather than thepeter1999-08-253-9/+10
| | | | | | | calling function, otherwise Bad Things Happen(tm) when bios16_call is not in the same page as bios_jmp. Reviewed by: msmith
* Make DEVFS use PHK's specinfo struct as the source of dev_t and devsw.julian1999-08-256-135/+127
| | | | | | | | In lookup() however it's the other way around as we need to supply the dev_t for the vnode, so devfs still has a copy of it stashed away. Sourcing it from the vnode in the vnops however is useful as it makes a lot of the code almost the same as that in specfs.
* Make DEVFS ops reflect some of the changes that have recently occured in thejulian1999-08-251-60/+173
| | | | | | | | | | | specfs version of the same ops. Merging with phk's dev_t changes is not yet complete. i.e. devfs still uses it's own devsw pointer rather than following devsw(a_vp->v_rdev), and it's own copy of the dev_t. This fixes some broken actions re: syscons and DEVFS due to bitrot in devfs vops.
OpenPOWER on IntegriCloud