Commit Graph

21887 Commits

Author SHA1 Message Date
fvdl ede1a3fc5b Make this compile again. 1998-03-02 17:58:34 +00:00
drochner e3d8e9c72b enable compatibility for old partition ID per default 1998-03-02 17:07:53 +00:00
ragge 8e2874bf64 Support for UVM on VAXen. 1998-03-02 17:00:00 +00:00
drochner 3bb9e75863 Change MBR partition type for NetBSD to 0xa9, like the i386 port.
Provide compatibility via COMPAT_386BSD_MBRPART.
1998-03-02 16:18:17 +00:00
bouyer 6d339338e6 Close kern/5077: When DIAGNOSTIC is defined, don't complain about
bad magic numbers at a mount attempt. A message is still printed when the
magic number is OK, but the version number or the block size is bad.
Patch from Soren S. Jorvang, but different from the one in the PR.
1998-03-02 16:13:42 +00:00
ross 03169f0089 Second part of cdev_decl() migration. Declare cputype variable.
Add config info for a12 switch driver and console driver.
1998-03-02 08:04:04 +00:00
ross 41a61f7c9e Update interrupt name table for a12 crossbar. 1998-03-02 07:47:52 +00:00
ross b8d5ca6c78 Centralize cdev_decl() for these MI drivers + a12dc in machine/conf.h (cgd)
(This does not introduce any config or option dependencies.)
1998-03-02 07:44:18 +00:00
ross ff94450f84 Use the more consistent register field names & add ctags(1) keys. 1998-03-02 07:07:41 +00:00
ross 6e6f663204 Rewrite of interrupt dispatch logic. Add ctags(1) keys for *a12*.h files. 1998-03-02 07:03:20 +00:00
ross 13aeff8570 Fix attachment message. 1998-03-02 06:59:38 +00:00
ross 1ada245647 Support attachment of xb and a12dc, define most of the remaining
core logic register fields.
1998-03-02 06:56:16 +00:00
ross 469f9b6126 Clean up attachment code and prototypes. 1998-03-02 06:53:34 +00:00
mikel dfb1317f8a remove some lint; from Thorsten Frueauf in PR 5085.
also made one implicit int declaration explicit.
1998-03-02 06:20:16 +00:00
mikel 3119a26ccd s/CFLAGS/CPPFLAGS/ 1998-03-02 06:17:29 +00:00
thorpej 7a571c643b Rename a few macros to better describe what they are:
- kvtol1pte() -> l1pte_index()
- vatoste() -> l2pte_index()
- vatopte() -> l3pte_index()
1998-03-02 00:49:01 +00:00
thorpej 54bb4f9e6e Rewrite pmap_enter() to have a more sane structure, useful for when
page table page management is rewritten.
1998-03-02 00:22:54 +00:00
fvdl 25a2f5ee46 Put #if NCPU > 1 around initialization of simple_locks too, to avoid
compile errors.
1998-03-01 23:19:01 +00:00
fvdl d201db498e Remove accidentally enabled lfs_mountroot from vfsops struct. 1998-03-01 22:16:39 +00:00
fvdl 8c7c2ea123 Remove accidentally enabled mfs_mountroot from vfsops struct. 1998-03-01 22:16:01 +00:00
augustss 1918ca1e5b Change ie[01] to ef, ai, and ix so that these kernels can be used again. 1998-03-01 20:45:26 +00:00
veego 190f3ca410 Add two includes for the 'struct nfs_args' so it compiles again. 1998-03-01 17:37:32 +00:00
fvdl 46cd3245ee 1.3D -> 1.3E because of Lite2 import (was already done in sys/param.h,
forgot this one)
1998-03-01 16:32:33 +00:00
fvdl 7ba6a2daac Remove extraneous files from Lite2 merge. 1998-03-01 13:45:28 +00:00
fvdl 0485953099 Make this compile after the lite2 merge. 1998-03-01 13:22:55 +00:00
ross 94ae870894 Compile post-lite2 with #ifndef DIAGNOSTIC 1998-03-01 09:51:29 +00:00
ross 97251024c0 Compile post-lite2 when #ifndef DIAGNOSTIC 1998-03-01 09:35:52 +00:00
ross 4ebd177543 Remove the A12 from the rogue's gallery of the promcons-addicted. 1998-03-01 08:17:36 +00:00
ross 39254d4d4b Poll console at 50 Hz, not 1024 Hz! (4 tlb and imb coherency ops per poll
make this exceedingly expensive even on an alpha)  Note: only 3 systypes
still use promcons.
1998-03-01 07:40:11 +00:00
ross 331fee623e Sweep up some miscellaneous leftover lite2 integration shrapnel. 1998-03-01 07:15:39 +00:00
ross c6b14e94ad Add new type number received from IANA. Also, note the new home of
the IANA master list, post RFC1573.
1998-03-01 07:13:41 +00:00
fvdl 78447a3cfd Regen. 1998-03-01 02:29:59 +00:00
fvdl 9810527f1c Add NetBSD Id that got lost. 1998-03-01 02:27:49 +00:00
fvdl e5bc90f40c Merge with Lite2 + local changes 1998-03-01 02:20:01 +00:00
fvdl 1ad6fdb33f Some FSs have their *mount.h files exported now, make sure that they are
copied to the include dir.
1998-03-01 02:15:35 +00:00
fvdl e8d05f0741 Import 4.4BSD-Lite2 1998-03-01 02:12:49 +00:00
fvdl b50e39fa45 Import 4.4BSD-Lite for reference 1998-03-01 02:09:33 +00:00
is eb3cda883b Probe for the native DraCo (rekeycaped MF-II) keyboard, instead of guessing
it from the QuickLogic chip version byte.
If found, switch it to non-autorepeat mode (which seems to avoid the race
condition which made my keyboard driver / X server lose state under heavy
interupt load).
If not found, assume an Amiga keyboard on CIA-A.
XXX We should probe for the presence of the CIAs on the DraCo.
1998-02-28 21:53:15 +00:00
pk 1fe6513796 Remove extraneous `$Id$' lines. 1998-02-28 20:43:28 +00:00
pk c0e247427a This driver is replaced by three i82586 front-end drivers: `ix', `ef' and `ai'. 1998-02-28 20:42:43 +00:00
veego b6ca941200 Sync it with the i386 version so lint doesn't complains about an syntax
error for __warn_references.
1998-02-28 12:20:25 +00:00
ragge ad1f451760 Move the boot program higher up in memory; to allow loading of bigger kernels. 1998-02-28 12:10:13 +00:00
ross 2170c2a46d Force elf symbol sections to an addressable boundary. 1998-02-28 10:38:55 +00:00
cgd 18a1481f7a Use NFS_BOOT_DHCP rather than NFS_BOOT_BOOTP. The former is more
flexible, and the boot blocks use DHCP already(!!!) and it'd be good
for the kernel to be consistent with them.
1998-02-28 02:01:32 +00:00
cgd 4ae42be026 be a bit more clear about what protocols will be tried in the
BOOTP/DHCP case.
1998-02-28 01:45:01 +00:00
pk d22f956657 Remove `_NEW_I82586'. 1998-02-28 01:15:51 +00:00
pk 5bc7459ebd Remove `NEW_I82586' 1998-02-28 01:14:57 +00:00
pk 9698950530 * Remove `_NEW_I82586'.
* KNF.
* erase ghost spaces and tabs.
1998-02-28 01:14:15 +00:00
pk 472a1973af Remove `_NEW_I82586' tag; all drivers using this file have been converted. 1998-02-28 01:07:45 +00:00
thorpej ba3ddd48ad Move the code that enters and removes entries from the pv_table into
functions pmap_enter_pv() and pmap_remove_pv().
1998-02-28 01:07:05 +00:00
pk 32ad582965 Replace monolithic `ie0' and `ie1' driver by `ef', `ix', `ai' front-ends. 1998-02-27 23:57:31 +00:00
pk a3a9cbc8c5 Replace the `ie' driver by three separate front-ends: `ix', `ef' and `ai'. 1998-02-27 23:54:16 +00:00
pk 22a8b1ae89 AT&T/StarLan i82586 front-end driver from Rafal Boni. 1998-02-27 23:52:34 +00:00
pk 82153cc305 3Com/3C507 i82586 front-end driver from Rafal Boni. 1998-02-27 23:51:52 +00:00
pk 9bb4839afd EtherExpress/16 i82586 front-end driver from Rafal Boni. 1998-02-27 23:50:51 +00:00
thorpej 9bbe89ea3f Garbage-collect the kpt_page stuff; it was basically unused in this
pmap, and isn't applicable to how dynamically allocated kernel page
tables will work on the Alpha.
1998-02-27 22:25:25 +00:00
thorpej 11490942aa Nuke memcpy() from here; it's in libkern. 1998-02-27 21:38:31 +00:00
thorpej faf1155de5 Revamp pv_table management:
- Make pv_table an array of struct pv_head's, which contain LIST_HEADs
  for the pv_entry's, as well as page attributes (mod, ref, ptpage).
- Use <sys/queue.h> to manipulate pv_entry lists.
- Fix several obvious bugs in pmap_collect_pv().
- Use K0SEG to access pv_page's.
1998-02-27 19:39:03 +00:00
thorpej 5ec2d93c1e Fix a typo. 1998-02-27 19:13:04 +00:00
cgd 84fad9aba3 make it clear that the "old BSD partition ID!" message is a warning (by
prefacing it with "WARNING: ").
1998-02-27 18:57:40 +00:00
mycroft 64812254d6 Remove some duplicate definitions. 1998-02-27 13:17:25 +00:00
mycroft 8e5dbddc19 Regen. 1998-02-27 11:46:25 +00:00
mycroft 402ddee537 Add Macronix MX98713. 1998-02-27 11:45:51 +00:00
scottr e3dfc809c6 Remove dpme.h, as it's no longer necessary. 1998-02-27 09:17:18 +00:00
scottr c1ea2b45ff Integrate Macintosh partition map and driver descriptor map definitions. 1998-02-27 09:15:21 +00:00
thorpej f17bbcfffa Changes necessitated by the fact that all pmaps have their own level 1
page tables: use curpcb to determine which level 1 map defines the
current VM context, and use that level 1 map when mapping and unmapping
the PROM.
1998-02-27 04:03:00 +00:00
thorpej c4e7c88520 Step 1 of the Grand Alpha Pmap Rototill:
- Clean up pmap_bootstrap() some, and make a slight change to how the
  PROM mappings are saved.
- Give each pmap its own level 1 page table, rather than sharing a global
  level 1 page table.  This will eventually allow for Very Large user
  address spaces.
- Keep a list of all pmaps, so that when kernel level 2 page tables are
  allocated, all level 1 tables may be updated.
- Add a couple of functions for allocating and freeing page table pages.
- Add a few comments about ASN allocation.
1998-02-27 03:59:58 +00:00
thorpej 5d56ce57ba Several changes related to all pmaps having their own level 1
page table:
- Update the current hwpcb pointer in the SWITCH_CONTEXT macro, so that
  we know it's always correct.
- Optimize cpu_switch(): if we're switching to ourselves, skip the
  actual context swap.
- Clean up some comments and remove some code rendered obsolete by
  the fact that address spaces are now selected by switching to a
  new level 1 page table.
1998-02-27 03:53:49 +00:00
thorpej cb6972d4d3 Implement alpha_pal_swpctx(). 1998-02-27 03:44:53 +00:00
scottr f5f997d1dc Bump down maxusers to a reasonable value on a machine with 8MB. 1998-02-27 01:33:14 +00:00
gwr 0228ba8d86 Make the messages printed by _nodb_trap() more helpful. 1998-02-26 20:31:13 +00:00
gwr eeb690065b Use trap 14 as PROM abort 1998-02-26 19:30:59 +00:00
gwr 23b16936e8 Fix build with NFB=0 1998-02-26 16:01:18 +00:00
perry edac6b7ff2 define kernel only inline static functions only #ifdef _KERNEL 1998-02-26 01:57:30 +00:00
thorpej 8d0d59284b Use allocsys(), mips_init_msgbuf(), and mips_init_proc0(), plus small
changes for MACHINE_NEW_NONCONTIG.
1998-02-25 23:31:29 +00:00
thorpej d6085102e9 DECstations have one physical memory segment. 1998-02-25 23:31:03 +00:00
thorpej b3c5864223 Use allocsys(), mips_init_msgbuf(), and mips_init_proc0(), plus small
changes for MACHINE_NEW_NONCONTIG.
1998-02-25 23:30:33 +00:00
thorpej c2e692ff93 PICA has one physical memory segment. 1998-02-25 23:30:11 +00:00
thorpej 330e4f8d24 Fix a few screwups that made it impossible to config these kernels. 1998-02-25 23:29:49 +00:00
thorpej 477d46784e Use allocsys(), mips_init_msgbuf(), and mips_init_proc0(), plus small
changes for MACHINE_NEW_NONCONTIG.
1998-02-25 23:28:25 +00:00
thorpej d184112bd5 NEWS has one physical memory segment. 1998-02-25 23:27:20 +00:00
thorpej da6458bfb4 Implement and switch to MACHINE_NEW_NONCONTIG. 1998-02-25 23:26:41 +00:00
thorpej 4673e0c339 Prototype allocsys(), mips_init_msgbuf(), and mips_init_proc0(). 1998-02-25 23:25:16 +00:00
thorpej 469520ccd4 Pull some code out of N mach_init() functions, and place it in a
common place:
- allocsys(), which computes space for and assigns addresses
  to kernel data structures at boot time.
- mips_init_msgbuf(), which initializes the error message
  buffer at the end of core.
- mips_init_proc0(), which initializes the U-area for proc0
  and nullproc.
1998-02-25 23:24:35 +00:00
perry 398e0f8c64 add /* LINTLIBRARY */ to supress lots of "unused function" warnings
from lint.
1998-02-25 22:36:45 +00:00
perry 1ed8ea9966 note second parm of sysarch() is now void *, + trivial KNF, etc. 1998-02-25 21:41:55 +00:00
perry a5385186b1 regen 1998-02-25 21:30:36 +00:00
perry 56c01cbd82 change second parm of sysarch() from char * to void * 1998-02-25 21:24:56 +00:00
christos 66f05f52ec Add another 56K modem. 1998-02-25 13:18:50 +00:00
drochner 3ee0e26f7d document 3c900 TPO support, add comments 1998-02-25 12:19:12 +00:00
drochner 41bbe0c360 3c900 TPO works too, as reported by Feico Dillema <dillema@acm.org>. 1998-02-25 12:15:49 +00:00
ross 081231b1ad Add dummy }} after comsoft() to keep ctags(1) bashing on. 1998-02-25 08:32:35 +00:00
chuck e308ffd825 compute st_map size properly 1998-02-24 19:01:59 +00:00
chuck cbd05b1537 be consistent about offsets in kernel objects. vm_map_min(kernel_map)
should always be the base [fixes problem on m68k detected by jason thorpe]

add comments to uvm_km.c explaining kernel memory management in more detail
1998-02-24 15:58:09 +00:00
leo 25811c51ea Declare 'fd_cd'. 1998-02-24 13:02:54 +00:00
leo e4b379c7c1 Only try to initialize the PCI-bus when NPCI > 0. 1998-02-24 13:02:06 +00:00
thorpej 89d112dd92 Switch this kernel to UVM. 1998-02-24 11:05:37 +00:00
thorpej 7027d87a18 Duh! Use uvm_km_valloc_wait(), NOT uvm_km_zalloc() to allocate user page
tables.  (Thanks for pointing that out, Chuck!)
1998-02-24 07:42:05 +00:00
thorpej 58509e699f Add support for UVM. 1998-02-24 07:38:01 +00:00
mycroft d36067b120 Forcibly NUL-terminate the path name, just to be sure. 1998-02-24 07:14:17 +00:00
mycroft 64d86b5934 Minor style change. 1998-02-24 07:10:39 +00:00
scottr a316576397 A change ripped out of i386/machdep.c:
--
When allocating bus space in bus_space_alloc(), use EX_FAST to find
the first fit in the map.  The previous behavior violated the principle
of least surprise (especially annoying when you're debugging space allocation
problems).  Suggested by Chris Demetriou.
1998-02-24 07:06:39 +00:00
scottr 15b125de34 ROM vectors and related information needed to support the Performa 588
(and quite probably all LC/Performa 580/588 models).  Thanks to
Yasuhiro Endoh for providing the necessary data.
1998-02-24 07:00:14 +00:00
scottr 6f382db074 The code compiled in by the MADHATTER option is now standard issue. While
here, do a bunch of KNF, particularly whitespace issues.
1998-02-24 05:59:34 +00:00
mycroft 78875d069d ofd -> ofdisk 1998-02-24 05:49:28 +00:00
mycroft 6bab18f8f1 Catch up with changes in dev/ofw. Add mainbus. 1998-02-24 05:45:51 +00:00
mycroft 310f6fefc3 Several things:
Clean up the name space here a bit.
Add a `busname' element to struct ofprobe (now struct ofbus_attach_args), and
check against it.
Nuke `ofroot'.
Rename the `openfirm' attribute to `ofbus'.
1998-02-24 05:44:39 +00:00
cgd ccfe537e97 don't include <machine/pio.h>. It's unneeded here now (this code
uses the bus_space_* interfaces), and therefore unwanted.
1998-02-24 02:12:09 +00:00
thorpej 7198bb7811 Set the VM page size after clearing the BSS segment. 1998-02-23 20:05:09 +00:00
chuck 5ad9218203 fix uvm-related protection error: we can't write protect the
vmcmd_map_readvn() area until after we do vn_rdwr().  should fix
problem reported by sean doran.
1998-02-23 18:53:22 +00:00
thorpej a3a297cc40 Two purely cosmetic whitespace changes. 1998-02-23 18:45:44 +00:00
drochner 4f80f2803f Add a diagnostic panic() to catch attempts to call vm_page_unwire() with
an unmanaged page argument. This can lead to unpredictable results,
depending on the pmap interface (ie, MACHINE_[NEW_]NONCONTIG).
1998-02-23 14:37:00 +00:00
drochner 49c1580874 -make compile without BROKEN_INDIRECT_CONFIG
-don't include <machine/pio.h>
1998-02-23 14:12:18 +00:00
scottr c285c9fbfa Remove the limit on bufpages we picked up from i386 in 1993
(which was removed from that port not long after), as it's not
an especially meaningful test.

