thorpej
80cc38a1af
Fix a partial construction problem that can cause race conditions
...
between creation of a file descriptor and close(2) when using kernel
assisted threads. What we do is stick descriptors in the table, but
mark them as "larval". This causes essentially everything to treat
it as a non-existent descriptor, except for fdalloc(), which sees a
filled slot so that it won't (incorrectly) allocate it again. When
a descriptor is fully constructed, the code that has constructed it
marks it as "mature" (which actually clears the "larval" flag), and
things continue to work as normal.
While here, gather all the code that gets a descriptor from the table
into a fd_getfile() function, and call it, rather than having the
same (sometimes incorrect) code copied all over the place.
2001-06-14 20:32:41 +00:00
mjacob
60a0137d9c
Ooops- we need to allocate an array of pointers to scsipi_xfer structures
...
isp_maxcmds in length- not an array of scsipi_xfer structures isp_maxcmds
in length.
2001-06-14 19:54:07 +00:00
cyber
428f40d685
If there were no processes to list, it meant that our criteria failed
...
and didnt match anything. Dont make our caller think we succeeded.
2001-06-14 19:04:49 +00:00
thorpej
1d161cd563
Correct a comment.
2001-06-14 19:03:43 +00:00
thorpej
fe87c9aade
When the old PCI address map is in use, disable I/O space. Also disable
...
I/O space on PBC revs < B2.
2001-06-14 18:52:26 +00:00
thorpej
0ddf0d259b
Don't use BUS_END to compute SYS_END.
2001-06-14 18:48:23 +00:00
thorpej
80dfaa3e5a
Read the PCI memory space base and the PCI DMA window base from the
...
V3 PBC, and use them in the bus mem tag and the bus dma tag on the
P-4032. This allows us to get much further when PMON has configured
the PBC using the old-style PCI address map.
2001-06-14 17:57:26 +00:00
uch
6c492e4e70
fix hpcio configuration.
2001-06-14 16:55:34 +00:00
fredette
1a4779d8a4
Now get the prototypes from the common sun68k/sun68k/control.h.
2001-06-14 16:36:46 +00:00
fredette
7ab5601058
Since physical memory below 0x2000 isn't mapped anywhere
...
for now, return EFAULT when /dev/mem tries to read it.
Other physical memory not managed by the pmap system is
mapped at the same virtual addresses. Now that we
understand how VME PTEs are constructed, give mmapping
a VME bus a better chance of working..
2001-06-14 16:32:45 +00:00
thorpej
4c73c770ce
Add MEMSIZE and ETHADDR options, so that they can be set in
...
the kernel config file, in case you have a buggy PMON which
doesn't provide the environment variables to the kernel.
2001-06-14 16:14:37 +00:00
fredette
8f6cff260d
Now uses the common sun68k bus_space/bus_dma
...
and autoconf code.
2001-06-14 15:54:18 +00:00
fredette
e20baedfd4
Added prototypes for w16zero and w16copy, found
...
in the new w16copy.s.
2001-06-14 15:49:05 +00:00
fredette
c7154a0bfd
Added two functions that zero memory and copy memory
...
in an optimized fashion using only properly aligned
8- and 16-bit accesses.
2001-06-14 15:38:16 +00:00
thorpej
defcaa8bcb
Initlialize PMON after configuring the console, so we can see
...
debugging info.
2001-06-14 15:29:23 +00:00
thorpej
587d3ec2b4
Insert some debugging code, conditional on PMON_DEBUG.
2001-06-14 15:28:56 +00:00
fredette
70ba9292d4
Now use the bus_space_peek_N function to probe for
...
the device, and common sun68k_find_prom_map function to
find a PROM mapping for a device.
2001-06-14 15:20:46 +00:00
fredette
9c1d420baf
This file has been moved to sys/dev/vme.
2001-06-14 15:15:15 +00:00
fredette
15b02e5ba0
Added a function, prom_sd_target, to translate a PROM
...
sd unit number into a SCSI target. Now only set up our
g0 and g4 handlers inside prom_abort(), so we're not
normally running with them.
2001-06-14 13:21:39 +00:00
fredette
edad0f956c
Under _LKM, now undefine KERNBASE for declaring it.
...
Not sure if this is correct, but the real question
is whether 68000 LKMs are even possible.
2001-06-14 13:18:54 +00:00
fredette
54f88e2668
Corrected the value of DVMA_OBIO_SLAVE_BASE; obio
...
devices can see the entire CPU address space.
2001-06-14 13:17:04 +00:00
fredette
01e5507e7e
Now simply include the real header under arch/sun68k.
2001-06-14 13:16:03 +00:00
fredette
000fa36842
Moved the definition of romVectorPtr here from mon.h.
...
Prototype prom_sd_target.
2001-06-14 13:15:21 +00:00
fredette
9e52c15c31
Now simply include the real header under arch/sun68k.
2001-06-14 13:12:50 +00:00
fredette
af6051568c
Removed. These files can be found under arch/sun68k now.
2001-06-14 13:10:20 +00:00
fredette
c3679650d5
Added some kernel sources that can be shared between
...
sun2 and sun3.
2001-06-14 13:08:11 +00:00
fredette
17de8ec19e
Set ARCHSUBDIR to m68k when MACHINE_ARCH is m68000.
...
Add sun68k to SUBDIR when MACHINE is sun2.
2001-06-14 13:01:27 +00:00
fredette
c1c742b4c9
Added sources for the sun2 boot blocks and other
...
sun68k-ish code, all of which ought to eventually
be shared with the sun3.
2001-06-14 12:57:10 +00:00
kleink
502b23a0e1
tzdata2001c: add new Asia/Pontianak zone.
2001-06-14 11:10:38 +00:00
uch
ea54d618ea
ANSI KNF. and change my copyright to TNF copyright.
2001-06-14 11:09:55 +00:00
kleink
78484d385d
Import tzdata2001c.
2001-06-14 11:02:49 +00:00
sato
4cc6a0ac93
fix 'mask clock to PIU'
2001-06-14 08:43:41 +00:00
chs
766dfc9b6f
be sure to allocate dirty zeroed pages to cover blocks we allocate
...
to resolve a write fault. fixes PR 13201.
also, be sure to allocate blocks for write faults to holes even if
the page is already in memory. fixes PR 13189.
2001-06-14 08:22:14 +00:00
lukem
bd7fad6c47
use symbolic signal names instead of numbers
2001-06-14 07:50:06 +00:00
itojun
015f17a7cb
fix comment on ifi_lastchange, for 1.4 if_data
2001-06-14 06:37:34 +00:00
thorpej
3bad583046
Oops, use the correct space tag when unmapping the RTC on the
...
P-4032 after calibrating the clock.
2001-06-14 05:58:19 +00:00
itojun
a90f815dc4
update comment on if_lastchange
2001-06-14 05:50:02 +00:00
itojun
4d51fe368b
change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange.
...
follows BSD/OS practice and ucd-snmp code (FreeBSD does it for specific
interfaces only).
was: if_lastchange get updated on every packet transmission/receipt.
now: if_lastchange get updated when IFF_UP is changed.
2001-06-14 05:44:23 +00:00
chs
7e00a527ea
work around an overflow problem in uvm_fault_wire().
...
from Eduardo Horvath and Simon Burge.
2001-06-14 05:12:56 +00:00
itojun
82b8462ccf
apply ftp://ftp.openbsd.org/pub/OpenBSD/patches/2.9/common/006_sshcookie.patch.
...
sshd(8) allows users to delete arbitrary files named "cookies"
if X11 forwarding is enabled. X11 forwarding is disabled by
default.
2001-06-14 02:45:30 +00:00
itojun
f7528da67e
make it compile with KRB4 and not with KRB5. from IIJ SEIL team
2001-06-14 02:42:31 +00:00
oster
669f5cc5a5
It's silly to need a parity rebuild after a reconstruction has completed.
...
If we've just reconstructed a disk, then the parity is known to
be correct. (XXX doesn't hold for RAID 6!)
2001-06-14 02:35:56 +00:00
rafal
5b1c3b74ba
Remove externs moved to headers, fix interrupt masks to be zeroes at startup,
...
add MIPS clock interrupt (int5) event counter and clean up some more debug
goo.
2001-06-14 01:15:35 +00:00
rafal
d9d912728f
Get rid of externs moved to header files, add event counter for the clock
...
interrupt, use platform.ticks_per_hz instead of hardcoded constant for the
counter increment (XX: not that the ticks_per_hz is calculated for the IP32
yet).
2001-06-14 01:09:37 +00:00
thorpej
3078a3d26d
It's pretty questionable to printf a PCI tag, but if we're going to
...
do so, at least make the printf compile across the board.
2001-06-14 01:06:56 +00:00
rafal
3327706cab
Add externs for struct platform and the machine type definitions (mach_type,
...
mach_subtype, mach_boardrev).
2001-06-14 01:06:08 +00:00
wiz
ffdbaf6118
Typos and whitespace fixes.
2001-06-13 23:38:29 +00:00
wiz
0f1cb57c85
Note usage of getbootfile(3); sort SEE ALSO section according to
...
mdoc.samples(7).
2001-06-13 23:24:32 +00:00
wiz
f91f11f51f
Use getbootfile(3) instead of _PATH_UNIX by default.
...
Sprinkle some const.
2001-06-13 23:16:27 +00:00
wiz
b2e2ddf49e
It's "extern int", not "extern".
...
Macppc kernels with LINUX_COMPAT now compile again.
2001-06-13 23:10:31 +00:00