Commit Graph

59316 Commits

Author SHA1 Message Date
bouyer f0f0eba116 In real_plog() change vsprintf() to vsnprintf() to be sure we'll never overflow
msg[]. I didn't check all the plog() call so I don't know if this overflow
is possible by a non-root user or not.
Suggested by Zdenek Salvet <salvet@ics.muni.cz> a looong time ago.
2000-01-15 15:51:54 +00:00
aymeric 921c6acc0e defined IPL_BIO, IPL_NET and IPL_TTY for soon to be integrated PCMCIA code 2000-01-15 15:04:21 +00:00
minoura 49f79ab628 Change physseg allocation strategy to VM_PSTRAT_BIGFIRST.
Required when big (>64MB) high memory is installed.
2000-01-15 14:47:25 +00:00
aymeric b4406c3d63 make this compile again 2000-01-15 13:50:13 +00:00
nisimura 410a23c0a3 Revert to old ROM console I/O code. 2000-01-15 10:06:21 +00:00
bgrayson 0d39e62e79 Fix security problem noticed by Alaric Williams:
when giving up root credentials, I was setting the egid and euid,
  and forgot to also do gid and uid.
2000-01-15 06:21:40 +00:00
msaitoh 150090f9b8 inittodr() and resettodr() supports SH4 2000-01-15 02:46:30 +00:00
nisimura 94c89f6863 Kludge to detect booted_device detection. Needs helpful 2nd stage boot
loaders for finer controls.
2000-01-15 02:06:31 +00:00
oster 138d8fef04 Fix typo + cleanup a bit. 2000-01-15 01:57:57 +00:00
hubertf e27fbcf4a2 Properly print the "B"(lackhole) flag (as documented :).
Patch submitted in PR 9190 by URA Hiroshi <ura@hiru.aoba.yokohama.jp>
2000-01-15 01:39:54 +00:00
christos 1b02e0a7db Build biosboot_com0 too. 2000-01-15 01:17:12 +00:00
christos e597a72d0b Use cat -f to avoid denial of service attacks by people who make .rhosts
files fifos.
2000-01-15 01:15:12 +00:00
christos 8b1a601327 Add a -f fflag that makes sure that we only try to read from plain files
so that there is no chance to block.
2000-01-15 01:13:15 +00:00
christos fc1a83184b add and "f" flag to fopen that makes sure we are opening a plain file,
so that there is no chance to block.
2000-01-15 01:11:45 +00:00
christos b41faac27c don't bitch if madvise returns EOPNOTSUPP 2000-01-15 01:10:12 +00:00
christos 3bc3e6f774 use xwarnx instead of warnx 2000-01-15 01:03:45 +00:00
cgd d447117750 Some additional sanity checks to keep this code from bursting into
flame if presented with bad CIS data (e.g. because of a memory space
conflict):
* more sanity checking on LONGLINK_MFC CIS tuples (exact length check, sanity
  check on size vs. size of array we allocated for them), to avoid various
  missteps which could cause this code to complete trash the kernel stack.
* clear the entire contents of the state structure before processing, so
  things like uninitted pointers will actually have a known value!
* be more careful with CISTPL_CFTABLE_ENTRY: check to see that the current
  state's default_entry isn't NULL before dereferencing it.