Also, bump the number of swap buffers allocated to 3/4 the amount
of file i/o buffers (taken from the Amiga port).
1998-02-23 07:24:44 +00:00
mycroft ee0b9799e7 Fix layout of powerpc_saved_state; copy in saved MSR. 1998-02-23 03:23:05 +00:00
mycroft 79f597383e Fix layout of powerpc_saved_state. 1998-02-23 03:22:16 +00:00
mycroft d387a356c8 Clean up, add physadr. 1998-02-23 03:21:40 +00:00
scottr c1a185be97 Mostly KNF. There's still a bunch of ugly comments and some problems
with long lines, but this is at least a big step in the right direction.
1998-02-23 03:11:26 +00:00
scottr e50238f77a Rewritten II-series ADB code from John Wittkoski. Also, a whole
lotta KNF.
1998-02-23 03:09:40 +00:00
mycroft d56d21012f Slight rearrangement. 1998-02-23 01:54:26 +00:00
is 85c6760e2d Initialize keyboard structures also from kbdopen(), if necessary.
To do this, move the flag variable to kbdenable().
This will make kernels with serial console provice a working keyboard driver.
1998-02-23 00:47:30 +00:00
mark 1876c03a83 Only include armfpe.h if we are building FPE support into the kernel.
Missed from the last commit.
1998-02-22 23:45:13 +00:00
mark c67078a448 Update arm_fpe_[gs]etcontext() functions to take a struct fpreg pointer
as the second argument.
1998-02-22 23:39:53 +00:00
mark 5a2727a17e Fix arm_fpe_[gs]etcontext() prototype declarations to take a
struct fpreg pointer as the second argument.
1998-02-22 23:38:18 +00:00
mark b9ce4e7ddb Include arm32/fpe-arm/armfpe.h for arm_fpe_[gs]etcontext() prototypes.
Remove unnecessary include files and cleanup some dead code.
1998-02-22 23:35:45 +00:00
is 7667dac2d2 Actually fix, rather than mask, the Amiga big machine panic: the pmap needs
to (pre)allocate enough kernel page table pages to (among others) map the
buffer cache buffers.
1998-02-22 22:51:46 +00:00
mycroft c1444078b5 Finish making this compile after libkern changes. 1998-02-22 15:25:28 +00:00
mycroft a81d3c2db8 Fix omission in last. 1998-02-22 15:24:08 +00:00
mycroft b20ba808f2 Clean up after ffs() change.
Do *not* set runtime here; the way it was done was highly bogus, and the value
just gets blasted right away by mi_switch().
1998-02-22 15:13:36 +00:00
mycroft bf94e4e2cd Copy up. 1998-02-22 15:11:28 +00:00
drochner e225b4cbdd -check MBR signature before using MBR partition data
-add new FAT types and Linux EXT2 to the faked-up partition table
1998-02-22 14:48:27 +00:00
drochner 74b401ffd1 -correct misleading name and comment for MBR partition type 14
-add FAT32 and EXT2FS
1998-02-22 14:45:43 +00:00
ragge 1e3fb9012d Type fix so that time get read correct on VS2000, from Ken Wellsch. 1998-02-22 14:19:39 +00:00
mycroft 1638d144ca Always go to splhigh() inside DDB. 1998-02-22 14:07:21 +00:00
hannken 1bb761e96f Didn't compile with option MEMORY_DISK_HOOKS. 1998-02-22 12:53:53 +00:00
scw ef52501a4f Implement changes for UVM. 1998-02-22 11:33:10 +00:00
mycroft 8a66afbcba Move random() from kernel. 1998-02-22 09:33:27 +00:00
mycroft bb0363853f ffs() is identical to the one from libc, so just use that.
Move random() to libkern.
1998-02-22 09:31:00 +00:00
mycroft 8ad4f24f50 Add memcpy() and memset(), and sort. 1998-02-22 09:18:38 +00:00
mycroft 79376487cb Sync with libc. 1998-02-22 09:13:16 +00:00
mycroft 4477c62148 Add various things from libc. 1998-02-22 09:08:34 +00:00
mycroft 5ba0f1cae2 Move random.S from kernel. 1998-02-22 08:53:33 +00:00
mycroft 533de19431 Remove random.s. 1998-02-22 08:51:04 +00:00
mycroft dcfb8695ab Move to libkern. 1998-02-22 08:50:17 +00:00
mycroft 0625ac391b Use the new .S files. 1998-02-22 08:45:04 +00:00
mycroft 799bd513de Sync with libc, and add random.S. 1998-02-22 08:43:27 +00:00
mycroft 065e369ab5 Remove random.s. 1998-02-22 08:35:33 +00:00
mycroft 8776736cea Move to libkern. 1998-02-22 08:34:35 +00:00
mycroft 4b6d15532b Nuke random.s. 1998-02-22 08:21:33 +00:00
mycroft 5a22434af5 Remove this copy of bzero(). 1998-02-22 08:19:05 +00:00
mycroft 52541a2efb Move random.S from arch/i386/i386. 1998-02-22 08:14:56 +00:00
mycroft f118bc7042 Move to libkern. 1998-02-22 08:13:47 +00:00
mycroft ab5aeaa789 Clean up #include paths.
Copy prom2boot() from kernel source.
rename _rtt() to OF_exit(), and add a _rtt() that calls it.
1998-02-22 07:42:30 +00:00
mycroft 28edc3d334 Fix typo. 1998-02-22 07:33:11 +00:00
mycroft cf02652abc And rindex.S... 1998-02-22 07:21:32 +00:00
mycroft 6b7f2d0f92 And index.S... 1998-02-22 07:20:24 +00:00
mycroft 03f75a79ff Nuke the override of libkern SRCS from orbit. 1998-02-22 07:19:02 +00:00
enami 9b770726e8 Fix message printed in case (b) in last commit; what actually shouldn't
exceeds is not a size of partition but end of partition.
1998-02-22 07:14:30 +00:00
mycroft b65caec4a0 Add strchr.S and strrchr.S. 1998-02-22 07:03:08 +00:00
mycroft 8c0dc3f1e8 Add these as well. 1998-02-22 07:01:44 +00:00
mycroft 196103b90b Don't list bcopy.c here, since we only want memcpy() and not bcopy().
XXX What a kluge!
1998-02-22 06:57:31 +00:00
mycroft 650b9558c0 Need bcopy.c to generate memcpy(). 1998-02-22 06:55:42 +00:00
mycroft ab530e2db7 Build memcpy() out of bcopy() by default. 1998-02-22 06:54:38 +00:00
enami 512a01869c Check disklabel just read from disk and warn if:
(a) total sector size is different from the size of ccd, or
	(b) size of a partition exceeds the size of ccd.
