bsh
436b3debe1
make this compile with SLHCI_DEBUG
2003-03-13 06:50:23 +00:00
simonb
3c7ff59b5b
Sprinkle some "volatile"; fixes problems with the {read,write}_{1,2}
...
functions big-endian Au1xxx CPUs.
2003-03-13 03:04:13 +00:00
dsl
741870b7ef
Validate that pgid argument to TIOCSPGRP in part of current session.
...
Treat +ve numbers as process group ids and -ve as pids (see tcsetpgrp() in part of current session.
Treat +ve numbers as process group ids and -ve as pids - see tcsetpgrp(3).
(approved by christos)
2003-03-12 23:00:03 +00:00
dsl
5786e3a6e8
Add pgid_in_session() for validating TIOCSPGRP requests
...
(approved by christos)
2003-03-12 22:54:44 +00:00
dsl
1c38f38f99
Add pgid_in_session() for validating TIOCSPGRP requests
...
(approved by christos)
2003-03-12 22:16:31 +00:00
drochner
9b72b507ef
-use our own netif layer
...
-call the pxe unload function only on close(), not on open() errors,
so we have a chance to retry
-remove some remaining references to NFS
2003-03-12 17:35:57 +00:00
drochner
168322ea77
kick out mi libsa/netif.c references
2003-03-12 17:33:55 +00:00
drochner
542ccfb0d5
Kick out the netif layer from mi libsa and implement an own, smaller, one
...
(we really don't need to support multiple interfaces)
Also arrange things so that we are able to unload the PXE stacks only
when we are sure that we don't need them anymore. (To make this more
useful, a hook in exec() is needed.
2003-03-12 17:33:10 +00:00
drochner
68edf0e576
separate ether_sprintf() from the rest of ethernet support -- sometimes
...
it makes sense to use the former w/o the latter (eg PXE)
2003-03-12 16:46:31 +00:00
dsl
8bf20eda9b
KNF function prototypes
2003-03-12 16:39:01 +00:00
dsl
4f78d8c26a
Need to call calcru while l->l_stat == LSONPROC
2003-03-12 15:26:33 +00:00
drochner
7b3b2ea783
no need to include "netif.h" anymore
...
(shared interface stuff is in iodesc.h, included by net.h)
2003-03-12 14:51:31 +00:00
drochner
7816074c59
separate the netif interface from the rest of the networking code,
...
so that it can be replaced easily in md code
2003-03-12 14:49:19 +00:00
minoura
552efeab39
Disable ISA DMA emulation for SoundBlaster module explicitly.
...
This fixes the floppy access problem on some hardware.
Problem reported by Miroslav Kure via Jason Wright <jason [at]
thought [dot] net> of OpenBSD. Thanks.
Fix from ALSA driver; although this setting is undocumented but
according to Jaroslav Kysela <perex [at] suse [dot] cz> of ALSA,
there's no error reported so far.
2003-03-12 13:36:22 +00:00
minoura
f5e8ac30e3
Typo.
...
Register value symbols YDS_PCI_EX_LEGACY_SBMOD_* ->
YDS_PCI_EX_LEGACY_SMOD_*.
2003-03-12 13:28:19 +00:00
drochner
1ebc8c2dbd
cleanup:
...
-update comments
-remove remaining references to "bootparam"
-don't try to interpret extra arguments to net_open() - we
get only passed a NULL anyway (see devopen.c)
2003-03-12 13:15:08 +00:00
drochner
c693137139
sync with mi libsa/nfs.c (with the intent to replace it eventually):
...
-kill "register" attributes
-obey "LIBSA_NO_TWIDDLE"
-ignore leading "/" also in the NFS_NOSYMLINK case
2003-03-12 12:23:06 +00:00
jdc
cc782e8a7e
Make this compile with only SUN4 defined.
2003-03-12 07:51:00 +00:00
matt
cd26de2684
Same code exists in both halves in #ifdef/#else/#endif. move it outside.
2003-03-12 06:00:36 +00:00
wiz
5feeffaf69
Remove some.
2003-03-12 00:24:41 +00:00
wiz
b413b8eb87
Update script for bktr-sf imports.
2003-03-12 00:23:39 +00:00
wiz
fa96c20c88
Merge some more.
2003-03-12 00:19:20 +00:00
wiz
0cdd0c6614
Merge first bktr-sf import.
2003-03-12 00:14:40 +00:00
thorpej
7d8f167f16
Split bus_space and bus_dma into separate files.
2003-03-12 00:09:51 +00:00
wiz
a0685571bd
Import of current state of bktr(4) in sourceforge repository.
...
Changes since last import:
. lots of whitespace cleanups
. typo fixes (e.g. hz, compatibilty)
. fix brightness ioctl return value
. wait for int ready using DELAY() instead of tight loop
2003-03-12 00:02:19 +00:00
martin
717651ac94
Band aid - the infamous dcache_flush_page change independently suggested
...
by Andrey Petrov and Jason Thorpje (AFAIK).
This is a hack that covers some symptoms while we have no idea where
the real problem is. Anyway, since this avoids random data corruption
we better be safe and have this in-tree until the problem is solved the
right way.
2003-03-11 21:28:23 +00:00
jmmv
5649a49e43
After the "insert disk <number>, and press return..." message, check only
...
for the return keypress.
2003-03-11 19:43:04 +00:00
drochner
a82c138b1c
If we get passed a filename (from the command line or default "netbsd"),
...
pass it to the BOOTP server in the "filename" field.
(as the "netboot" bootROMs already did)
So the user can easily switch between different kernels/configurations.
2003-03-11 18:32:59 +00:00
drochner
dd15fa8102
Fix bug in readudp(): we have to return the correct length
...
of the received packet to the caller.
TFTP works now.
2003-03-11 18:29:00 +00:00
augustss
287c3adc4d
Update URLs for the HID spec.
...
(Committed at 36000 feet above the Atlantic on board LH418 using
a broadband satellite connection.)
2003-03-11 16:44:00 +00:00
drochner
df62259ae1
kick out RARP/bootparam - PXE uses BOOTP anyway
2003-03-11 16:30:02 +00:00
drochner
dd688f888f
translate EACCES (happens with NFS)
2003-03-11 15:02:54 +00:00
drochner
ff28ac27ec
use our own NFS fs implementation, which is smaller, does a better job
...
in error reporting and coexists with the TFTP fs
2003-03-11 15:01:51 +00:00
drochner
8e04272b51
add prototypes for local functions
2003-03-11 14:38:45 +00:00
dsl
f8f0dcfd17
Need .code32 after real_to_prot (not .code16)
2003-03-11 12:37:35 +00:00
drochner
f4f1e00d62
make a kernel with the combination ohci@cardbus + ehci@pci link
2003-03-11 11:59:31 +00:00
drochner
a6fda7bcfb
create a symlink so that eg <x86/trap.h> is found
2003-03-11 11:03:23 +00:00
hannken
249e0067fe
Add a port to the NCD Explora451 ThinClient.
...
- Supported devices: le, com, lpt, pckbd, frame buffer.
- Support missing: phy, audio, pcmcia.
- Boots from network or md.
Approved by: Eduardo Horvath <eeh@netbsd.org>
2003-03-11 10:57:54 +00:00
hannken
44b1e07ec9
Add support for the IBM 403GCX cpu. Enabled with "options PPC_IBM403".
...
- different set of device control registers.
- non-standard access to the time base.
- 16 byte cache lines.
Approved by: Eduardo Horvath <eeh@netbsd.org>
2003-03-11 10:40:15 +00:00
perseant
ec13062af8
- Get rid of unused #ifdefs LFS_NO_PAGEMOVE and LFS_MALLOC_SUMMARY (both
...
always true) and accompanying dead code.
- When constructing write clusters in lfs_writeseg, if the block we are
about to add is itself a cluster from GOP_WRITE, don't put a cluster
in a cluster, just write the GOP_WRITE cluster on its own. This seems
to represent a slight performance gain on my test machine.
- Charge someone's rusage for writes on LFSes. It's difficult to tell
who the "right" process to charge is; just charge whoever triggered
the write.
2003-03-11 02:47:39 +00:00
nathanw
11aebbf730
Change the contract for timer_settime() (the internal routine, not the
...
syscall sys_timer_settime()) to take an absolute value for realtime
timers. This avoids a pair of gratiuitous conversions with the
possibility that the timer's intermediate value would be 0.0, which
would signal timer_settime() to cancel the timer.
Adjust callers of timer_settime() to compensate; catch the case where
sys_timer_settime() with an absolute time value of now and a virtual
timer would also be subtracted down to a timer-cancelling 0.0.
This should fix the bug seen in libpthread's nanosleep() where certain
applications, such as xmms, would wedge with unexpired userlevel
alarms.
2003-03-10 21:49:56 +00:00
thorpej
5d036d28d6
Fix an error message.
2003-03-10 20:50:22 +00:00
thorpej
2d5e311009
Make PGALLOC_VERBOSE compile where size_t != int.
2003-03-10 19:52:24 +00:00
thorpej
2a493af5b0
For PMAP_CACHE_VIVT platforms, make UBC_RELEASE_UNMAP evaluate to TRUE,
...
and add a comment explaining why.
Reviewed by Chuq Silvers.
2003-03-10 15:07:17 +00:00
lukem
6f7e79fef4
install sys/tree.h
...
organise INCS= lines to make it easier to add includes in the future
2003-03-10 07:55:14 +00:00
augustss
bf2de652b1
Change debug message.
2003-03-09 19:51:13 +00:00
manu
523dbf2146
Quick and dirty version of io_registry_entry_get_properties.
2003-03-09 18:33:28 +00:00
tsutsui
f86b0e1741
In tlb_exception(), don't panic immediately on access at va == 0
...
from kernel mode if fault hander is set.
2003-03-09 16:14:29 +00:00
he
1565f9401d
Remove remnants of support for console on ite, since the ite device
...
driver is no more.
2003-03-09 13:59:56 +00:00
mrg
60b9080da3
don't depend on "../../../../../gnu/dist/toolchain/include/coff/rs6000.h".
2003-03-09 00:39:10 +00:00
perseant
a46b9ccf95
Only #define LFS if not already defined.
2003-03-08 23:18:54 +00:00
perseant
0493be6ba8
Take away "#ifdef LFS_UBC".
2003-03-08 22:14:31 +00:00
perseant
8feb2c22f5
Take away "#ifdef LFS_UBC".
2003-03-08 21:46:04 +00:00
dsl
8a6f95626f
Avoid pulling strncpy() into minimal boot code
2003-03-08 21:30:59 +00:00
dsl
ef18027d4d
Don't trust %bp to point to same place in real and protected modes.
...
prot_to_real preserves %ebp but changes %ss and %sp.
(ok if real %ss is offset n*64k from protected %ss - which it has been)
2003-03-08 21:09:37 +00:00
tsutsui
004ae00514
Use cpu_number() in UVMHIST_LOG() rather than non-public ci_cpuid member
...
in struct cpu_info.
2003-03-08 15:17:23 +00:00
he
b648593b37
Initialize the two new members of "struct consdev" to NULL, so that
...
this file compiles again.
2003-03-08 10:59:02 +00:00
he
34c6df3404
Initialize the two new members of "struct consdev" to NULL so that
...
this file compiles again.
2003-03-08 09:47:13 +00:00
he
0f55132c91
Initialize the two new members of "struct console" to NULL so that
...
this file compiles again.
2003-03-08 09:42:56 +00:00
rafal
67cca2386c
Protect uses of MIPS_R5000 with #ifndef ENABLE_MIPS_R3NKK in new code just
...
as the old code does.
2003-03-08 05:18:25 +00:00
rafal
33fcc94c6f
Add support for R5k secondary caches, from code Chris Sekiya sent me a long
...
time ago, with small tweaks by me. Since the R5k doesn't do VCE, the pmap
still needs to be whacked for R5kSC CPUs to work correctly, but this is a
start.
2003-03-08 04:43:24 +00:00
tsutsui
12a8e27857
Remove .pdr section which is created by binutils-2.13.2.1
...
on objcopy call to make ECOFF kernels.
2003-03-08 02:58:55 +00:00
perseant
4b4f884b89
Add an lfs_strategy() that checks to make sure we're not trying to read
...
where the cleaner is trying to write, instead of tying up the "live"
buffers (or pages).
Fix a bug in the LFS_UBC case where oversized buffers would not be
checksummed correctly, causing uncleanable segments.
Make sure that wakeup(fs->lfs_iocount) is done if fs->lfs_iocount is 1
as well as 0, since we wait in some places for it to drop to 1.
Activate all pages that make it into lfs_gop_write without the segment
lock held, since they must have been dirtied very recently, even if
PG_DELWRI is not set.
2003-03-08 02:55:47 +00:00
he
385f6e3afe
Remove to local declarations of "p" which are no more in use, to make
...
this compile again.
2003-03-08 01:20:21 +00:00
he
585b922ff4
Initialize the new function pointers to NULL, so this compiles again.
2003-03-08 01:18:42 +00:00
fvdl
59a910ed6a
Move the MTRR option to std.x86_64.
2003-03-08 00:08:46 +00:00
lukem
6107a9b605
crank memory disk from 1360 blocks to 1376 blocks
2003-03-08 00:04:36 +00:00
jmc
4829a1952a
Redo last fix to work correctly. Need to run abort on each orb (though it
...
doesn't much now it will eventually) and then so a proper sbp2_free_orb.
2003-03-07 20:18:57 +00:00
jonathan
cd38c4da5c
Commit workaround for hardware bug: 5701 chips running in PCI-X mode
...
require that the DMA receive buffers be aligned. The driver was
deliberately mis-aligning by 2 bytes, to force the layer-2/3
headers to 32-bit alignment.
Workaround: if chip is a 5701, and is in PCI-X mode, leave the DMA
buffers aligned. If the host CPU requires alignment, copy the buffer
after reception to force aligment.
Tested on an i386 in PCI-X bus, with __NO_STRICT_ALIGNMENT forced off.
Patch and comments reworked to minimize drift from
FreeBSD if_bge.c rev 1.14.
2003-03-07 18:57:53 +00:00
jonathan
5214474746
Fix typo: PRODUCER_BUG quirk mask overlapped the PCIX register-bug quirk.
...
(Harmless, since we dont use the latter; but we will use it very soon.)
2003-03-07 18:40:18 +00:00
matt
dfb9f2d504
Remove some constant (use value in bus_space_tags).
2003-03-07 18:24:00 +00:00
drochner
c0e23f3152
-Fix ORB queue corruption / use of free()d memory
...
caused by bad interaction of sbp2_free() and sbp2_abort().
sbp2_abort() requires that its argument ORB is on the
"active" list, and it puts it onto the freelist - sometimes.
So we had 2 causes of corruption:
-removing the ORB from a list which it isn't on
-free()ing recycleable items on the ORB freelist
-minor cosmetics
2003-03-07 16:29:33 +00:00
drochner
49e6bf0fa5
Add support for "simplified direct" (aka RBC) devices.
...
This reveals some ugly points in the sd driver, as
the PQUIRK_ONLYBIG flag (there are 6, 10, 12 and 16 byte
CDBs for r/w) and the handling of small/big mode
select/sense. This should be cleaned up.
Also the "long" struct disk_parms.disksize is worth
a thought...
2003-03-07 16:18:57 +00:00
kanaoka
5c5aa9ba83
Make sure this compiles with ACPI_DEBUG.
...
Pointed out by Patrick Welche <prlw1@newn.cam.ac.uk>.
2003-03-07 15:17:44 +00:00
rjs
b486d4a0ff
Add NULL cn_halt and cn_flush entries to consdev.
2003-03-07 13:30:35 +00:00
he
0a235da1cd
Add inclusion of <sys/lock.h> to allow compilation of usage of
...
MALLOC() to succeed.
2003-03-07 12:40:12 +00:00
fvdl
02de215ad2
Add cpu* at mainbus.
2003-03-07 11:02:50 +00:00
thorpej
b81d443ef3
Allow a memory disk image to be statically included in the kernel
...
to be specified in the kernel configuration file, like so:
makeoptions MEMORY_DISK_IMAGE="/path/to/image.fs"
2003-03-07 01:26:12 +00:00
dsl
ef50700873
LIBSA_NO_CLOSE is LIBSA_NO_FS_CLOSE everywhere else.
2003-03-07 00:46:37 +00:00
matt
52f7db1beb
Fix C&P tpyo.
2003-03-07 00:14:38 +00:00
taca
e7e88128f7
Fix compile error with struct consdev change.
2003-03-06 23:47:35 +00:00
fvdl
d2c1c747ec
Remove last traces of pccons.
2003-03-06 23:21:36 +00:00
matt
c4d8a6226e
Make the intel phy match the i82562 phys.
2003-03-06 22:38:09 +00:00
fvdl
167eeeab9c
Update for kernel include changes.
2003-03-06 22:32:07 +00:00
bouyer
5cdb9ac484
Regen: Remove duplicate in previous.
2003-03-06 22:25:43 +00:00
bouyer
0cc9494784
Remove duplicate in previous.
2003-03-06 22:25:23 +00:00
fvdl
06114d8df6
Don't descend into ../i386/include anymore.
2003-03-06 22:22:55 +00:00
fvdl
00289f6f52
Put the correct value in the TPR before entering DDB.
2003-03-06 22:17:44 +00:00
bouyer
35f51b36b4
Regen: Add several SiS host bridges, from FreeBSD.
2003-03-06 22:10:26 +00:00
bouyer
bc029ddc91
Add several SiS host bridges, from FreeBSD.
2003-03-06 22:09:46 +00:00
thorpej
1557986bd7
Don't require that input buffers and output buffers be of the same
...
type.
2003-03-06 21:32:59 +00:00
thorpej
a572240890
For functions with inputs and outputs, we currently require that the
...
buffer types be the same; don't rely on the middle-end to enforce this
for us.
2003-03-06 21:10:45 +00:00
fvdl
51c335ad9a
Fixup DDB entry and register access.
2003-03-06 20:58:09 +00:00
jonathan
a9ae465f5e
Commit the FreeBSD alternative of a private patch to check NIC internal
...
ram for using TBI, versus MII/GMII.
FreeBSD commit log and versions:
Obtain the media type from the shared memory and only use the eeprom
as a fallback.
if_bge.c: rev 1.30
if_bgereg.h: rev 1.13
Thanks to Paul Saab @mu.org.
2003-03-06 20:53:05 +00:00
thorpej
9e7bb2595e
Based on the feedback on wasabisystems.com!bsd-api-discuss (sure wish
...
people would read that list in a more timely fashion!), change the new
64-bit memory reporting sysctl nodes to report bytes. This should not
be a problem, since it's only a week old, and no applications use the
new nodes yet.
2003-03-06 20:32:59 +00:00
matt
feeb962699
Correct pci1 bus_space tag.
2003-03-06 20:15:24 +00:00
jonathan
cf38b6aae6
FreeBSD fix for problems reported (to FreeBSD) with 16-bit accesses
...
to 32-bit device registers. Add (untested) NetBSD fix for big-endian hosts.
From FreeBSD versions:
if_bge.c: 1.26 and 1.27
if_bgereg.h: 1.12
FreeBSD (MFC) comment:
MFC: Avoid 16-bit accesses to device memory. Use volatile where
appropriate in referencing device memory. Parenthesize BGE_HOSTADDR
define properly.
2003-03-06 20:12:53 +00:00
thorpej
ea9a7f73e0
* No need for an interface attribute on "dma".
...
* Take the "dma" attribute off fhpib and nhpib, so that leaving out "dma"
causes a compile-time error, rather than a run-time crash.
2003-03-06 18:28:52 +00:00
thorpej
bba7685f5f
Update for consdev changes.
2003-03-06 18:24:52 +00:00
darrenr
bacf7b9b2b
When unblocking threads, do not call setrunnable() on the thread we will
...
be returning because the code path that calls is will very likely call
setrunnable() again on the returned thread, leading to a panic because
the thread returned is already at LSRUN. This fixes a problem where netbsd
would panic when using gdb (5.3) on a process with multiple lwp's like this:
% gdb program
(gdb) run
^C
(gdb) quit
2003-03-06 15:31:14 +00:00
skrll
bcc03a47aa
Add NULL cn_halt and cn_flush entries to consdevs. Hi Matt!
2003-03-06 13:09:28 +00:00
rafal
d5afdde2ba
Catch up to struct consdev changes.
2003-03-06 07:59:37 +00:00
igy
9ead47682a
catch up to consdev update
2003-03-06 07:39:34 +00:00
matt
210f48e582
Remove unneeded conditional code.
2003-03-06 07:15:46 +00:00
igy
3c0a5d1f13
Remove #ifdef __HAVE_GENERIC_SOFT_INTERRUPTS switch and old interrupt
...
support. Ixp12x0 port always uses generic soft interrupt.
2003-03-06 06:17:43 +00:00
igy
edcaa77675
insert macro to protect itself against multiple includion.
2003-03-06 06:14:16 +00:00
matt
3dc865b386
Relocate Discovery first thing in initppc (if not at expected address).
...
This implies that if PMON tells us where the GT is, we write that address
in gtbase.
2003-03-06 06:04:21 +00:00
matt
a190651169
Make most of PPC (OEA) bus_space's identical (or as identical as possible).
...
(except mvmeppc).
2003-03-06 05:25:18 +00:00
fvdl
27e2af69da
Call db_machine_init to set up the ddb ipi vector.
2003-03-06 00:47:00 +00:00
matt
6074e25e08
Add support for mmap(2) to be able to return memory aligned on a 2^n
...
boundary.
2003-03-06 00:41:51 +00:00
matt
6221ccd63f
Make sure to flush each line after printf.
2003-03-06 00:39:42 +00:00
matt
7109fe9012
Add cn_halt and cn_flush entries to consdevs. (needed for dma-only console
...
devices).
2003-03-06 00:38:26 +00:00
matt
0b8a5fd80f
Adapt to powerpc/bus.h changes.
2003-03-06 00:20:39 +00:00
fvdl
4e5e707719
* Rework interrupt code
...
* Redirect some include files to x86
* Enable ioapic usage
* Do MP.
2003-03-05 23:55:57 +00:00
thorpej
6689073e50
When computing the LOADADDR() of .data and .sdata, use:
...
LOADADDR(previous_section) + (ADDR(current_section) - ADDR(previous_section))
to avoid using SIZEOF(), which does not properly take into account
the size of orphans that might be sorted with the section.
2003-03-05 23:54:22 +00:00
christos
1fbc199e4e
use M_ACPI where appropriate.
2003-03-05 23:00:56 +00:00
christos
35f9126434
Fix the fallout from potr malloc changes
2003-03-05 22:56:46 +00:00
manu
a6757a0de1
Less accurate vm_region, but it sticks better to Darwin results.
2003-03-05 22:39:48 +00:00
matt
ff2281b498
Add preliminary support Marvell (Galileo) Discovery System Controllers.
...
This code was contributed by Allegro Networks.
2003-03-05 22:08:18 +00:00
dsl
4c320740d2
Use do_setres{u,g}id for osf1_sys_set{u,g}id
2003-03-05 18:47:39 +00:00
dsl
dfdb668a2e
Reimplement linux_sys_setresgid() in terms of do_setresgid()
2003-03-05 18:46:11 +00:00
dsl
eabc565aaf
Use do_setresuid() to implement linux_sys_setresuid()
2003-03-05 18:44:46 +00:00
dsl
a5de203f9f
Add do_setresuid() and do_setresgid() and implement sys_setuid, sys_seteuid,
...
sys_setreuid (and gid equivs) in terms of them.
2003-03-05 18:42:19 +00:00
dsl
ef96ef8655
Add definitions for do_setres{u,g}id() to common up various system calls that
...
set the uid and gid values.
2003-03-05 18:39:17 +00:00
mycroft
adddd74e0e
DANGER WILL ROBINSON!
...
We cannot store LWP pointers permanently in lock structures, for two reasons:
1) They are somewhat ephemeral. Dangling pointers are bad.
2) A different LWP may issue the unlock, and in this case, we were not actually
doing the unlock at all. This was causing processes to exit without undoing
fcntl(2) locks. Furthermore, the locks are process-specific to begin with,
so the test was just plain wrong.
Instead, we go back to storing a proc pointer for POSIX locks. In addition, we
add an extra pointer to the LWP, which is used in deadlock detection. After
the lock is granted, this pointer is 0ed and there is no reference to the LWP.
Now evolution can inc my mail again.
2003-03-05 18:28:22 +00:00
shiba
012395b8fb
Used correct aue_flags in ELECOM LD-USB/T and ELECOM LD-USB/TX.
...
Submitted by: Yasushi Oshima <oshimaya@sc.starcat.ne.jp>
Takeshi Shibagaki <shiba@netbsd.org>
(refer to [bsd-usb:685],[bsd-usb:686])
Approved by: gehenna, kanaoka
2003-03-05 17:37:36 +00:00
soren
ea477f4ba7
Forgot dummy printf.
2003-03-05 16:52:16 +00:00
soren
1f3cd4f95f
Be more verbose about unsupported keys.
2003-03-05 16:18:24 +00:00
kochi
7629f23bb8
Fix a bug that affects machines which has non-zero base GPE blocks.
...
This bug is already reported to Intel ACPICA people.
2003-03-05 15:13:01 +00:00
ragge
be084ba94f
vax -> __vax__. Didn't I fix this a year ago?
2003-03-05 13:19:59 +00:00
itohy
b75bbfd9a4
Regen (add ESS1878 (ess) and ESS0005 (joy))
2003-03-05 13:10:03 +00:00
itohy
24c03411b6
Add ESS1878 (ess) and ESS0005 (joy) for ESS ES1878 audio device.
2003-03-05 13:08:27 +00:00
dsl
35df36296b
Report correct values for p_uutime_{u}sec, p_ustime_{u}sec and p_uctime_{u}sec
2003-03-05 11:46:49 +00:00
dsl
15cb5a5b82
Apportion execution time evenly between stime and utime when the process
...
hasn't been interrupted by any profiling interrupts.
Collect time from all active LWPs.
2003-03-05 11:44:01 +00:00
dsl
dc55700b28
Get processes execution time before the LWPs state is changed
2003-03-05 11:40:55 +00:00
agc
2a540cd45f
Forward declare struct lwp as well as struct trapframe.
2003-03-05 11:28:14 +00:00
grant
e41c87001a
fix some comments
2003-03-05 10:27:59 +00:00
jklos
ba44f83888
Fix from Frederick Bruckman to get current kernels booting again.
2003-03-05 05:56:26 +00:00
matt
92d0498c3d
Remove port-specific procfs_machdep.c (since they are all identical and
...
a better one resides in powerpc/powerpc/).
2003-03-05 05:43:42 +00:00
matt
6d251b3be3
Make AltiVec registers available via ptrace/procfs. Simplify AltiVec
...
processing. Add a "common" procfs_machdep.c for PowerPC platforms.
Even though it is supposed to be port specific, most (if not all)
PowerPC ports can just use the common one.
2003-03-05 05:27:24 +00:00
thorpej
72dd57106c
Implement a minimal pager for the uvm_loanzero_object, which simply has
...
a "put" method which reactivates or dequeues the page.
Need for pager pointed out by enami tsugutomo.
2003-03-05 01:52:41 +00:00
fvdl
91ef1f21bf
Make the apic address unsigned, as it should be.
2003-03-04 23:27:32 +00:00
fvdl
c89161c65f
ioapic address is not actually a pointer, initialize it as uint32_t
2003-03-04 23:21:25 +00:00
fvdl
e575c4bc69
Fix some fields that did not have explicit types yet.
2003-03-04 23:20:29 +00:00
fvdl
48aa516ffe
Use read_psl and write_psl.
2003-03-04 22:43:36 +00:00
fvdl
e1a37a9604
Define read_psl and write_psl as aliases for read_eflags and write_eflags.
2003-03-04 22:43:09 +00:00
fvdl
b2a3a55d38
Enable the define for EISA MPBIOS support.
2003-03-04 22:19:32 +00:00
fvdl
d9bd125d50
Make EISA support conditional (on by default on i386).
2003-03-04 22:19:04 +00:00
perseant
d51fdbef63
Make sure we hold the uobjlock when checking for dirty pages, in lfs_vflush.
...
Note that pages can become dirty without our knowing it, anyway; don't
panic if that happens.
2003-03-04 19:19:43 +00:00
perseant
003cfbd545
Don't add dirty blocks to the ifile in lfs_segunlock, if we're trying to
...
unmount the filesystem. This avoids a "dirty blocks" panic.
2003-03-04 19:15:26 +00:00
perseant
958a4c008c
Don't force all truncations to be synchronous
2003-03-04 19:10:35 +00:00
tron
98e6fa0c08
Teach procfs_allocvp() about Puptime to avoid panics if "/proc/uptime"
...
is opened.
2003-03-04 18:55:02 +00:00
kochi
b1b04fbfdf
Update for acpica-unix-20030228.
2003-03-04 17:28:00 +00:00
kochi
589c0d70ae
Resolve conflicts from acpica-20030228-2 import.
2003-03-04 17:25:09 +00:00
kochi
f874599c20
Import the Intel ACPICA 20030228 release.
2003-03-04 17:07:34 +00:00
kochi
f93b318be7
import the Intel ACPICA 20030228 release
2003-03-04 16:43:14 +00:00
yamt
182b7b7cda
lower acpi interrupt level to IPL_VM.
...
it's the highest level it can use because it uses malloc(9).
XXX probably, it's still higher than it needs.
ok'ed by thorpej.
2003-03-04 13:44:08 +00:00
soren
e0395ed0f1
G/c old macppc grf entries.
2003-03-04 13:29:12 +00:00
soren
889bcccc72
Attach on recent TiBooks.
...
XXX The mixer doesn't work yet.
2003-03-04 13:28:20 +00:00
dsl
b7c921ed3d
The IDT is an array of struct gate_descriptor.
2003-03-04 10:39:10 +00:00
matt
fb2cebb577
Pass the address of the intrframe to the ext_intr routine.
2003-03-04 08:34:12 +00:00
matt
e1d9426036
Make to define ${BOARDTYPE}
2003-03-04 07:52:21 +00:00
matt
107803a3a3
Re-arrange things in evbppc & powerpc to support OEA-based eval boards
...
in evbppc. OEA-based board(s) to be added later.
2003-03-04 07:50:57 +00:00
matt
9875f9218d
Add some missing volatiles.
2003-03-04 07:48:09 +00:00
thorpej
d3f54e81dd
Fix the following pathological scanario:
...
* User allocates ZFOD region, but does not actually touch the buffer
to fault in the pages.
* In a loop, user writes this buffer to a network socket, triggering
sosend_loan().
* uvm_loan() calls uvm_loanzero() once for each page in the loaned
region (since the pages have not yet faulted in). This causes a
page to be allocated and zero'd. The result is the kernel spends
a lot of time allocating and zero'ing pages.
This fixes creates a special object which owns a single zero'd page.
This single zero'd page is used to satisfy all loans of non-resident
ZFOD mappings.
Thanks to Allen Briggs for discovering the problem and for providing
an initial patch.
2003-03-04 06:18:54 +00:00
thorpej
23d2066add
Cast the argument passed to vtophys() to a vaddr_t.
2003-03-04 01:10:50 +00:00
fvdl
a345044000
s/i386_isa_chipset/x86_isa_chipset/
2003-03-04 01:07:36 +00:00
fvdl
f28dd1acef
s/i386_isa_chipset/x86_isa_chipset/, it's defined on multiple ports, but
...
used in shared code.
2003-03-04 01:06:38 +00:00
fvdl
d8464bf767
The intrmasks array is only used in if 0-ed code, so if 0 it as well.
2003-03-03 23:49:18 +00:00
pk
f26c7b7e7f
Note a kernel pmap locking problem in pmap_kenter_pa4m().
2003-03-03 22:43:58 +00:00
fvdl
7b925fa8cf
Use unsigned long long to print msr values.
2003-03-03 22:23:22 +00:00
fvdl
2934facefc
use CVAROFF.
2003-03-03 22:17:15 +00:00
fvdl
60ff7764b1
Use pmap_cpu_has_pg_n()
2003-03-03 22:16:54 +00:00
fvdl
22c3c5973b
The IDT is an array of struct gate_descriptor.
2003-03-03 22:16:20 +00:00
fvdl
5d9be5f0db
The IDT only contains gate descriptors, so define it as such.
2003-03-03 22:14:15 +00:00
fvdl
1b64bc0ae7
define pmap_cpu_has_pg_n and pmap_cpu_has_invlpg to make code sharing
...
easier.
2003-03-03 22:13:16 +00:00
fvdl
3ebdf8bcc3
Make CVAR asm reference macro CVAROFF, taking an offset.
2003-03-03 22:12:22 +00:00
manu
03dfd69a01
Added vm_region and vm_msync traps
2003-03-03 22:07:39 +00:00
mycroft
2198701c01
The DMA support here never worked, so yank it out.
2003-03-03 22:07:21 +00:00
jdolecek
b83db8c688
only pull in/declare veriexec related stuff with VERIFIED_EXEC
2003-03-03 21:25:09 +00:00
jdolecek
fedc587dac
#if 0/notnow stuff which isn't currently used
...
pointed out by Krister Walfridsson
2003-03-03 21:17:05 +00:00
jdolecek
ede214240b
#if 0 or g/c unused stuff
...
pointed out by Krister Walfridsson
2003-03-03 21:16:02 +00:00
mjacob
1ca48f3a5e
Fix egregious bug where we meant to use bit 5 (1<<5) instead of the
...
value of 5.
2003-03-03 20:54:56 +00:00
mjacob
1a127bb90e
spelling
2003-03-03 20:54:28 +00:00
mjacob
15332b558c
Propagate iid && rxid when we're putting back an ATIO for FC.
...
Spelling fixes.
2003-03-03 20:54:12 +00:00
mjacob
9af98d9f8e
Spelling fixes. Leave an example for how to set icbdelay timer for
...
ZIO operations. If we have ISP_FW_CRASH_DUMP defined, don't reinit
the chip on ISP_CONN_FATAL (that's up to the outer layers to do).
2003-03-03 20:53:14 +00:00
fvdl
cf1495e079
Install cpuvar.h
2003-03-03 20:26:18 +00:00
soren
fa10b32567
Regen.
2003-03-03 10:58:45 +00:00
soren
ddc66001e3
Add ATI Radeon M9.
2003-03-03 10:57:36 +00:00
bsh
cf662c7814
add Philips UCB1400
2003-03-03 02:14:12 +00:00
thorpej
b63ad6f9e2
Shuffle the order in the file that some mbuf flags are listed. Flag
...
values have not changed.
2003-03-02 22:35:32 +00:00
ragge
6c0c8e1049
Change the pmap to use 512-byte pages as user page table pages instead of
...
PAGE_SIZE pages (4k). An average small program uses ~6 4k pages (24k),
while the same program only uses ~20 512 byte pages (10k), so it will be
a small memory usage improvement. The large improvement will be the upcoming
ability to share page table pages between processes for shared libraries.
Remaining: should be able to give back ptp pages to the system.
2003-03-02 22:19:06 +00:00
christos
767bfa5fb6
microtime.S depends on assym.h
2003-03-02 22:19:05 +00:00
ragge
2b65555cf7
Change the pmap to use 512-byte pages as user page table pages instead of
...
PAGE_SIZE pages (4k). An average small program uses ~6 4k pages (24k),
while the same program only uses ~20 512 byte pages (10k), so it will be
a small memory usage improvement. The large improvement will be the upcoming
ability to share page table pages between processes for shared libraries.
Remaining: should be able to give back ptp pages to the system.
2003-03-02 22:19:04 +00:00
tshiozak
31e2cbf0b5
add some ISO C 1995 I18N functions and types:
...
btowc, wctrans, towctrans, wcscoll, wcsxfrm, wctype_t and wctrans_t.
2003-03-02 22:18:11 +00:00
christos
924acc6389
simplify the script, and add a disabled netbsd note for now.
2003-03-02 22:17:30 +00:00
jdolecek
b7335072c2
add kqueue (EVFILT_READ, EVFILT_WRITE, EVFILT_VNODE) support
...
this is basically copy of what nfs_kq.c does - a thread periodically
polls server checking if any of the wateched files changed
eventually this should be changed to take advantage of SMB Directory
Change Notify
2003-03-02 22:06:50 +00:00
pk
77accc351e
Use the new pmap_kprotect() function instead of pmap_changeprot().
...
The latter is now a pmap internal function; and it wasn't used correctly
in mkclock.c anyway.
2003-03-02 21:42:48 +00:00
pk
22cf03a09f
pmap_changeprot() is not a UVM <-> PMAP interface function; make it internal.
...
Provide pmap_kprotect() for MD code to change protection on a range of
kernel addresses (cuurent users: intr.c and mkclock.c).
2003-03-02 21:37:20 +00:00
jdolecek
8984cf4564
add couple more SMB constants and explanation texts
2003-03-02 18:55:48 +00:00
jdolecek
b49d58ec90
use different wmesg for the reader and the writer
2003-03-02 18:54:50 +00:00
fvdl
7f72a2bff2
Clean up some unneeded "mca.h" and "eisa.h" includes, make one that is
...
needed dependent on !__x86_64__. To be revisited later.
2003-03-02 18:27:14 +00:00
fvdl
636c7ca859
x86_64 has no mca.h and eisa.h (should perhaps just generate empty ones)
2003-03-02 18:11:03 +00:00
fvdl
8d69f823b1
Redirect to x86/
2003-03-02 18:09:42 +00:00
enami
0f4835d18b
Don't specify string width in the low level function like db_num_to_str.
...
The pretty printing should be done much higher level, and anyway the
value 10 doesn't make sense.
2003-03-02 13:39:40 +00:00
enami
ca4393664d
... and no need to aqcuire lock while free'ing old hash which no one
...
refers it.
2003-03-02 13:26:22 +00:00
aymeric
95d6206a6c
ignore multicast PPPoE packets ASAP.
...
This improves performance a lot on slow machines behind a cable modem.
Protect it with PPPOE_SERVER as a reminder that this will have to be changed
if we add PPPoE server code in the kernel one day.
2003-03-02 10:50:14 +00:00
matt
76dd2c90fa
In uvm_map_space, if the current entry is above the new space use the
...
previous entry. (not if the current entry starts at the end of the new
space; that case doesn't take into account if the new space had a specified
alignment).
2003-03-02 08:57:49 +00:00
tsutsui
8aa243df44
Bump SYMTAB_SPACE to 192000.
2003-03-02 04:42:40 +00:00
perseant
9192f047ac
Account SEGUSE_ACTIVE correctly so that the automatic segment cleaning
...
actually happens.
Add a new fcntl call that will write the minimum necessary to checkpoint
(i.e., for on-disk directory structure to be consistent, not including
updates to file data) so that the cleaner can clean segments more quickly
without sacrificing three-way commit for cleaning.
2003-03-02 04:34:30 +00:00
tsutsui
9c5dcb82ac
Cleanup G2_LOCK/G2_UNLOCK macros per discussion on port-dreamcast:
...
- Use _cpu_intr_suspend()/_cpu_intr_resume() in G2_LOCK/G2_UNLOCK macros
rather than _cpu_exception_suspend()/_cpu_exception_resume().
TLB miss exceptions could happen on accessing buffer, but it will never
block G2bus cycle anyway.
- Restore the previous SR.IMASK value in G2_UNLOCK().
- some misc cosmetics.
Should fix spontaneous reboots by "ping -s 8192 host" on the LAN Adapter.
2003-03-02 04:23:16 +00:00
matt
d6729b1f53
When finding an aligned block, we need to truncate in topdown, not roundup.
2003-03-02 02:55:03 +00:00
matt
5401f85320
Restore MQ to trapframe from mcontext since it's in both.
2003-03-02 01:07:55 +00:00
salo
2d4f6b63a7
Regen.
2003-03-02 00:36:11 +00:00
salo
cec306c345
Actually, there is no space in Silicon Motion Lynx* names (e.g. Lynx EM ->
...
LynxEM), the already existing records misguided me.
2003-03-02 00:33:10 +00:00
bjh21
336f2d2049
Add support for the 82C710, the original Universal Peripheral Controller.
...
It turns out (now that I've found the data sheet) to have a substantially
different configuration mechanism from its successors.
2003-03-02 00:21:47 +00:00
enami
e8083140e3
Cosmetic changes.
2003-03-01 23:48:44 +00:00
fvdl
0cb6724bc7
lock_machdep.c moved here from arch/i386/i386.
2003-03-01 22:55:02 +00:00
fvdl
f555536d9b
Move lock_machdep.c to arch/x86/x86.
2003-03-01 22:53:39 +00:00
matt
986f7ca902
Add machdep sysctl support. Support booted_device, consdev, and
...
printfataltraps.
2003-03-01 21:51:59 +00:00
mjacob
67427c17a2
Argh. Commited the wrong file.
2003-03-01 19:49:45 +00:00
mjacob
74c56226fb
Fix RFD_TCI macro.
2003-03-01 19:30:30 +00:00
fvdl
aeaf29a3a3
Redirect to x86/cpuvar.h
2003-03-01 18:30:03 +00:00
fvdl
9ad868eb65
Moved here from i386/include
2003-03-01 18:29:28 +00:00
fvdl
a3b7772adf
Move the CPU identification out of machdep.c into a seperate file.
2003-03-01 16:37:51 +00:00
fvdl
de9139c67d
Follow the spec more closely, and do an ljmp immediately after enabling
...
protected mode, not several instructions afterwards.
2003-03-01 16:36:37 +00:00
fvdl
dbef38adbf
This was still falsely referencing the ipending variable, which isn't
...
used anymore. Use curcpu()->ci_ipending (== cpu_info_primary.ci_pending,
since this is only used in the UP case).
2003-03-01 16:35:07 +00:00
martin
a3248903e4
Backout previous, I'm on crack obviously.
2003-03-01 15:50:15 +00:00
martin
b15e7fee31
Initialize sc to NULL, it could be used uninitialized otherwise when
...
searching for our sc by host unique tag.
2003-03-01 15:24:36 +00:00
aymeric
038e238665
when looking up a Host-Uniq tag, do not consider NULL as a valid
...
(struct pppoe_softc *). Although we do not generate such tags, other hosts
could and some actually do.
2003-03-01 15:10:13 +00:00
fvdl
d2315fd2b7
Remove accidentally enabled debug printf.
...
From Enami.
2003-03-01 13:05:37 +00:00
pk
1b5340d327
Add support for large kernels by searching for a physical memory segment
...
to fit it in. As a bonus, the kernel is now also mapped to the virtual
address (i.e. KERNBASE) it is linked at.
2003-03-01 13:01:55 +00:00
yamt
32a79f1dd0
use pid_t for pid.
2003-03-01 11:20:21 +00:00
yamt
ddb9465f5f
make fdcheckstd f_slock friendly.
2003-03-01 09:19:53 +00:00
enami
015ce49004
Don't require root privilege explicitly to issue ioctl. It should be
...
controlled by file's attribute.
2003-03-01 08:01:17 +00:00
matt
6c3a6223d4
If we are doing TOPDOWN, we want to truncate the address downwards. If not,
...
we want to round the address upwards. I hope this is the last change.
2003-03-01 05:55:51 +00:00
atatat
40f3045957
Add p_svuid and p_svgid to kinfo_proc2. Populate them in the kernel
...
and in libkvm. Then teach ps how to show them to you.
Also, teach ps how to show the names for all the uids, the rest of the
group numbers, and the "group access list".
2003-03-01 05:41:55 +00:00
perseant
cfc73a5fa9
Be careful to always zero pages on truncation/fragment extension,
...
in the case where the filesystem block size is larger than PAGE_SIZE.
2003-03-01 05:07:51 +00:00
thorpej
cdf1b0026c
Allow TCP connections to hosts on a local network to use a larger
...
slow start initial window. Default this larger initial window to
4 packets, allowing it to be adjusted with net.inet.tcp.init_win_local.
2003-03-01 04:40:27 +00:00
thorpej
5afa6838bf
Do the syscall_plain/syscall_fancy dance on ARM. Shaves a fair number
...
of cycles off the syscall overhead.
Since all COMPAT_LINUX platforms now support __HAVE_SYSCALL_INTERN,
garbage-collect the LINUX_SYSCALL_FUNCTION stuff.
2003-03-01 04:36:38 +00:00
enami
fa6061e7a4
Make this file compiles when FW_DEBUG is defined but SBP2_DEBUG isn't defined.
2003-02-28 23:31:41 +00:00
enami
5bb41745ed
Cosmetic changes.
2003-02-28 23:24:40 +00:00
enami
0c1c93f120
Match ServerWorks CSB6 IDE controller.
2003-02-28 22:07:05 +00:00
enami
f0d62ac9ca
Regen.
2003-02-28 22:05:59 +00:00
enami
8489e9c53e
Add product id of ServerWorks CSB6 IDE controller.
2003-02-28 22:05:00 +00:00
matt
ad22a09f59
Make sure that the initial address is aligned correctly. Note that before
...
this alignment would have been backward into the dataspace covered by
MAXDSIZ. Now the alignment is done forward. XXX It is expected that
in the TOPDOWN case, VM_DEFAULT_ADDRESS will make sure any address it
returns has the proper alignment for that architecure.
2003-02-28 19:44:42 +00:00
matt
261ba66908
When aligned to > PAGE_SIZE boundary, don't map any pages before where the
...
psection starts. Allocate unused VA space between psections as unreadable.
2003-02-28 19:09:08 +00:00
manu
edcf894563
Notification request packets format, nothing implemented yet.
2003-02-28 09:30:23 +00:00
perseant
daeb6c37d1
Make lfs_truncate handle file extension correctly, in the LFS_UBC case.
2003-02-28 07:37:56 +00:00
perseant
c418e0c4d6
Fix a clrbuf() on an uninitialized pointer.
2003-02-28 07:36:32 +00:00