2000-01-14 23:09:53 +00:00
msaitoh df208e8ae8 sync with libkern 2000-01-14 22:55:46 +00:00
perseant 1b67daa4b4 Expand the category of "metadata" in lfs_markv to include Ifile data blocks.
This prevents a rare condition in which Ifile "ifile" blocks, that is, the
blocks of the ifile which point VOP_VGET at the inode block containing the
requested inode, from being "unwritten" when cleaning during intense disk
activity.
2000-01-14 21:41:11 +00:00
perseant dbe30ed5d4 Better handling of various combinations of cleaning, vnode flushing, and
dirop writing.  In particular, lfs_writevnodes now writes all buffers from
a flushed vnode whether cleaning or not, and the same with the Ifile; and
lfs_segwrite does not attempt to write data from other non-cleaning vnodes,
even if a vnode is being flushed.
2000-01-14 21:38:46 +00:00
msaitoh 5cb845afcd remove SH3_PHYS_TO_P1SEG macro 2000-01-14 21:02:40 +00:00
msaitoh 1e15a3117c use clock_subr.c 2000-01-14 19:41:36 +00:00
msaitoh 06c297195a in_cksum.c ->in_cksum.S 2000-01-14 19:20:32 +00:00
msaitoh f485f2635c add SH3_{PHYS,P1SEG,P2SEG}_TO_{PHYS,P1SEG,P2SEG} macros 2000-01-14 19:09:35 +00:00
uch 0a98216e35 fix mobilon hc-4100 keymap. 2000-01-14 18:37:58 +00:00
jwise 9aa0a45ccf Document USE_JAVA 2000-01-14 17:32:29 +00:00
msaitoh 69fcc26071 write through bit (SH4) 2000-01-14 16:06:11 +00:00
ad ec54843fa3 - Make consistant with the new order.
- Ammend comment about PrestoServe.
2000-01-14 15:52:33 +00:00
ad ba79e0aab8 Make consistant with the new order. 2000-01-14 15:52:00 +00:00
msaitoh 2d4348b99d in_cksum.S (bi-endian) 2000-01-14 15:47:42 +00:00
msaitoh 80d920c3d0 block prototype definitions with _LOCORE (for .S) 2000-01-14 15:46:02 +00:00
pk c31e760978 Add missing `break'. 2000-01-14 15:25:28 +00:00
pk 757264e2b1 Remove old-style boot device recognition.
Sync device_register() et. al. with sparc/sparc/autoconf.c
2000-01-14 14:57:27 +00:00
augustss a30f6c8ad9 Apply patches from Tatoku Ogaito (the author of the code). 2000-01-14 14:39:13 +00:00
pk 77bd08a06b Remove old-style boot device recognition. 2000-01-14 14:38:37 +00:00
pk cd1f76b21b Remove old-style boot device recognition. 2000-01-14 14:27:14 +00:00
msaitoh ac8d6acaa7 add cpgreg.h and pfcreg.h for "make includes" 2000-01-14 13:58:06 +00:00
pk e42055a6de Deal with name space issues after libc/net updates. 2000-01-14 13:52:13 +00:00
pk 49b3458319 Expand `instfs' to 1.8MB. 2000-01-14 13:50:11 +00:00
pk ce40e68a20 Zip it real good. 2000-01-14 13:47:27 +00:00
pk 6d238dc726 Expand md filesystem to 1.8MB. 2000-01-14 13:46:06 +00:00
simonb bdf420bdbf Redo interrupt establishment, based in part on work on the
[nisimura-pmax-wscons] branch and suggestions from Toru Nisimura:
 - Remove bogus tc_slot_info[] name for interrupt handling array
   and replace with simplified struct intrhand  intrtab[] array.
 - Add intr_establish() and intr_disestablish() function pointers
   to struct platform and initialise this in each model-specific
   initialisation, and remove global tc_enable_interrupt function
   pointer.
 - Remove model-specific function declarations from ibus/ibusvar.h.
This is functionally identical to the current scheme, and doesn't
yet try to commonise interrupt establishment by bus type as the
[nisimura-pmax-wscons] branch does.

Also, move cpuspeed variable from autoconf.c to machdep.c
2000-01-14 13:45:21 +00:00
pk 3cb5a866dd Expand md filesystem to 3.6MB. 2000-01-14 13:41:45 +00:00
pk 0244320ed2 Sync with arch/sparc/include/makefile 2000-01-14 13:40:32 +00:00
tsutsui 7fcb8a3a8c minor cosmetic 2000-01-14 13:20:17 +00:00
mjacob 035b04d47a UltraMode is okay for SBus cards with chiptypes of 1020A. 2000-01-14 08:46:37 +00:00
mjacob 0e0104d0e9 There is no readily available tool to set NVRAM on isp's on sparc,
so ignore it.
2000-01-14 08:43:17 +00:00
itohy cf055ef630 Change the implementation of ms(4) polling to use timeout(9) software
interrupt in order to eliminate glitches on MPU interrupt levels.
I don't know whether this is a good solution, but it does work.
2000-01-14 08:22:42 +00:00
itohy dbb0c078a5 - Do not lower interrupt level at clock interrupt.
The original code lowers level 6 to 4, and if a
  clock interrupt occurs in splzs (or similar) the
  system may be in unpredictable state.
  To do such a hack correctly, checking the original priority
  and duplicated clock interrupts would be required.
  For now, just disable the hack.

- Do not use clock interrupt for ms polling.
2000-01-14 08:21:22 +00:00
mjl 5a14e8cac6 On memory allocation failure, return 3 as per POSIX. (from OpenBSD) 2000-01-14 07:14:41 +00:00