1998-02-22 06:50:08 +00:00
mycroft 6e8ffbdd58 Use the assembler version of memcpy(). 1998-02-22 06:49:57 +00:00
mycroft 354ce440d2 We need memcpy(). 1998-02-22 06:44:44 +00:00
mycroft 943421399e Sync with libc. 1998-02-22 06:40:17 +00:00
mycroft ab7671a45e Add some missing things. 1998-02-22 06:08:37 +00:00
mycroft e1a2c2904a Pull in [hn]to[nh][ls].c. 1998-02-22 05:54:54 +00:00
enami 9db8348725 Cosmetic change; use tab of width 8. 1998-02-22 05:14:34 +00:00
mycroft 01277a19c0 Don't even think about cdefs.h here... 1998-02-22 05:10:55 +00:00
enami e12f85fbc1 Disable the device if we fail to open and nobody else has the device open.
(Thanks Charles and Marc for your advices).
1998-02-22 05:09:58 +00:00
mycroft 11b3fea04a Fix bonehead error in previous change. 1998-02-22 03:24:58 +00:00
mark 39ce947f1a Add missing interrupt enable callbacks lost during the adding of ATAPI
support. Spotted while working on MI wdc support for the ICS interface.
1998-02-22 02:36:22 +00:00
mark 05fa7c54a5 Clean up the comments and correctly indent them. Change various RiscBSD
references to NetBSD ones.
1998-02-22 00:31:00 +00:00
mark 550b5bff23 Guard spl related variables and pmsputbuffer() with #ifdef MOUSE_IOC_ACK.
Declare pmsputbuffer() as static.
1998-02-22 00:25:03 +00:00
mark a0ce540d73 Guard spl related variables and qmsputbuffer() with #ifdef MOUSE_IOC_ACK 1998-02-22 00:24:12 +00:00
mark a55279da6a Updated to use cpu_reset() rather than boot0().
Set cpu_reset_address to 0x00000000 for currently supported systems.
Update associated comments.
1998-02-22 00:08:16 +00:00
mark d011ec2573 Provide a prototype for cpu_reset(). 1998-02-22 00:05:56 +00:00
mark dc37a51773 In the future we may want to branch somewhere other than zero when
reseting the CPU. Rename the boot0() function to cpu_reset() and
provide a variable to hold the cpu reset address.
1998-02-22 00:05:00 +00:00
jonathan 78b939d4b5 Pull up duplicated CPP definitions from float.h rev 1.10:
>DBL_MIN and DBL_MAX were less precise than they should have been.
1998-02-21 23:50:24 +00:00
mark 44e22f7606 Fix a couple of unused variable warnings for RC7500 builds. 1998-02-21 23:40:03 +00:00
mark 35c234d2a6 Replace -Wreturn-type with -Wall for CWARNFLAGS. 1998-02-21 23:30:56 +00:00
mark 88aa559e5e Remove inclusion of machine/katelib.h
Remove local prototype of savectx().
Comment all the #endif lines for PMAP_DEBUG
Remove un-necessary variable 'up' from cpu_fork().
Use %p rather than %x for several debug print messages.
1998-02-21 23:27:10 +00:00
mark 018ce60490 Remove functions for disable_interrupts(), enable_interrupts() and
restore_interrupts() as these have been replaced by macros in
machine/cpufunc.h.
1998-02-21 23:21:28 +00:00
mark 2553c95bde Include machine/cpufunc.h for interrupt disable/restore routines. 1998-02-21 23:19:36 +00:00
mark 24aaa5f9dd Add macros for the CPU functions disable_interrupts(), enable_interrupts()
and restore_interrupts().
1998-02-21 23:17:05 +00:00
mark ccb81fe3d3 Remove prototype declarations of disable_interrupts(), enable_interrupts()
and restore_interrupts() as these are CPU related functions.
1998-02-21 23:16:28 +00:00
mark 706589adb9 Update the L1_SEC() macro to take a cache enable mask.
Add a macro L1_SEC_SIZE to define the size of a L1 section.
1998-02-21 23:11:28 +00:00
mark 854d928a14 Fix typo in a DMA dummy stub function. 1998-02-21 23:09:37 +00:00
mark 6eccd50f49 Remove local prototype for savectx().
Update all map_section() function calls to map I/O sections as
non-cacheable.
1998-02-21 23:08:17 +00:00
mark c273b285d8 Remove local prototype of savectx().
Updated all map_section() function calls to map sections as non-cacheable.
1998-02-21 23:04:54 +00:00
mark 99ae0b08fe Updated all map_section() function calls to map I/O sections as
non-cacheable.
1998-02-21 23:02:34 +00:00
mark 1c782f5da1 Add a cacheable flag field to the map_section() function so that L1 page
table section mappings may be made cacheable.
Remove a few nasty hardcoded shifts and use macros from machine/pte.h
instead.
Cleaned up a few comments.
1998-02-21 23:00:57 +00:00
mark 745e11a2b1 Remove local prototype of savectx(). 1998-02-21 22:57:44 +00:00
mark 628ae33403 Remove register declarations. 1998-02-21 22:56:58 +00:00
mark 1bd5283fb7 Remove inclusion of katelib.h and include cpu.h and cpufunc.h. 1998-02-21 22:52:50 +00:00
mark ba8b28d360 Remove local prototypes of strstr(). 1998-02-21 22:51:43 +00:00
mark c81dae4473 Move some prototypes form katelib.h to a more suitable home in cpu.h 1998-02-21 22:49:18 +00:00
mark ea04275578 Remove local prototype of disassemble() and include disassm.h instead
for prototype.
Fix compiler warnings about unused variables with certain config options.
1998-02-21 22:43:29 +00:00
mark d13b903579 Remove local prototypes for disassemble() and include disassem.h instead
for the prototype.
1998-02-21 22:41:34 +00:00
mark 83fcf2d5c8 Define prototypes for disasm() and disassemble(). 1998-02-21 22:38:40 +00:00
jonathan f7bd3a0119 Move existing contextsw-avoidance code in rzdump() earlier, since rzready()
also calls biowait().

