mrg
78ccb64bb2
move #include <sys/reboot.h> with the rest of the <sys/...> headers.
2003-01-02 00:12:16 +00:00
chs
822a8f2c0f
several bugs:
...
- move calls to softdep_setup_pagecache() (which can sleep to allocate
memory) outside the softdep lock.
- replace the softdep_flush_indir() hack (which tries to find another
vnode to fsync when we are holding lots of buffer-cache buffers locked
for long periods of time) with softdep_trackbufs() (which just kicks
the syncer and sleeps under the same circumstances). the former method
had a lock-ordering problem which would occasionally deadlock.
- relax the assertion in softdep_sync_metadata() which says that we should
never see D_ALLOCDIRECT deps for VREG vnodes. it's ok to see those
attached to indirect blocks.
also, there's no need to splbio() while allocating the buffer headers
to which pagecache dependencies are attached, so remove that.
fixes all the problems in PR 19288.
2003-01-01 23:08:56 +00:00
augustss
6bf498b3c2
A little more debug.
2003-01-01 21:00:42 +00:00
augustss
33c067f13e
Make it compile without USERCONF.
2003-01-01 17:06:59 +00:00
augustss
25ffe0e71a
Regen.
2003-01-01 16:36:51 +00:00
augustss
16de3525ca
Add Vivitar camera. From OpenBSD.
2003-01-01 16:36:20 +00:00
augustss
0ac88e0baf
Don't try to use 1284 mode.
2003-01-01 16:32:58 +00:00
augustss
f2590fdb81
Reissue the MAXP command on resume. From FreeBSD.
2003-01-01 16:25:59 +00:00
augustss
8789d465b2
Try getting string descriptors in a slightly different way to works around
...
some problematic devices. From Alexander Kabaev <kan@FreeBSD.ORG>.
2003-01-01 16:21:50 +00:00
augustss
f2a72b5110
Make sure DDB is set up correctly when we have SYMTAB_SPACE.
2003-01-01 16:18:49 +00:00
augustss
256784b520
Set up proper symbol table space.
2003-01-01 16:18:03 +00:00
pk
9dd42c6155
SMP: lock kernel for soft interrupts < IPL_SCHED as well.
2003-01-01 16:17:10 +00:00
augustss
a89cd41b68
Add NEED_SYMTAB to run dbsym.
2003-01-01 16:14:36 +00:00
pk
3607bd7dca
pmap_alloc_cpu: use flags from boot cpu for now, as the passed cpu_info
...
structure has not been fully setup yet.
2003-01-01 15:56:11 +00:00
toshii
086cbf5710
Assign NULL to sc_pipe after closing, so that usbd_close_pipe isn't
...
called twice. At least in NetBSD, the detach function is called when the
device is removed, even if the attach function has failed.
This is probably the cause of panics reported in kern/19326.
2003-01-01 15:55:48 +00:00
pk
16305a65cb
prom mailbox map: look for the property `mailbox-virtual' first.
2003-01-01 15:51:00 +00:00
manu
0d5c4544d1
The first int on the stack is not the page size, it's the address of the
...
mach-O header. This is a guess based on what we have on Darwin, we need
to check other Mach systems to see if this value is Darwin specific or not.
Also updated copyright and removed useless debug
2003-01-01 15:18:25 +00:00
mrg
79037114d8
this file is really no longer used
2003-01-01 08:41:17 +00:00
mrg
2fff4ee989
fix a comment.
2003-01-01 08:24:48 +00:00
mrg
ea304c3f89
make cd18xx_ccr_wait() actually wait for the CCR to settle.
2003-01-01 07:46:20 +00:00
mrg
62a9b2484d
this is no longer used.
2003-01-01 07:45:41 +00:00
mrg
aa9a4f85dd
enable sab & sabtty
2003-01-01 07:45:21 +00:00
mrg
d06249b555
KNF.
2003-01-01 06:33:29 +00:00
dyoung
b356d306f5
For confidence's sake, enable I/O and memory accesses (which were
...
previously NOT enabled), but do not enable bus-mastering (which
was previously enabled, but which neither Lucent nor Prism support).
2003-01-01 02:36:54 +00:00
thorpej
98b0e9af47
Use aprint_normal() for cfprint routines.
2003-01-01 02:31:13 +00:00
thorpej
9c1214153c
Use aprint_normal() for cfprint routines.
2003-01-01 02:20:47 +00:00
thorpej
dca15fc8c2
Use aprint_normal() for cfprint routines.
2003-01-01 02:10:08 +00:00
dyoung
18d05b8362
A Prism firmware participating in an IBSS network will not send a
...
LINK_STAT notification for every change of BSSID, so the firmware's
BSSID and the driver's BSSID will get out of sync. This has two
bad affects. First, because the 802.11 framework filters received
packets based on BSSID, many packets can be dropped before the
driver adopts the firmware's BSSID. Second, ifconfig's tells a
misleading BSSID to the operator.
This problem is most apparent in networks where every station does
not hear every other. I reproduce these conditions in an office by
removing/replacing the antennas on my 802.11 cards.
As a solution, in IBSS mode, the driver will ask the firmware for
the BSSID every five seconds. Also, whenever the driver receives
a frame carrying a different BSSID than the driver's BSSID, then
the driver asks the firmware for the BSSID before handing the frame
to ieee80211_input.
2003-01-01 02:06:47 +00:00
thorpej
95fa2e148a
Use aprint_normal() for cfprint routines.
2003-01-01 01:57:51 +00:00
thorpej
dbb0f0ebed
Use aprint_normal() for cfprint routines.
2003-01-01 01:47:30 +00:00
thorpej
72a2c87923
Use aprint_normal() for cfprint routines.
2003-01-01 01:34:45 +00:00
thorpej
1132348b98
Use aprint_normal() for cfprint routines.
2003-01-01 01:24:19 +00:00
thorpej
359ed65495
Use aprint_normal() for cfprint routines.
2003-01-01 00:46:13 +00:00
thorpej
1eab093085
* Use a device node for each DMA channel.
...
* Use aprint_normal() for cfprint routines.
2003-01-01 00:45:00 +00:00
thorpej
21fbbf679c
Define a base for each DMA channel.
2003-01-01 00:44:34 +00:00
thorpej
7ca7bdb37c
Use aprint_normal() for cfprint routines.
2003-01-01 00:39:19 +00:00
tron
ed7e94b443
Use bus_space_write_2() to write the 16 bit register "EMU_TIMER" which
...
should fix PR kern/15663. Patch supplied by Yorick Hardy via GNATS.
2003-01-01 00:36:29 +00:00
thorpej
41a403fb33
Use aprint_normal() for cfprint() routines.
2003-01-01 00:35:30 +00:00
thorpej
a7f53c4d06
Use aprint_normal() for cfprint routines.
2003-01-01 00:34:05 +00:00
thorpej
aec1389b37
Use aprint_normal for cfprint routines.
2003-01-01 00:32:04 +00:00
thorpej
5001cdaf1f
Use aprint_normal() for cfprint routines.
2003-01-01 00:25:01 +00:00
thorpej
703e7687a9
Use aprint_normal() in cfprint routines.
2003-01-01 00:16:46 +00:00
thorpej
da0fbadf93
Oops, missed a printf that should be an aprint_normal.
2003-01-01 00:12:06 +00:00
thorpej
72a7af27b0
Use aprint_normal() in cfprint routines.
2003-01-01 00:10:15 +00:00
mycroft
d73e77b28c
Update copyright notice.
2003-01-01 00:00:13 +00:00
thorpej
0d3b1b8a4f
Add support for quiet and silent boots to the autoconfiguration
...
message machinery.
Quiet boots look like this (inspired by BSD/OS):
.
.
Found tlp0 at pci0
.
.
Found wd0 at wdc0
.
.
Silent boots look like this:
.
.
Detecting hardware...<twiddle>done.
.
.
NOTE: This requires cooperation on the part of all device drivers,
changes to which have not yet been checked in.
2002-12-31 23:59:11 +00:00
thorpej
f631b51555
Add aprint_error(), which is like aprint_normal(), but also records
...
the number of times it is called. This allows subsystems to report
the number of errors that occurred during a quiet/silent subsystem
startup. aprint_get_error_count() reports this count and resets it
to 0.
Also add printf_nolog(), which is like printf(), but prevents the
output from hitting the system log.
2002-12-31 23:45:36 +00:00
thorpej
89ef67a28c
Nothing cares about NSYSMON anymore; delete it.
2002-12-31 22:47:48 +00:00
thorpej
0ad39e91ea
Fix sysmon entry.
2002-12-31 22:43:38 +00:00
thorpej
3770328cab
Add the following message printing routines, designed for printing
...
autoconfiguration messages:
aprint_normal: Send to console unless AB_QUIET. Always goes to the log.
aprint_naive: Send to console only if AB_QUIET. Never goes to the log.
aprint_verbose: Send to console only if AB_VERBOSE. Always goes to the log.
aprint_debug: Send to console and log only if AB_DEBUG.
API inspired by the same routines in BSD/OS.
Will be used to address kern/5155.
2002-12-31 17:48:03 +00:00
pk
2aac3c7c89
Slight optimisation in proc_trampoline().
2002-12-31 17:07:36 +00:00
thorpej
438dc24855
Partially expose some of the kernel printf internals in the new
...
<sys/kprintf.h> header file. This allows subsystems that need
printf semantics other than what are provided by the standard
kernel printf routines to implement exactly what they want.
2002-12-31 16:53:26 +00:00
pk
1df04e663f
Make the schedintr() code common for all timers.
2002-12-31 16:45:52 +00:00
pk
7b7269ba42
New version of cpu_switch/switchexit, mostly to simplify SMP support. It's
...
currently conditional on ALT_SWITCH_CODE (defaults to `on' if MULTIPROCESSOR
is defined) until more testing rounds are completed.
2002-12-31 16:17:12 +00:00
pk
3d8def4865
Use a soft interrupt scheme to schedule schedclock(), so we can make
...
splsched() less than splhigh().
2002-12-31 15:57:26 +00:00
pk
67e16e38a4
Define IPL_SCHED at level 11 and make splsched() use it.
2002-12-31 15:51:18 +00:00
manu
f3e11e72e9
Introduce port names, deallocate mach ressources at Darwin process exit
2002-12-31 15:47:37 +00:00
pk
d358537b64
Pass the CPU context to all TLB flush routines. Because of this (and the
...
fact that cache flushes are also passed the context number), most
"long-term" context switches can be eliminated from the SRMMU versions
of the pmap functions.
2002-12-31 15:23:29 +00:00
pk
83dae8a821
* map the PROM CPU mailbox if available.
...
* map MXCC error/status registers if available.
* add MXCC-specific module error interrupt handler.
* use high priority interrupt level in mp_pause_cpus()
2002-12-31 15:10:28 +00:00
pk
2b59d26892
Add offset for `cpuinfo.ci_tt'.
2002-12-31 15:05:48 +00:00
pk
c3bb05ff5b
* Add level argument to raise_ipi()
...
* Add diagnostic field members to cpu_info.
2002-12-31 15:04:49 +00:00
yamt
a5bf83bbfc
don't set vnode type to VNON in error case of ufs_makeinode.
...
(backout rev.1.74)
it seems that there's no need to do it (anymore?) and LFS has trouble with it.
(VNON vnodes marked VDIROP will never reclaimed)
ok'ed by Frank van der Linden.
2002-12-31 15:00:18 +00:00
yamt
140a8e56ca
write ifile only when it has dirty buffers.
2002-12-31 14:54:32 +00:00
pk
5c671fd10d
nmi_sun4m: run handler at splhigh()
2002-12-31 14:34:54 +00:00
pk
43b86d0b59
rwindow debug code: display the current cpu number.
2002-12-31 13:17:23 +00:00
fredette
2068a40cc7
Removed esm_freemem(), which isn't used any more.
2002-12-31 13:10:59 +00:00
manu
6f978415df
When the kernel transmits a message to a processs, remote and local port
...
are swapped. Also added some debug.
2002-12-31 13:09:38 +00:00
pk
a1e9e5cae8
Add some more definitions: SRMMU and MXCC reset register.
2002-12-31 12:01:27 +00:00
augustss
d202c97c46
Fix some messages and some formatting.
2002-12-31 11:23:34 +00:00
manu
48ad3f41b6
Remove some debug and make it build again wihout DEBUG_MACH
2002-12-31 09:32:03 +00:00
shin
031dbfcca0
add PCI bus access device.
2002-12-31 06:54:13 +00:00
dyoung
053c1688c8
Per discussion in PR 18794, fix PCI resets. Alas, this does not
...
seem to fix PR 18794.
2002-12-31 06:33:20 +00:00
jmcneill
3893537d91
If we have a valid UID but it's a null string, display '<null>' rather than
...
nothing at all.
2002-12-31 05:59:53 +00:00
explorer
0c77fcf312
add ENVSYS_INDICATOR and ENVSYS_INTEGER types
2002-12-31 05:27:29 +00:00
explorer
59e0238f99
add envsys support to acpi A/C adapter and batteries. This is still a work
...
in progress, much like the rest of ACPI.
2002-12-31 05:26:56 +00:00
dsainty
3204b83aa5
Be somewhat more persuasive about enabling the port on a port reset.
...
USB protocol dictates that the port enable must be implied by the port
reset. To implement this on (at least) the VIA VT83C572 this means we
need to wait around tweaking the chip state until the port actually
transitions to enabled (or the device goes away). Likely fixes
kern/11018.
2002-12-31 02:21:31 +00:00
dsainty
0bdb52527a
CONSTCOND away some lint warnings
2002-12-31 02:04:49 +00:00
augustss
914250b8f3
Another quirk.
2002-12-31 00:50:07 +00:00
augustss
13d6b87d32
Use a somewhat bigger buffer for the vendor string.
2002-12-31 00:39:11 +00:00
augustss
185623c571
Use correct values to compute record high water mark. From kern/19614 by
...
Ron Roskens.
2002-12-31 00:33:10 +00:00
explorer
4b995bb9a4
fix for my sony laptop, which doesn't quite follow spec
2002-12-30 21:55:05 +00:00
manu
1d1b901b90
bug fix: in debug functions, the port set right and the port set members
...
wer mixed up
2002-12-30 19:32:15 +00:00
manu
d9f2a8dbcd
- When mach_init saves the bootstrap port, make it the default bootstrap port
...
for any program we will launch later. This is a hack to avoid the need
of launching any Darwin binary as a child of mach_init
- More and more debug
2002-12-30 18:44:33 +00:00
veego
a64314e402
Fix broken build due too the move of the cd9660 and msdosfs kernel source code.
2002-12-30 16:41:53 +00:00
reinoud
006384eaed
In the case there is just one SIMM and one memory bank from the SIMM things
...
got wrong when no VRAM was there.
Placing the video DRAM in front of the kernel is OK when its 1Mb since the
kernel wants to be on a Mb boundary. Placing the video DRAM in the last
SIMM bank at the front is also OK unless there is just one SIMM and just one
bank; then it got in the way again!
Solution is to put the DRAM at the end of the SIMM instead of the beginning!
This however can result in the non 16 kb alignment of the top of physical
RAM where the temporary L1 page tables are situated. If its not 16 kb aligned
then move the L1 page table address down and down until it is 16 kb aligned.
This memory will be reused later on anyway.
What to do when we really support changing screensizes... see it as a max?
or use a different sceme alltogether? It might not even be a bootloader
problem then allthough its memory is not showing up in the DRAM/VRAM
block counts wich needs to be fixed one day.
2002-12-30 15:54:46 +00:00
explorer
a26c9e1804
When a battery isn't present, display that rather than bogus values.
2002-12-30 13:06:43 +00:00
manu
f449715c66
When allocating a receive right on a port, don't forget to change
...
the reciever.
2002-12-30 12:46:19 +00:00
manu
27427542f4
When the right is not a port set, set the port set head to the right
...
itself. That way when we want to wakeup a receiver, we just have to
wakeup the port set head, it will work either for port set and for non
port sets.
2002-12-30 12:41:52 +00:00
chris
eabbfc15c6
Fix build break..
2002-12-30 10:19:59 +00:00
explorer
6ce13e9a31
clean up printing of battery info. This includes other changes I've toyed with, #if 0'd out
2002-12-30 09:37:50 +00:00
matt
db2f223f09
Print out the pnpname that was matched.
2002-12-30 09:33:25 +00:00
matt
839550b347
remove declaration of wss_acpi_config_interrupts since it no longer exists.
2002-12-30 07:29:26 +00:00
jmcneill
165d7516fb
Again, in acpibat_get_status, bail rather than continuing if the package
...
we receive contains less elements than expected.
2002-12-30 06:20:02 +00:00
explorer
89f72704d1
remove redundant defines
2002-12-30 06:16:10 +00:00
yamt
cb9613feef
comment and assertions
2002-12-30 05:34:17 +00:00
yamt
6fc496c67a
move check of lfs_unlockvp from lfs_reserveavail to lfs_reserve
...
because lfs_reservebuf needs same check as well.
2002-12-30 05:31:53 +00:00
fredette
5620d08cca
First cut at recording support for the ESS Maestro-2 and 2e.
...
16-bit mono recording seems to work OK. 16-bit stereo recording
is missing the left channel for reasons unknown, fixes welcome.
8-bit recording still unsupported.
2002-12-30 05:23:27 +00:00
jmcneill
46e00cd6f7
Oops, I didn't mean for that commented out verbose flag to make it into the
...
last commit -- uncomment it again.
2002-12-30 04:52:13 +00:00
jmcneill
e49259c17a
If we receive a battery information package with less than 13 elements,
...
cleanup and return rather than trying to continue anyway.
2002-12-30 04:47:22 +00:00
explorer
f7981239d7
update
2002-12-30 04:03:04 +00:00
explorer
6d15b43548
add atheros communications, Inc. AR5001 reference goop. This is what the 2.4 Ghz / 5 Ghz linksys cardbus card has inside.
2002-12-30 04:02:22 +00:00
reinoud
2f6fe363fa
Since we dont support switching screenmodes (yet) we might as well claim
...
just enough for the screenmemory to be in instead of the maximum of 1Mb.
Small machines like my 8Mb NC get a 700 kb back and thats really noticeable.
2002-12-30 03:30:16 +00:00
dsainty
3d3cc353c3
extern references to debugging globals that really exist elsewhere
2002-12-30 02:44:32 +00:00
reinoud
3e5225eafa
If we don't have VRAM then at least account the screensize correctly :) it goes
...
pretty wierd if it is set wrongly.
2002-12-30 02:19:20 +00:00
reinoud
33ae7765a1
If we nick memory from the DRAM for video then please account it correctly!
2002-12-30 02:05:12 +00:00
jmcneill
9459fbd817
Allow ACPI_EXTRA_DEBUG without ACPI_DEBUG
2002-12-30 01:56:44 +00:00
reinoud
f223d87792
Typo and comments
2002-12-29 22:41:08 +00:00
ad
d4ed18b479
Block tty interrupts in getc()/putc().
2002-12-29 20:12:19 +00:00
ad
17fa1f0778
- X pads bitmap rows to a word boundary.
...
- Handle WSDISPLAYIO_GCURMAX.
2002-12-29 20:01:17 +00:00
ad
91d54c750b
In dzkbd_attach(): set dzi_ls for the console keyboard, too.
2002-12-29 19:30:57 +00:00
kristerw
e4081b820a
It is not valid C++ to have a semicolon after
...
extern "C" {}
so remove it from __END_DECLS.
2002-12-29 19:21:34 +00:00
thorpej
85c31b11c3
* Move the resched check from setrunnable() and resetpriority() to
...
a new inline, resched_proc().
* When performing the resched check, check the priority against the
current priority on the CPU the process last ran on, not always the
current CPU.
2002-12-29 17:40:26 +00:00
kristerw
9d1bcdf947
Use "__asm" instead of "asm" to pacify lint.
2002-12-29 14:41:29 +00:00
kristerw
d320ba3418
Use "__asm __volatile" instead of "asm volatile" to pacify lint.
2002-12-29 14:40:35 +00:00
kristerw
069c964473
Do not try to return a value from void functions.
2002-12-29 14:38:11 +00:00
tsutsui
7bc5ebdb72
Wrap DELAY() macro with do { } while (/*CONSTCOND*/ 0).
2002-12-29 14:09:37 +00:00
yamt
a05fbf74c0
fix vref/vunref mismatch.
2002-12-29 14:08:12 +00:00
jdc
50b0738c11
Match the D-Link DWL650H.
...
Tested on i386 and hpcarm.
2002-12-29 12:11:45 +00:00
jdc
157591d35a
Regenerate (DWL650H addition).
2002-12-29 12:06:34 +00:00
jdc
d354b364e4
Add D-Link DWL650H wireless card (a different product than the plain DWL650).
2002-12-29 12:04:48 +00:00
yamt
88ae33f9e0
backout assertions in lfs_inactive.
...
they can be false when unmounting forcibly.
2002-12-29 07:05:55 +00:00
yamt
78d9abec0c
sync comment for vflush with reality.
...
from FreeBSD.
2002-12-29 06:47:57 +00:00
uwe
a391e8bea6
Add sh7709 INTEVT2 codes for IRQs, PINTs, IRDA and ADC.
2002-12-29 02:47:07 +00:00
thorpej
63ccfc36f6
Add a comment about affinity to awaken().
2002-12-29 02:08:39 +00:00
reinoud
24dac6bf26
The unique machine ID is used in some networking stuff to generate a
...
unique-ish number, so better add it again!
2002-12-29 00:30:40 +00:00
reinoud
bf5fbfa164
Update the NetBSD part for the bootloader change. Mostly the changes in
...
bootconfig.h needs reflection
2002-12-29 00:02:20 +00:00
reinoud
46dbb0f225
Initial commit of the 3rd generation of bootloaders for the Acorn32
...
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.
Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
2002-12-28 23:57:36 +00:00
thorpej
18e5ffe231
Fix typo.
2002-12-28 23:07:18 +00:00
uwe
0982def9d8
Sync US map with reality. Rename what used to called "us" map to
...
international. Drop Hungarian map that is a proper subset of
international map (and I strongly suspect the "Hungarian" is a
misnomer in the first place). Adjust hpckbd_keymap_table accordingly.
With this change selecting "US" in hpcboot will give you real US
layout. Selecting "Hungarian" will give you international layout and
I think hpcboot shall be changed accordingly.
I'm not sure if there's separate "German" layout for hpcs. I think
any layout that is not different from us/international on the primary
layer shall be handled with wsconsctl.
2002-12-28 22:50:09 +00:00
leo
d2a5a7fd71
Regen.
2002-12-28 22:13:22 +00:00
leo
e946acdd50
Since 1.6 we have 3 images (not 2!):
...
- 1Mb on HD floppy's
- 1.44Mb on HD floppy's
- 1.44Mb on a DD floppy
2002-12-28 22:11:30 +00:00
kristerw
83b5a18c99
Restore the system priority level in case of errors.
...
OK:ed by martin.
2002-12-28 21:09:14 +00:00
reinoud
779842e0f8
Remove spurious declaration of bootconfig structure since that is already
...
done in bootconfig.h
2002-12-28 20:40:21 +00:00
sommerfeld
20d271e712
TODO list, paraphrasing Jason Thorpe
2002-12-28 20:12:24 +00:00
kristerw
2ae40935fb
The correct way to decorate objects with attributes is to use __attribute__
...
instead of the synonyms understood by gcc.
2002-12-28 20:11:57 +00:00
christos
ae2bf40b7e
fix compile problem.
2002-12-28 20:08:36 +00:00
kristerw
cfdca0df6b
Remove a spurious ;.
2002-12-28 20:06:09 +00:00
christos
f69bc61a87
remove redundant declaration
2002-12-28 20:06:07 +00:00
jmcneill
fdcb4005e7
Correctly pass the proper DRQ down to the common fdc driver.
2002-12-28 19:53:50 +00:00
jmcneill
18e5fbcc75
Add an fdc at acpi(4) attachment
2002-12-28 19:31:35 +00:00
jmcneill
57713b735f
We no longer need to delay the call to wssprobe, so remove the disgusting
...
config_interrupts hack.
2002-12-28 18:59:52 +00:00
jmcneill
8eb0fffdfc
Add an npx at acpi(4) attachment
2002-12-28 17:51:16 +00:00
uwe
b83d14425f
jornada6x0_us_keytrans: Map "del" key to 211 ("Del") not 14 ("<=").
...
Our default keymaps map "<=" to KS_Delete (i.e. vt-style rubout)
anyway, so default behavior is not changed, but some people might
prefer to map "<=" and "del" differently. Let them distinguish
between the two. Fix the flying windows key mapping it should be 219,
not 221 (menu). Drop non-existent keycode 125.
2002-12-28 17:49:01 +00:00
matt
13e7cd4f3f
Use i386_isa_chipset explicitly.
2002-12-28 17:36:59 +00:00
jmcneill
df719d72e4
NACPCA -> NACPI, so isa_dmainit gets called if we have ACPI support too.
2002-12-28 17:31:25 +00:00
yamt
d840722863
avoid warnings without DIAGNOSTIC.
...
pointed by Andreas Wrede.
2002-12-28 17:22:47 +00:00
matt
6b5d7a7b6c
Remember the isa_chipset_tag_t and supply to isa_intr_establish.
...
(thereby removing a XXX in the code).
2002-12-28 17:13:39 +00:00
matt
51ec27c813
Move the call to isa_dmainit to mainbus_attach from pnpbios_attach since
...
ACPI needs to have that done for the exact same reasons as ACPI.
2002-12-28 17:11:50 +00:00
tsutsui
e60823f9f2
Fix typo in comment.
2002-12-28 16:52:02 +00:00
tsutsui
46cc633768
Oops, fix typo in the previous.
2002-12-28 16:44:43 +00:00
pooka
bca1052dab
on second thought... make this also compile
2002-12-28 16:44:36 +00:00
pooka
00ddd0deec
add timer calibration
...
from Chris Sekiya
2002-12-28 16:40:48 +00:00
tsutsui
da446ea2da
Change device names in struct pica_dev to match ones used by ARC BIOS.
...
All of these parameters should be obtained from ARC BIOS, and we will
switch to the way in future. As per discussion with soda.
2002-12-28 16:25:38 +00:00
yamt
a428d8a5af
dirop inode can't be passed to lfs_inactivate.
2002-12-28 15:12:26 +00:00
yamt
59be5399b7
- in lfs_reserve, vref vnodes that we're locking so that cleaner doesn't
...
try to reclaim them.
(workaround for deadlock noted in the comment in lfs_reserveavail)
- in lfs_rename, mark vnodes which are being moved as well as directry vnodes.
2002-12-28 14:39:08 +00:00
jmc
549904564e
Implementation of page table support for 64k or greater transfers. This should
...
also handle uio structs passed in as well. All standard filesystem actions
are working at this stage (can copy, execute, mount, umount, fsck, etc).
2002-12-28 10:54:47 +00:00
jmc
ae8cc0726d
Move SBP data area's below the 4G mark as some broken devices seem to clip data
...
address's to 32 bits.
XXX - Need to move the if_fw fifo addr as well but this needs some testing
2002-12-28 10:52:41 +00:00
jmcneill
e4db50c7b9
Add IBM0071, until we have access to the Compat Ids.
2002-12-28 10:19:06 +00:00
matt
60040239dc
Only remember the softc if was for the keyboard port. Only try to attach
...
the console to a keyboard port.
2002-12-28 10:14:43 +00:00
matt
d00c47eb40
Add IBM3780 (PNP id for IBM's trackpoint). Also consider anything starting
...
with PNP0F as a mouse.
2002-12-28 09:44:11 +00:00
matt
17fb086421
Add a pckbc acpi attachment (it compiles but it untested).
2002-12-28 08:45:31 +00:00
matt
da1df3d58f
Make sure we record the type of irq as well as its number.
2002-12-28 08:44:43 +00:00
jmcneill
ea66278262
In com_acpi_attach, set sc->sc_iot unconditionally.
2002-12-28 08:14:39 +00:00
jmcneill
3b08a81ed6
Add an lpt attachment to acpi(4)
2002-12-28 08:04:28 +00:00
matt
8ff6f8feb3
Fix an uninitialized variable.
2002-12-28 07:37:51 +00:00
matt
99597db362
make id const, and use it for the strcmp since we went to the trouble
...
of remembering it.
2002-12-28 07:34:04 +00:00
matt
f388356f39
const the pnpid array.
2002-12-28 07:30:33 +00:00
tsutsui
26f0714b7f
sparc/tab cosmetics.
2002-12-28 07:11:24 +00:00
jmcneill
33ac82dfff
Add 'com at acpi' and 'wss at acpi' glue. These are both working great on
...
my ThinkPad 600E.
XXX isa_dmainit isn't called early enough for the 'audio at wss' attachment
XXX to work, so I'm deferring the call to 'wssattach' until later on. This
XXX should be fixed soon.
2002-12-28 06:20:15 +00:00
jmcneill
c8111254a1
Pass ISA chipset information through to ACPI devices, to allow for porting
...
of pnpbios(4) glue to acpi(4).
2002-12-28 06:14:07 +00:00
dsainty
47fa5a292f
An earlier revision of the data sheet documented MIR data rate support,
...
576000bps and 1152000bps. In the current published version of the data
sheet the MIR support documentation is gone, and the MIR mode bit is
documented as reserved. Possibly the device has a design flaw affecting
the MIR data rates? Document here that this information came from an
earlier data sheet, but leave MIR support in for the moment.
2002-12-28 06:04:18 +00:00
dsainty
912898cad7
Update reference to online data sheets
2002-12-28 05:35:34 +00:00
dsainty
4bfd7daa84
This device has a single FIFO shared by both incoming and outgoing data.
...
If a series of outputs are delivered to the device before the kernel thread
has polled for input data, any input data will be lost. As a
counter measure, always force an input check between outputs.
2002-12-28 04:55:30 +00:00
dsainty
562d1e4603
Delinting - as the data passed to ustir_dumpdata() is always u_int8_t,
...
use that type in the prototype too.
2002-12-28 04:28:39 +00:00
dsainty
df379868e8
Delinting - don't treat ennumerated types as booleans
2002-12-28 04:23:40 +00:00
dsainty
6e4d13a881
Delinting - sprinkle some ARGSUSED
2002-12-28 04:16:33 +00:00
mrg
44b02011f4
tweak some comments
2002-12-28 02:47:35 +00:00
reinoud
ca70f10e3b
Add the loadfile_machdep.h as needed for native bootloaders
2002-12-28 02:42:13 +00:00
mrg
122353da40
rename CPU_READY() to CPU_NOTREADY() seeing that's what it checks.
2002-12-28 02:35:56 +00:00
mrg
7d51aacb32
update the vme bus_space_tag_t to reality.
2002-12-28 01:33:00 +00:00
manu
459d0be3a4
More hacks to make Darwin's /sbin/init happy with its pid.
2002-12-28 00:15:23 +00:00
manu
874517b438
- When MACH_MSG_RCV_LARGE is set, we must return a message with just a header
...
and a body.
- If mach_init is not availabkle for boostrap requests, try to handle them
in the kernel (we don't really handle them, we just try to avoid hanging there)
- minor tweaks.
2002-12-27 19:57:47 +00:00
manu
3b815ab820
We must also return pid 2 when mach_init asks for its pid after it forked init.
2002-12-27 19:54:54 +00:00
hannken
c122326822
Clear IN_SPACECOUNTED on (re-)used inodes.
...
This cures the "unmount pending error:" on softdep umounts.
Approved by: Frank van der Linden <fvdl@netbsd.org>
2002-12-27 16:07:13 +00:00
mrg
39493d781e
this file is way out of date...
2002-12-27 15:17:36 +00:00
tsutsui
5a1aba72d6
Bump SYMTAB_SPACE to 190000.
2002-12-27 14:59:21 +00:00
tsutsui
fbc8e4748a
Add support for SEGA LAN Adapter, MB86967 based Ethernet adapter.
...
Based on the patches in port-dreamcast/17493 by Christian Groessler,
with several modification by me.
2002-12-27 11:43:38 +00:00
tsutsui
c680050521
Add a set of bus_space(9) functions for g2bus devices with
...
sparse address space. This is required for SEGA LAN adapter support.
2002-12-27 11:34:05 +00:00
manu
f464631d66
Several things:
...
1) rights should be shared by the threads within a process. While it would
be easier to handle this with the struct proc/struct lwp split, we attempt to
do this now by sharing the right lists. Because each right holds a reference
to struct proc, this might cause some problems later.
2) in pthread_exit, really exit the thread. Also reintialize the righ tlist to
make sure we will not destroy the parent's right list
3) rights can hold multiple permissions on a port (ie: send and receive). Fix th
is.
4) first attempt on right carried by messages. We still have to do rights carrie
d in the message body (complex messages).
2002-12-27 09:59:24 +00:00
dyoung
1a8833b7c1
On Lucent cards, indicate that changing BSSID with SIOCS80211BSSID
...
is impossible. Never write to the Prism-only JOIN RID.
2002-12-27 08:29:46 +00:00
dyoung
fb22424264
The RID for the RSSI->dBm adjustment is not supported by Prism
...
station firmware version <= 1.1.1.
2002-12-27 07:54:35 +00:00
matt
78b64fd232
Recognize BCM5703 phy. (with this and the bge changes, the bge0 on my
...
ASUS P4PE m/b is now working)
2002-12-27 03:15:52 +00:00
matt
9d04e25e82
Regen.
2002-12-27 03:14:23 +00:00
matt
2860168d98
Add BCM5703.
2002-12-27 03:14:06 +00:00
itohy
ca7d3d53d6
Lookup and use the Ethernet address in the FCode PROM,
...
and avoid using MD myetheraddr() function.
This makes the driver MI, and closes PR kern/13797.
The PCI HME is a PCIO chip, which is composed of two functions:
function 0: PCI-EBus2 bridge, and
function 1: HappyMeal Ethernet controller.
The Ethernet address is (expected to be) in the PCI FCode PROM connected
to the EBus bridge (function 0) of the device.
Since the HME is on function 1, some magic is used to access to the PROM.
We don't have MI EBus driver since no EBus device exists (besides the
FCode PROM) on add-on HME boards. The ``not configured'' message for
function 0 is what is expected.
The SPARC case is currently unchanged. It needs interaction with OpenBoot.
2002-12-26 22:59:51 +00:00
pooka
30d4a8344b
sync with mecreg change, ie. make this compile
2002-12-26 22:25:12 +00:00
pooka
a0c298e366
brush up situation with mec register definitions
...
from Chris Sekiya
2002-12-26 22:24:46 +00:00
jdolecek
362cc2fa44
fix incorrectly introduced coda_psdev.c name change from previous
...
revision; it was part of local devel change I did not intend to commit
2002-12-26 22:23:30 +00:00
matt
a5201ab8fc
Recognize AD1981 codec (0x41445370). XXX name is a guess but it follows
...
the existing pattern.
2002-12-26 20:56:52 +00:00
matt
5914ae08f9
Recognize BCM5702X and BCM5703X. Add a ONLY_PHY_1 quirk and use it.
...
Add support for getting the macaddr for 5703 (taken from FreeBSD).
2002-12-26 20:55:30 +00:00
matt
46531db96c
Recognize Promise Serial ATA/150 TX2plus
2002-12-26 20:54:03 +00:00
matt
741e85a725
Regen.
2002-12-26 20:53:18 +00:00
matt
fef7827774
Add Promise Serial ATA/150 TX2plus
2002-12-26 20:52:58 +00:00
pooka
c99132ebb0
Shuffle network interface and phy drivers into alphabetical order and
...
add comments for them.
2002-12-26 18:26:07 +00:00
pooka
0b31dc8e73
For the ES1370 do "best effort" rate selection for the FM DAC. The
...
card contains only one clock, which is already used by the other
DAC. The FM DAC can handle a few fixed-frequency choices.
thanks to Matthew Green for testing
2002-12-26 17:59:16 +00:00
manu
20fca78f89
regen
2002-12-26 14:41:34 +00:00
manu
bab8693bba
Added the mysterious system call 331 (it does not seems to be in the
...
header files anywhere). This is pthread_exit.
2002-12-26 14:41:05 +00:00
manu
2894c4a53f
Handle the kernel clock service by the kernel.
2002-12-26 13:45:17 +00:00
yamt
4b9c604ba7
- in lfs_reserve, reserve locked buffer count as well.
...
- don't wait for locking buf in lfs_bwrite_ext to avoid deadlocks.
- skip lfs_reserve when we're doing dirop.
reserve more (for lfs_truncate) in set_dirop instead.
this mostly solves PR 18972. (and hopefully PR 19196)
2002-12-26 13:37:18 +00:00
jdolecek
cc09c0a28f
insert newlines to the MAKEDEV section, so that it's more clear
...
what part is MAKEDEV coda and what text
2002-12-26 13:20:44 +00:00
jdolecek
f21116a486
slightly tweak so that the file for vcoda pseudo device is next to
...
pseudo device declaration
2002-12-26 13:19:05 +00:00
yamt
e9bd1836a5
don't try to write all blocks passed to lfs_markv at once
...
since it likely causes buf starvation.
2002-12-26 13:04:39 +00:00
jdolecek
5342a9827c
coda_nc_initialized is not used here, remove local extern defition
2002-12-26 12:40:01 +00:00
jdolecek
efbdd9bcb6
do not need <vcoda.h>/NVCODA here
2002-12-26 12:38:59 +00:00
jdolecek
98d58548c7
move msdosfs code from sys/msdosfs to sys/fs/msdosfs
2002-12-26 12:31:23 +00:00
martin
ffbcb6d927
Conditionalize T_DBPAUSE trap handling on #ifdef MULTIPROCESSOR to make
...
single CPU kernels compile again.
2002-12-26 12:14:31 +00:00
christos
1ee98692bb
Don't leak memory on double init, and don't panic on double fini. Emit
...
a message when diagnostic.
2002-12-26 12:01:42 +00:00
manu
f4d5ba5dbd
Queue and dequeue message replies from kernel servers. This is less efficient,
...
but it sticks closer to the actual Mach semantics: the reply is queued at the
end of the queue. Also add more debug messages on port operations.
2002-12-26 11:41:46 +00:00
junyoung
9f582c3342
Cosmetic changes to reduce diff against GENERIC.
2002-12-26 08:25:20 +00:00
junyoung
41313fe244
#<space>comment...
...
Pointed out by collver1 via PR#18468.
2002-12-26 08:21:56 +00:00
matt
629336e5c6
Regen.
2002-12-26 01:52:00 +00:00
matt
d06eca3d63
Add some more BCM570x variants.
2002-12-26 01:51:27 +00:00
petrov
89143201f7
add db_dump_itlb.
2002-12-25 22:24:56 +00:00
petrov
70bd8bf51e
new function dump_itlb.
2002-12-25 22:05:10 +00:00
jdolecek
d379f66da8
update to post gehenna-devsw world
2002-12-25 17:31:53 +00:00
jdolecek
bd1114bc8e
fix RCS Id
2002-12-25 17:23:22 +00:00
martin
501da0e586
In do not call pppoe_abort_connect if we fail to send the initial PADI
...
packet - there is nothing to abort.
In pppoe_abort_connect rearange state handling slightly to avoid calls
to the PPP LCP state machine get into an infinite recursion.
This should fix the symptoms of PR kern/19500, but does not touch the
real cause for the lossage described there.
2002-12-25 11:54:33 +00:00
jdolecek
6973160773
count input/output bytes for tun device
...
Problem reported and patch provided in PR kern/19554 by Michael van Elst
2002-12-25 08:40:20 +00:00
jdolecek
a80733a697
fix typo in QE_CR_STAT_BITS - bit indication for EDEFER was wrong
...
Reported in kern/19557 by Ron Roskens
2002-12-25 08:24:30 +00:00
toshii
c3e4f1d795
Fix broken programming of VSCALE_HI registers in yuv422_prog.
2002-12-25 06:40:27 +00:00
toshii
7eb93bf41f
Consistently use BKTR_GEN_IRQ and BKTR_RESYNC instead of numbers.
...
Also, do some whitespace cleanup.
2002-12-25 06:20:11 +00:00
toshii
0c6bdb0df1
Merge FreeBSD rev.1.122:
...
Be consistent about "static" functions: if the function is marked
static in its prototype, mark it static at the definition too.
2002-12-25 06:16:58 +00:00
manu
dc403d4519
Bootstrap messages are not for the kernel, they are for mach_init.
2002-12-24 16:40:46 +00:00
manu
b2a7ace594
Better error reporting in mach_msg_trap: this system call does not use the
...
standard error codes.
2002-12-24 15:54:26 +00:00
manu
4d3d28af57
cosmetic
2002-12-24 15:53:46 +00:00
tsutsui
2837b28251
If the chip is in byte access mode for system bus, we should set
...
FE_D6_SBW_BYTE, not clearing FE_D6_SBW_WORD (which is zero).
Pointed out by Christian Groessler.
2002-12-24 13:10:26 +00:00
manu
93b65fbd1d
regen
2002-12-24 12:29:28 +00:00
manu
185383e0a7
Typo
2002-12-24 12:29:06 +00:00
manu
41bfbd28fe
On Darwin, mach_init is the system bootstrap process. It is responsible
...
for forking the traditional UNIX init(8) and it does the Mach port naming
service. We need mach_init for the naming service, but unfortunately, it
will only act as such if its PID is 1. We introduce a sysctl
(emul.darwin.init_pid) to fool a given process into thinking its PID is 1.
That way we can get mach_init into behaving as the name server.
Typical use:
/sbin/sysctl -w emul.darwin.init_pid=$$ ; exec /emul/darwin/sbin/mach_init
2002-12-24 12:15:45 +00:00
manu
c075c4d7f5
Get less debug output
2002-12-24 12:13:15 +00:00
uwe
580c60b346
When scanning HP keyboard, disable output on all scan lines except the
...
one we are currently scanning. This is what Hitachi's sample WinCE
code does. Thanks to YAEGASHI Takeshi for pointing this out!
This makes same row chords work properly, most importantly
Ctrl-@, Ctrl-W, Ctrl-S, Ctrl-Alt-F1 (ctrl row), Ctrl-Alt-F3 (alt row).
2002-12-24 11:49:03 +00:00
jdolecek
94f0c1c2d1
emuxki_intr(): return 1 if interrupt was for us, 0 if not
...
this appear to fix occassional sample repeats on my dual CPU i386
2002-12-24 10:53:03 +00:00
jdolecek
6641019152
add cd9660 subdirectory
2002-12-24 08:12:15 +00:00
david
fa8f4c27d5
isofs dir will be empty after update -dP, now that all contents are in
...
the Attic. Make clean was broken for me without this.
2002-12-24 02:56:10 +00:00
pooka
87a74ecee8
Use crimereg.h definitions for the crime dog. Also, move watchdog
...
disable down the very last possible place in cpu_reboot.
from Chris Sekiya
2002-12-23 21:04:23 +00:00
pooka
8ecf5692ac
add bus_space_vaddr()
...
from rafal
2002-12-23 20:41:47 +00:00
pooka
0dd7013e7a
MACE register definitions
...
from Chris Sekiya
2002-12-23 20:05:06 +00:00
pooka
b31b740c2b
CRIME register definitions
...
from Chris Sekiya
2002-12-23 20:04:22 +00:00
pooka
1fcaee0848
add debug printf
...
from Rafal
2002-12-23 19:49:27 +00:00
pooka
2f32342d20
also create boot.ip32 with the entry point set to the IP32 load address
...
from Chris Sekiya
2002-12-23 19:31:24 +00:00
pooka
fb83173bb6
add some ethernet interfaces
...
from Chris Sekiya
2002-12-23 19:18:34 +00:00
jdolecek
3a8872dee7
move cd9660 filesystem code from sys/isofs/cd9660 to sys/fs/cd9660
2002-12-23 17:52:02 +00:00
jdolecek
5d0e84b25e
flatten the LKM vfs hierarchy a bit - no need for isofs/cd9660, put
...
the LKM code directly to cd9660 directory
2002-12-23 17:45:14 +00:00
jdolecek
9accf4df15
move NTFS code from sys/ntfs to sys/fs/ntfs
2002-12-23 17:38:19 +00:00
jdolecek
5356de155a
move filecorefs code from sys/filecorefs to sys/fs/filecorefs
2002-12-23 17:30:36 +00:00
jdolecek
829bd3c01c
adosfs moved from sys/adosfs to sys/fs/adosfs
2002-12-23 17:23:13 +00:00
jdolecek
8974c3cf90
move adosfs files from sys/adosfs to sys/fs/adosfs
2002-12-23 17:15:20 +00:00
jdolecek
fa3da541f9
update for added ktrsyscall() argument
...
XXX this should probably be converted to use trace_enter()/trace_exit(),
XXX the current code doesn't support systrace
2002-12-23 16:26:13 +00:00
pk
f8055a350c
* Use correct PC value for displaying the called function.
...
* Merge code to display non-kernel frames.
2002-12-23 13:21:10 +00:00
augustss
095017c9ef
Add quirk. From kern/19499, Werner Backes.
2002-12-23 12:42:53 +00:00
augustss
09b10d25e0
Regen.
2002-12-23 12:40:03 +00:00
augustss
cb1f48b543
Add SIIG MULTOCARDREADER. From kern/19499
2002-12-23 12:39:36 +00:00
tsutsui
1bfd32c4f3
Fix pasto in comment.
2002-12-23 09:59:25 +00:00
tsutsui
f9fdb92c0f
Always print the device name first in epic_pci_attach().
2002-12-23 03:57:03 +00:00
tsutsui
fe708bb3ae
Set PCI_PMCSR more properly.
2002-12-23 03:23:00 +00:00
tsutsui
ee29810638
Save PCI_PMCSR value correctly.
2002-12-23 03:06:39 +00:00
tsutsui
238efe4697
Replace magic numbers for power management control with PCI_PMCSR* macros.
...
XXX Should we use pci_get_powerstate() and pci_set_powerstate() in pci.c?
2002-12-23 02:58:36 +00:00
tsutsui
b22b6283f3
Sync with if_rtk_pci.c:
...
- Fix typo in printf message.
- Don't use PCI_PRODUCT_DELTA_8139 (0x1360) for args of cardbus_conf_read()
and cardbus_conf_write(); use CARDBUS_INTERRUPT_REG (0x3c) instead.
2002-12-23 02:19:22 +00:00
tsutsui
b4354edb93
Don't use PCI_PRODUCT_DELTA_8139 (0x1360) for args of pci_conf_read() and
...
pci_conf_write(); use PCI_INTERRUPT_REG (0x3c) instead. (How does it work?)
2002-12-23 02:12:49 +00:00
tsutsui
199ad243a0
Fix typo in printf message.
2002-12-23 01:58:26 +00:00
gmcgarry
6b5b61b136
Update for revised ktrsyscall() prototype.
...
Perhaps this file should be changed to use trace_enter() so that
systrace works for aliased syscalls? Leave that for someone familiar
with the systrace system.
2002-12-23 01:08:45 +00:00
pk
f953a01835
xcallintr() receive a `clockframe *' argument, not a `trapframe *'.
...
Setup a DDB context for paused CPUs by defining a soft trap (T_DBPAUSE)
which uses the generic trap handler code to get the trapframe constructed
and then calls on a debugger-defined `suspend' routine.
2002-12-23 00:55:16 +00:00
pk
5c62f82bdf
Upon trap exit, update the trapframe with data for the running CPU rather
...
than the one which was the last target of the `machine cpu' command.
2002-12-23 00:42:37 +00:00
kanaoka
31623769c9
Resolve conflict from acpica-unix-20021205.
2002-12-23 00:22:04 +00:00
kanaoka
932351b509
Import INTEL acpica 20021205 release.
2002-12-23 00:01:36 +00:00
manu
360f1c3ebe
Cosmetic changes, added a debug printf
2002-12-22 21:51:56 +00:00
yamt
362c57a2d2
add a XXX comment. (description of possible deadlock)
2002-12-22 17:31:52 +00:00
wiz
ea577b210e
Debugging is usually spelled with three gs.
2002-12-22 13:50:35 +00:00
ichiro
7bda39e405
Use generic_bs_wr_4 for writing region
2002-12-22 11:28:37 +00:00
ichiro
2c9ff5a338
Use generic_bs_sr_4
2002-12-22 11:24:07 +00:00
mrg
131dc6aa08
catch up with changes in sparc64/autoconf.c.
2002-12-22 02:54:34 +00:00
mrg
6ee482ef5b
change what 'hw.model' reports to be more inline with other netbsd ports, as
...
well as reporting the actual machine model & cpu, rather than first configured
CPU. changes for two machines are:
old:
hw.model = TMS390Z50 v0 or TMS390Z55 @ 75 MHz, on-chip FPU
hw.model = SUNW,UltraSPARC @ 143.002 MHz, version 0 FPU
new:
hw.model = SUNW,SPARCstation-20 (TMS390Z50 v0 or TMS390Z55 @ 75 MHz, on-chip FPU)
hw.model = SUNW,Ultra-1 (SUNW,UltraSPARC @ 143.002 MHz, version 0 FPU)
as per discussion on port-sparc & port-sparc64.
2002-12-22 02:17:24 +00:00
gmcgarry
85dbe5f6c5
Make the DMA controller a separate device attached to intio. Intio
...
devices can use the DMA controller too.
2002-12-22 00:17:13 +00:00
gmcgarry
75851dc4ed
Make this compile with LOCK_DEBUG
2002-12-22 00:11:10 +00:00
gmcgarry
66c19fc50c
Add stubs for scheduler syscalls.
2002-12-22 00:05:59 +00:00
gmcgarry
87aecbbd2c
Add scheduler syscalls.
2002-12-22 00:04:29 +00:00
gmcgarry
53bdf646b5
Use yield() for voluntary context switches.
2002-12-22 00:00:22 +00:00
gmcgarry
c4b66baf3f
We do want yield() for voluntary context switches. Update comment.
2002-12-21 23:57:57 +00:00
gmcgarry
f8f2c11fe0
Re-add yield(). Only used by compat code at the moment.
2002-12-21 23:52:05 +00:00
manu
8958b6f9ba
Handle receive operations on port sets
2002-12-21 23:50:47 +00:00
manu
ccd9e9a24d
Fix plain bugs that prevented insert_right and move_member from working correctly.
2002-12-21 23:50:00 +00:00
manu
3ee2623baa
Make it build again
2002-12-21 23:48:47 +00:00
manu
4a06119a9d
Pass the system call table to trace_enter() and ktrsys() so that it is
...
possible to use alternate system call tables. This is usefull for
displaying correctly the arguments in Mach binaries traces.
If NULL is given, then the regular systam call table for the process is used.
2002-12-21 16:23:56 +00:00
manu
ebf321d707
Comment what e_fault in struct emul does
2002-12-21 16:22:10 +00:00
kristerw
06c22c74ac
sf_copy_small is not used anywhere. Remove.
2002-12-21 16:15:28 +00:00
kristerw
2ce6431736
wm_copy_small in not used anywhere. Remove.
2002-12-21 16:12:15 +00:00
kristerw
084ae1f838
ibcs2_debug is used only for IBCS2_DEBUG, so no need to define it otherwise.
2002-12-21 15:48:57 +00:00
kristerw
0828199fd1
aarptab_size is never used. Remove.
2002-12-21 15:45:10 +00:00
kristerw
14d4c7d175
Move dp8390_debug to the #ifdef DEBUG section.
2002-12-21 15:24:42 +00:00
pk
4e0634669b
* xcallintr(): use cpuinfo directly again.
...
* nmi_soft(): remove most of the obsoleted requests.
2002-12-21 12:55:54 +00:00
pk
0408b1cbc8
tlb_flush_segment() and tlb_flush_region() now take a virtual address
...
argument instead of segment and region numbers.
2002-12-21 12:52:55 +00:00
pk
82815de0ad
Use xcall() to broadcast MMU TLB flushes.
2002-12-21 12:13:38 +00:00
pk
8dcde9f5b1
* cpu_hatch(): enable interrupts upon return from cpu_setup().
...
* interrupt trap: acquire the kernel lock only for interrupt levels <= PIL_SCHED
2002-12-21 11:57:41 +00:00
pk
1d8dc4daf2
* getcacheinfo_obp(): also initialise the cacheinfo i/d associativity fields
...
in the case of a unified cache.
* xcall(): slightly optimise the `wait for other CPUs' loop.
2002-12-21 11:48:55 +00:00
yamt
4370be165c
add a XXX comment
2002-12-21 05:35:54 +00:00
thorpej
899e58abe7
Bump ramdisk size to 2920 blocks.
2002-12-20 23:14:14 +00:00
atatat
da6a21704a
Spelling police. "DETATCH" is not the right speling.
2002-12-20 20:57:26 +00:00
fredette
9d97e92d89
If the user is providing a mode value in AUDIO_SETINFO, that value
...
cannot change the recording or playback mode of the device, it can
only change other mode-like values (like AUMODE_PLAY_ALL). Be very
explicit about fixing up the user's mode value based on the mode of
the device. Before, giving AUMODE_PLAY_ALL could cause AUMODE_PLAY
to become set on the device, and once AUMODE_PLAY_ALL was set it
was impossible to clear.
2002-12-20 18:30:01 +00:00
atatat
84a6247a30
Properly set page references counts at the start of the newly
...
allocated ppref data to zero in the case of an amap that has empty
space at the front.
Don't set anything in the ppref array if "len" is zero.
Many thanks to Sami Kantoluoto for providing gdb access to a machine
that would reliably crash with problems related to the above, and to
Stephan Thesing for corroborating that the patch properly addressed
the problem.
Note that the ar_pageoff (and related variables) types must be changed
soon. The use of "int" here is not theoretically sufficient.
2002-12-20 18:21:13 +00:00
tsutsui
738ea71fdd
Remove __P().
2002-12-20 16:54:15 +00:00
tsutsui
2cac3aae2d
Remove __P().
2002-12-20 16:39:10 +00:00
tsutsui
0687b33b99
Remove __P().
2002-12-20 16:23:46 +00:00
scw
4e87eae834
Use Software Single Stepping for now when PPC_IBM4xx is defined. The
...
existing hardware assisted method doesn't work on this cpu.
Also correct the "I_B" constant in db_machine.h.
2002-12-20 15:23:12 +00:00
gmcgarry
a5424a9df1
Remove yield() until the scheduler supports the sched_yield(2) system
...
call.
2002-12-20 05:43:09 +00:00
gmcgarry
74da856861
yield() -> preempt().
2002-12-20 05:06:25 +00:00
gmcgarry
16f1be1856
Flag a context switch using need_resched() rather than invoking yield().
...
Matches the linux compat approach.
2002-12-20 04:58:44 +00:00
bsh
9e1fd4dd36
Driver for keyboard controller in the SA-1111 companion chip.
...
Our PC keyboard driver (sys/dev/pckbc/pckbd.c) works only with 8042
keyboard controller driver (sys/dev/ic/pckbc.c). So, This file
provides same functions as those of 8042 driver.
XXX: we need cleaner interface between the keyboard driver and
keyboard controller drivers.
XXX: PS/2 mice are not supported yet.
2002-12-20 04:12:51 +00:00
bsh
7b1d3e8b2b
comment out a file that is not in the tree yet.
2002-12-20 01:10:11 +00:00
thorpej
4c82425f5e
Regen: reserved syscall slots for sigwaitinfo(2), sigtimedwait(2),
...
and sigqueue(2).
2002-12-19 23:53:42 +00:00
thorpej
39e4cd68c4
Reserve syscall slots for sigwaitinfo(2), sigtimedwait(2), and
...
sigqueue(2).
2002-12-19 23:51:00 +00:00
kleink
ac7290d7c2
Add a sysconf(3) knob for {ATEXIT_MAX}.
2002-12-19 23:31:54 +00:00
manu
3b71b464b2
First attempt on mach ports sets. Also maitian only one list of rights
...
per process, as segregating recv, send and send_once did not buy anything.
2002-12-19 22:23:06 +00:00
thorpej
2a39e8388d
Merge the IBM 4xx into the common powerpc/locore_subr.S, and
...
eliminate all the duplicated context switch related code in
the IBM 4xx port.
2002-12-19 19:37:25 +00:00
thorpej
a6dc36fa4e
Build LKMs with -msoft-float.
2002-12-19 19:36:26 +00:00
pk
f0a20f1305
* mark selected fields of `struct xpmsg' as volatile, instead of the whole
...
structure.
* change volatile => __volatile
2002-12-19 16:31:38 +00:00
scw
c10c20ac28
Add a range check for the DCR address in db_ppc4xx_dcr().
2002-12-19 13:45:03 +00:00
scw
de98ba0a49
Add a "machine dcr" command, for the IBM4XX case, which permits
...
reading/writing of the cpu's DCR registers.
2002-12-19 13:29:53 +00:00
pk
2fba4e01ff
Mark CPUs that did not spin up properly and don't enable them later on.
2002-12-19 11:20:30 +00:00
pk
75c5f270d2
Brush-up the generic cross-call routine and use it to implement the SMP
...
cache flush ops.
Also a standard soft interrupt handler for standard cross-call notification
reserving the NMI level 15 softint for urgent cross calls.
2002-12-19 10:38:28 +00:00
pk
eaf530d598
Sprinkle volatiles to avoid register allocation, esp. in cross-call
...
synchronisation functions used in SMP kernels.
2002-12-19 10:30:39 +00:00
pk
ec2b1c3c64
smp_cache_flush() also takes a context parameter.
2002-12-19 10:27:19 +00:00
jmc
8630685f69
Add support for page tables
2002-12-19 09:59:47 +00:00
jmc
ef48ba7693
Add a minphys routine since the single largest packet is less than minphys()
2002-12-19 09:58:24 +00:00
jmc
31f02beb7c
Add defines for supporting page tables
2002-12-19 09:56:10 +00:00
jmc
9980e6b848
Updates
2002-12-19 07:22:40 +00:00
augustss
1b5acb64d0
Initialize the media to 10baseT. From Steph Bailey.
2002-12-19 07:15:05 +00:00
jmc
092fe54e3d
Add additional debugging for fwohci_arrq_input: no listener conditions
2002-12-19 02:15:31 +00:00
martin
324c47457d
Since we have to select one of the two possible PHYs when configuring
...
the MIF Configuration Register PHY_Select, there is no use in pretending
we could talk to both at the MII interface layer.
If both PHY are reported to be present, prefer the external one.
Remember this selection and enforce it in hme_mii_{read,write}reg.
This fixes problems with one of the dual hmes in Netra T1s.
From OpenBSD.
2002-12-18 23:13:02 +00:00
tron
c4b584f5c4
Use "NULL" instead of "0" in pointer checks.
2002-12-18 14:12:33 +00:00
yamt
0d95cc5d66
correct/add assertion.
2002-12-18 14:05:50 +00:00
pk
2076dbdb04
Install the sparc V8 multiply/divide routines after we've collected some
...
basic information on the CPUs.
2002-12-18 11:56:43 +00:00
mrg
1a854929dd
we use nmi_hard and nmi_soft on SUN4D as well
2002-12-18 06:20:36 +00:00
jmc
62da7b9c60
Add SBP2_MAXPHYS
2002-12-18 06:08:21 +00:00
bsh
b757504104
Config information for Intel PXA2xx application processors.
2002-12-18 05:47:31 +00:00
bsh
ee778f8dfa
config staff for Lubbock
2002-12-18 04:56:52 +00:00
jmc
fe19747374
Redo state handling as ack's, status, etc can come in and be processed in
...
various orders depending how the upper level driver is flushing it's queue's.
This prevents the deadlocks I was seeing before with >8k writes.
XXX: Still not completely there as > 64k copies trigger bugs and the page
table support still needs to be written to break those down.
2002-12-18 04:48:33 +00:00
bsh
5f7d2415b6
back out a part of my previous commit.
2002-12-18 04:25:56 +00:00
bsh
7e91daa3b3
guard against being included twice
2002-12-18 04:20:36 +00:00
bsh
35345c15f5
+ protect against including twice
...
+ add struct sa1111_attach_args for keyboard controller support.
2002-12-18 04:16:09 +00:00
bsh
b454cbf9c6
+ protect against including twice
...
+ add bit definitions in SKCR
+ add keyboard controller registers
2002-12-18 04:09:31 +00:00