Some drives seek to modepage on every modepage geometry-sense in rzready()
cache dev_t of last readied device in rzdump() to elide rzready() calls.
2x speedup of dumps on rz25 and 20x-30x speedup on some IBM OEM 4gig drives.
1998-02-21 20:20:55 +00:00
scw d38d12d85a Whoops, cgd's pmap_map change got lost! Put it back. 1998-02-21 19:22:00 +00:00
scw 0e88177c0b Implement changes for MACHINE_NEW_NONCONTIG and UVM. 1998-02-21 19:03:25 +00:00
christos 4e915f8681 PR/4950: Rene Hexel: Add id for Terratec EWS64 joystick 1998-02-21 13:19:14 +00:00
mark 3fa53fb439 Check the for the TODCLOCK_FLAG_FAKE flag in the attach args to allow
a "real" driver to have priority.
Make sure that a todclock service does exist before trying to read and
write the time.
If no RTC read routine exists, just use the suggested time in inittodr().
1998-02-21 03:19:02 +00:00
mark fb161c5c9c Set the flags field in the todclock_attach_args to 0.
Fix typo in currently commented code.
1998-02-21 03:13:46 +00:00
mark 50f9bf3cb5 Add a flags field to the todclock_attach_args structure.
Define a flag bit to indicate that the todclock is faking the RTC
read and write routines.
1998-02-21 03:12:32 +00:00
mark 59be9f9e0e Don't configure the qms mouse device into A7000 kernels as the A7000
only supports a PS2 mouse and not a quad mouse.
1998-02-21 02:46:11 +00:00
mark 5b4cb30e30 Recognise the ARM7500FE IOMD id as supporting a podulebus. 1998-02-21 02:44:42 +00:00
mark b302819fbe Nuke db_show_fs_cmd() and the "machine fs" command in the debugger. The
command has not been used for years and is really broken now vfs_conf.c
is no more.
1998-02-21 02:42:42 +00:00
scottr 81d2791bd9 Unify ADB options and place them all into opt_adb.h. Provide a knob to
enable ADB debugging messages if ADB_DEBUG is configured.
1998-02-21 00:37:07 +00:00
gwr 5f0963e887 Switch to MACHINE_NEW_NONCONTIG 1998-02-20 21:51:29 +00:00
scottr 0ca6188f89 Fix for ADB hang while probing, based on information from Colin Wood:
Rather than waiting indefinitely for a mouse or extended keyboard to
respond -- which may not even exist -- time out after 2 seconds and
continue.  This corrects a very common problem with the MRG-based ADB
driver that has bitten many people running 1.3.
1998-02-20 18:14:10 +00:00
mycroft 0e4a7ffbe0 Regen. 1998-02-20 18:09:29 +00:00
mycroft 26c238db7d Linux's getsid(2) does in fact return a pid, not a pointer. 1998-02-20 18:09:04 +00:00
frueauf 5e3035adb1 include <unistd.h> for optarg/optind. 1998-02-20 09:19:11 +00:00
mycroft 28e8037334 Fix missing newline in time zone warning. 1998-02-20 07:22:14 +00:00
pk ed1d38cfe3 Add "storage" arguments (all NULL) to pool_create() and pool_prime(). 1998-02-19 23:56:37 +00:00
pk 201f7cf6b4 Add option to use "static" storage provided by the caller.
From Matthias Drochner.
1998-02-19 23:51:48 +00:00
mycroft 7aad596fa6 Fix formatting glitch. 1998-02-19 23:21:33 +00:00
thorpej 17eae81dc5 Use the generic NetBSD/mips crash dump code. 1998-02-19 23:13:33 +00:00
thorpej 2f74d0222a savectx() is prototyped in <mips/cpu.h> 1998-02-19 23:10:18 +00:00
thorpej 0743f83f64 Implement new style crash dumps for NetBSD/mips, lifted from NetBSD/alpha. 1998-02-19 23:09:30 +00:00
thorpej cf06aa7c03 Prototype dumpsys() and savectx(). 1998-02-19 23:07:14 +00:00
thorpej c5862712ae New crash dump format definition for NetBSD/mips. 1998-02-19 23:06:11 +00:00
thorpej 50f58080f4 Rewrite rzdump(); the previous one was completely broken. 1998-02-19 23:04:41 +00:00
gwr ce396c52e6 can not use star 1998-02-19 22:50:04 +00:00
gwr 43cbb05833 Support MACHINE_NEW_NONCONTIG 1998-02-19 22:21:28 +00:00
mycroft 6ad2876b5a Similar changes to com driver:
Arrange to call com_break() and com_modem() at splserial().
It's simpler this way.  Really.
1998-02-19 21:26:10 +00:00
leo c281cb0e23 Update Hades PCI support:
- Initialize the PCI bus and hand-out mem and i/o addresses. (there is
    still lots of room for improvements here...)
  - Implement the interupt functions
1998-02-19 16:16:51 +00:00
drochner 0587f7e6e7 add COMPAT_386BSD_MBRPART option 1998-02-19 14:21:57 +00:00
drochner ce380ad936 enable "old partition ID" compatibility per default 1998-02-19 14:18:36 +00:00
drochner ad33d83f8b Add compatibility code (#ifdef COMPAT_386BSD_MBRPART): look for 386BSD
partition ID if the NetBSD ID was not found.
Cleanup, use definitions from <machine/disklabel.h>
1998-02-19 14:15:38 +00:00
drochner 411e77cac8 Add compatibility code (#ifdef COMPAT_386BSD_MBRPART): look for 386BSD
partition ID if the NetBSD ID was not found.
1998-02-19 14:12:48 +00:00
drochner 7d1b6dbcbf -define new own partition ID for NetBSD (0xa9)
-protect structure definitions from inclusion in assembler files
1998-02-19 14:10:34 +00:00
drochner b3019be867 Use an own NetBSD MBR partition type. Add compatibility code for fallback
to the old 386BSD ID (#ifdef COMPAT_386BSD_MBRPART).
basically from Duncan McEwan <duncan@MCS.VUW.AC.NZ>
1998-02-19 14:07:33 +00:00
mycroft 84a72d6ff4 Remove stray label from last change. 1998-02-19 09:33:33 +00:00
mycroft 06ec9f646f Arrange to call com_break() and com_modem() at splserial().
It's simpler this way.  Really.
1998-02-19 09:23:38 +00:00
thorpej 69c27a1dfb Make sure the compile directory is always there. 1998-02-19 09:17:56 +00:00
thorpej c3a02725ea Use a reasonable default for NKMEMCLUSTERS. Previous default value wouldn't
run multi-user for very long at all, and every kernel configuration file
overrides it!
1998-02-19 06:40:09 +00:00
thorpej 772da350d4 Disable the message buffer during crash dumps by clearing msgbufenabled,
not msgbufmapped.
1998-02-19 04:18:30 +00:00
thorpej dc4fe3d32d Regen: makesyscalls.sh changed. 1998-02-19 03:34:15 +00:00
thorpej 95cd40bf13 Regen; makesyscalls.sh changed 1998-02-19 03:31:11 +00:00
thorpej 78a9bfbb1c Argh, protect userland from includes in the syscall names file. 1998-02-19 03:30:24 +00:00
thorpej 5837cc6b07 Update copyright (sigh, should have done this long ago). 1998-02-19 02:36:42 +00:00
cgd 0924c4443d Make sure the reason that NOLINT is set is documented. Additionally
in places where it should be set (or has to be set right now), do so.
1998-02-19 02:17:05 +00:00
thorpej 1e3e1bfe09 Include the NFS option header. 1998-02-19 00:55:04 +00:00
thorpej 95e2e3b91b Include the LFS option header. 1998-02-19 00:54:39 +00:00
thorpej 2146a2ed29 Include the NFS option header. 1998-02-19 00:54:13 +00:00
thorpej 2fc4c3415a Include the UNION option header. 1998-02-19 00:53:46 +00:00
thorpej 990ca1baa0 Regen; syscalls.master and makesyscalls.sh changed. 1998-02-19 00:53:17 +00:00
thorpej 58fff16650 Include the NFS and LFS option headers. 1998-02-19 00:52:14 +00:00
thorpej b0b3787d14 Include the NFS option header. 1998-02-19 00:47:02 +00:00
thorpej 7db8266c3d Regen; syscalls.master and makesyscalls.sh changed. 1998-02-19 00:46:39 +00:00
thorpej e533010083 Include the NFS option header. 1998-02-19 00:46:02 +00:00
thorpej 2ea9f5648e regen; makesyscalls.sh changed 1998-02-19 00:45:36 +00:00
thorpej 054d3ec0b2 Change a comment to reflect new makesyscalls.sh behavior. 1998-02-19 00:45:12 +00:00
thorpej d428ef497f regen; syscalls.master and makesyscalls.sh changed. 1998-02-19 00:44:20 +00:00
thorpej 217cf602ae Include the NFS option header. 1998-02-19 00:43:56 +00:00
thorpej ffa2f66af1 regen; makesyscalls.sh changed 1998-02-19 00:42:35 +00:00
thorpej db2bdf86a9 Change a comment to reflect new makesyscalls.sh behavior. 1998-02-19 00:42:15 +00:00
thorpej e94f57bd08 regen; makesyscalls.sh changed 1998-02-19 00:41:47 +00:00
thorpej c0ef23f235 Change a comment to reflect new makesyscalls.sh behavior. 1998-02-19 00:41:12 +00:00
thorpej 85363653a7 regen; makesyscalls.sh changed. 1998-02-19 00:40:44 +00:00
thorpej 9f6ec3eb67 Change a comment to reflect new makesyscalls.sh behavior. 1998-02-19 00:40:25 +00:00
thorpej 98193ef4fd makesyscalls.sh changed; regen. 1998-02-19 00:39:25 +00:00
thorpej a4db5a6784 Update a comment to reflect new makesyscalls.sh behavior. 1998-02-19 00:37:43 +00:00
thorpej 6f0c98c0d4 Regen: syscalls.master and makesyscalls.sh changed. 1998-02-19 00:36:33 +00:00
thorpej fcb761ac95 Include the NFS option header. 1998-02-19 00:36:03 +00:00
thorpej 00fa9be52f Include the UNION option header. 1998-02-19 00:35:26 +00:00
thorpej 258bdac2d5 Include the MFS option header. 1998-02-19 00:32:11 +00:00
thorpej 1870f7af79 Include MFS option header. 1998-02-19 00:31:08 +00:00
thorpej 8a5a1155cf Include KERNFS option header. 1998-02-19 00:30:38 +00:00
thorpej 5b5ba62513 Define the NetBSD file systems, and specify option headers for
MFS, LFS, UNION, KERNFS, and NFS.
1998-02-19 00:28:52 +00:00
thorpej 0640c5a64f Put #include directives in the system call names file, too, so we can
generate dependencies on optional system calls.
1998-02-18 23:14:55 +00:00
perry 8486362eaf remove obsolete boot code -- we now use the code in stand/ 1998-02-18 19:23:23 +00:00
perry 3add465995 remove obsolete netboot code -- we now use the code in stand/ 1998-02-18 19:21:36 +00:00
drochner ba81b6f6df add missing vfsops element 1998-02-18 17:02:20 +00:00
drochner 93a065690b fix map range boundary check 1998-02-18 14:50:32 +00:00
tsubai 117df8f77a Initial import of NetBSD/news. 1998-02-18 13:48:03 +00:00
mycroft 2e55db84dd Sync with powerpc/include/vmparam.h; removes some things which are not used. 1998-02-18 11:11:24 +00:00
mycroft b7bc9342a8 Fix typo. 1998-02-18 11:10:08 +00:00
mycroft 3b9429b248 Minor changes to make all the float.h files match. 1998-02-18 11:01:27 +00:00
mycroft 5197bf8085 Minor changes. 1998-02-18 10:55:48 +00:00
mycroft f0a5dd43ce Multiple-inclusion crap, correct precision of DBL_*, etc. 1998-02-18 10:54:10 +00:00
mycroft ec9c3ce899 DBL_MIN and DBL_MAX were less precise than they should have been.
Other minor changes to match other float.h files.
1998-02-18 10:37:04 +00:00
mycroft d47ec6f1ae Include correct information for long doubles (mc68881 extended precision). 1998-02-18 10:24:45 +00:00
mycroft c525e48e35 Include correct information for long doubles (i387 extended precision). 1998-02-18 09:22:02 +00:00
thorpej 62cb255d14 Place a pointer to an array of our vnodeopv_desc *'s in our vfsops
structure, for use by vfs_attach().
1998-02-18 07:26:57 +00:00
thorpej dc4a1e3d63 vfs_conf.c is obsolete. 1998-02-18 07:19:55 +00:00
thorpej 440541c02f Major kernel interface change (vfsops/vfs_attach()/vfs_detach()); bump
version to 1.3D.
1998-02-18 07:19:23 +00:00
thorpej 19024ae2fb Don't vfs_opv_init_*(); this is properly handed by vfs_attach(). 1998-02-18 07:18:21 +00:00
thorpej 9a3b52d482 Yay! This file is finally DEAD DEAD DEAD! 1998-02-18 07:17:13 +00:00
thorpej d1f0dbf1b1 Don't use vfssw[], it's gone; use vfs_list instead.
Implement vfs_attach() and vfs_detach(), which add and remove file systems
from the kernel.
1998-02-18 07:16:41 +00:00
thorpej 6c57a3c322 Change vfs_opv_init_explicit() to not allocate the vnode operations
vectors; defer that to vfs_opv_init().

Change the interface to vfs_opv_init() and export it; it now takes a
pointer to an array of vnodeopv_desc *'s to initialize.  Allocate
the vnode operations vectors here.  Called by vfs_attach().

Implement vfs_opv_free(), which deallocates the vnode operations
vectors.  Called by vfs_detach().

Change vfsinit() to build the initial vfs_list by traversing the
vfs_list_inital[] table, and vfs_attach()'ing those file systems.
Also, initialize special vnodeopv_descs (dead, fifo, spec) which
are not associated with any particular file system.
1998-02-18 07:15:30 +00:00
thorpej c7a0984b02 vfssw[] is gone; use vfs_list instead. 1998-02-18 07:11:46 +00:00
thorpej da61b242a0 Use vfs_attach()/vfs_detach(). 1998-02-18 07:11:21 +00:00
thorpej 53610dcc4b Add a pointer to an array of struct vnodeopv_desc *'s, for use by
vfs_attach(), and a LIST_ENTRY to link to the kernel's list of
file systems to struct vfsops.

Declare the vfs_list_head structure, and prototype new functions
vfs_attach(), vfs_detach(), vfs_opv_init(), and vfs_opv_free().
1998-02-18 07:09:15 +00:00
thorpej b5bf2ed6d0 Place a pointer to an array of our vnodeopv_desc *'s in our vfsops
structure, for use by vfs_attach().
1998-02-18 07:05:47 +00:00
mrg 3ed2e6ac6c bug fix from chuck: uvm_vnp_terminate panic when /sbin/init was unlinked 1998-02-18 06:35:46 +00:00
perry ba7b5f16ff add -DPMAP_NEW if PMAP_NEW is on in mk.conf 1998-02-18 03:54:58 +00:00
thorpej edbfcebb6a Fixup an inconsistency in the declaration of PTDpaddr, pointed out by
Chris Demetriou.
1998-02-18 03:04:40 +00:00
cgd 3bbb7f7d45 Move pmap_map() function definition to MD headers, as appropriate. It's
an internal function, and the VM system shouldn't try to prototype it.
(Note that some ports _don't_ prototype it.)
1998-02-18 02:05:32 +00:00
cgd f19c0ee648 nuke pmap_map(). it's an internal MD function, and it's unused 1998-02-18 01:44:32 +00:00
thorpej b7d1ce7766 Switch the i386 port to the new kernel crash dump format. 1998-02-18 01:09:25 +00:00
is 31c87441a4 Cosmetics. Pointed out by Matthias Scheler. 1998-02-17 19:42:38 +00:00
cgd a7f7004e33 include an MD header if arm32. (No header yet, but there will be
one eventually.)
1998-02-17 18:27:10 +00:00
mrg 3405ea7d83 properly protect the definition of "cnt". PR#4985 from <bgrayson@ece.utexas.edu> 1998-02-17 09:35:19 +00:00
thorpej 4399060ec9 - Perform all necessary bus_dmamap_sync() operations.
- Greatly simplify allocation and DMA mapping of the mailbox and ccbs.
- Be more robust against resource shortage errors, and report errors better.
1998-02-17 03:02:30 +00:00
thorpej 8354e68508 Remove "class" declarations, and add "devclass" declarations where
appropriate.  Fix several inconsistencies between device class and
attributes.  Mostly from Chris Demetriou.
1998-02-16 22:12:45 +00:00
thorpej 65e20aa9a8 Add first-cut support for UVM. NOTE! User page table allocation does not
currently work with UVM in this pmap!  This is due to a bug in the interaction
between kernel_object and submaps which will be addressed shortly.
1998-02-16 21:01:39 +00:00
thorpej d8f3ddff17 Add support for UVM. 1998-02-16 20:54:51 +00:00
drochner 07fdccb3a4 Document new WD80x3 option. 1998-02-16 11:41:14 +00:00
drochner 509f891bd0 -Completely reset the card in EtherStop(), otherwise the next
open can fail.
-Disable interrupts in the mask register - EP_W0_RESOURCE_CFG is not
  sufficient for PCI cards.
1998-02-16 11:26:36 +00:00
drochner b8cdacb8d5 Redo standalone driver for WD8013 / SMC Ultra boards.
(The old one was buggy.)
Frontend / backend splitup and most code taken from sys/dev/ic/dp8390.c
and sys/dev/isa/if_we.c.
1998-02-16 11:21:59 +00:00
drochner 642cbc64e2 Always set own IP address to 0.0.0.0 before BOOTP or DHCP. 1998-02-16 11:10:54 +00:00
kleink 67ef95ed95 Snapshot of cleanup: protect struct stat12 and several function prototypes
from _POSIX_SOURCE resp. _XOPEN_SOURCE.  Fixes bin/4997 from Michael Richardson.
1998-02-16 09:52:19 +00:00
kleink 897ff887fa Addendum to last commit: make the tcgetsid() prototype visible in case
both _POSIX_SOURCE and _XOPEN_SOURCE are defined.
1998-02-16 08:13:06 +00:00
thorpej b4e77b173a Add support for non-contiguous physical memory, using MACHINE_NEW_NONCONTIG.
These changes also recover memory that is located before the kernel in
the first system software segment on systems which do not use the PROM
for console I/O.  Written by Chris Demetriou and myself.
1998-02-16 03:59:55 +00:00
thorpej 2b06ffd5f9 Add support for UVM. 1998-02-15 21:19:34 +00:00
thorpej 8559f25d47 Implement kcopy(), like bcopy(), but aborts if a fault is encountered.
Required for UVM.
1998-02-15 21:18:45 +00:00
tls 91de585d5f Add correct copyright notice for IP address hash change. This code is donated to TNF by the original copyright holder, Panix. 1998-02-15 18:24:23 +00:00
kleink 9d4229ed21 Regen: use POSIX semantics for chown()/fchown(). 1998-02-14 22:06:38 +00:00
kleink d3e69807a6 Use sys___posix_{chown,fchown}() instead of sys_{chown,fchown}(). 1998-02-14 22:04:56 +00:00
kleink 96f0dccbdd * Use sys___posix_{chown,fchown}() instead of sys_{chown,fchown}().
* Change reference from sys_posix_rename() to sys___posix_rename().
1998-02-14 21:57:02 +00:00
kleink f1d879bb87 Regen: use POSIX semantics for chown()/fchown()/rename() syscalls, add lchown(). 1998-02-14 21:43:35 +00:00
kleink b9233971cd * Use sys___posix_{chown,fchown}() insteade of sys_{chown,fchown}().
* Change reference from sys_posix_rename() to sys___posix_rename().
* Emulate lchown().
1998-02-14 21:40:54 +00:00
kleink 6dccfbdf6f Regen: use POSIX semantics for chown()/fchown()/rename() syscalls, add lchown(). 1998-02-14 21:31:26 +00:00
kleink c19ebc067c * Use sys___posix_{chown,fchown}() instead of sys_{chown,fchown}().
* Change reference from sys_posix_rename() to sys___posix_rename().
* Emulate lchown().
1998-02-14 21:29:14 +00:00
kleink 8defdfc372 Regen: sys_fchown() -> sys___posix_fchown(). 1998-02-14 21:19:37 +00:00
kleink ab93fc5e02 Use sys___posix_fchown() instead of sys_fchown(). 1998-02-14 21:16:35 +00:00
kleink 9cda9b2393 * chown(): use sys___posix_chown().
* rename():  change reference to sys___posix_rename().
1998-02-14 21:13:52 +00:00
kleink 81f5f29918 Regen: sys_fchown() -> sys___posix_fchown(). 1998-02-14 21:03:48 +00:00
kleink 5d1d29ff65 Use sys___posix_fchown() instead of sys_fchown(). 1998-02-14 20:58:21 +00:00
kleink 5c1fbd0e44 * chown(): use sys___posix_chown().
* rename():  change reference to sys___posix_rename().
1998-02-14 20:52:47 +00:00
kleink f339e80ad6 Regen: syscalls.master change (addition of __posix_chown(), __posix_fchown(),
__posix_lchown(); posix_rename() -> __posix_rename()).
1998-02-14 20:05:53 +00:00
kleink 3404e6deb3 Implement __posix_chown(), __posix_fchown() and __posix_lchown(). Also,
rename posix_rename() to __posix_rename() to follow this convention.
1998-02-14 20:01:05 +00:00
kleink e34b0a84a9 Move some permission-checking code for file owner/group changes up to
vfs_syscalls.c::change_owner().  Also, always update the inode's change time
if the operation succeeds.
1998-02-14 19:56:30 +00:00
kleink 3ef309317a * Factor out some permission-checking code from ufs_setattr() into
change_owner().
* Change the semantics of chown(), fchown() and lchown(): when requesting a
  change of the owner of a file, clear the set-user-id bit; analogous behaviour
  for group changes.
* Since the above is a violation of the semantics specified by POSIX and
  X/Open, add corresponding compatibility syscalls: __posix_chown(),
  __posix_fchown(), __posix_lchown().  (Neither fchown() nor lchown() is
  specified by POSIX; the prefix is intended to reflect the semantics.)
* Rename posix_rename() to __posix_rename() to follow the above convention.
1998-02-14 19:49:43 +00:00
kleink 59fe905973 Fix variable declarations: register -> register int. 1998-02-14 19:34:12 +00:00
pk 0fc808b760 Think-o in pmap_extract4m(), detected by UVM. 1998-02-14 09:28:52 +00:00
cgd 1584dc4420 The pmap_emulate_reference warning about the page not being managed should
be a panic instead.  If it's hit, "random" memory is going to be corrupted.
1998-02-14 02:04:05 +00:00
thorpej 5f8168f660 Use the sesssion's stored SID in getsid(). 1998-02-14 01:33:18 +00:00
thorpej 8efb4289b4 syscalls.master changed; regen. 1998-02-14 01:30:20 +00:00
thorpej 44102031da We now have a native getsid(2), so there's no need to implement it here;
just use sys_getsid().
1998-02-14 01:29:43 +00:00
thorpej 821a4fec46 Add a comment clearly describing that Linux's getsid(2) differs from
the XPG4.2 definition in that it returns the kernel virtual address
of the session structure, rather than the process group ID of the
session leader.
1998-02-14 01:28:15 +00:00
thorpej c1538fb038 Implement TIOCGSID. 1998-02-14 01:26:50 +00:00
thorpej 5a39799ea4 Prototype tcgetsid(3), per XPG4.2. 1998-02-14 01:25:21 +00:00