tsubai
9b368d61a4
Add AirMac frontend.
2001-05-16 10:56:42 +00:00
enami
fb619e9a70
Calc. cpu speed for VR4122.
2001-05-16 10:49:18 +00:00
tsubai
eef5fa50d3
Big-endian support.
2001-05-16 10:45:36 +00:00
leo
cfc3edb550
remove some debugging leftovers.
2001-05-16 08:45:50 +00:00
enami
2f39ebba50
Victor MP-C303 uses 4k pagesize. So, ask system instead of hardcoding it.
2001-05-16 08:40:51 +00:00
enami
422ad4763b
The lower bound for getPage is _addr_table_idx, not 0.
2001-05-16 08:37:44 +00:00
enami
679894e9ae
Add missing close paren in message.
2001-05-16 08:19:42 +00:00
kanaoka
aa09aa91c7
Search the entire device-space of bus 0 if the router device
...
address is set to 000:00:0, and the compatible router entry
is undefined.
Patch PR port-i386/12880 by Dave Sainty <dave@dtsp.co.nz>.
2001-05-16 08:10:36 +00:00
leo
8406481cd3
Regen.
2001-05-16 07:53:54 +00:00
ichiro
15833cae3b
add prism chip identity, Prism2 with SST flush.
2001-05-16 07:53:28 +00:00
leo
7cab6084a4
Fix errors in previous commit:
...
- forgot PCI bus
- forgot pckbd config
2001-05-16 07:50:29 +00:00
lukem
ff47810d07
fix previous delint
2001-05-16 06:29:01 +00:00
matt
c45b32243a
Add a VAXANY type. Eventually to used in INSTALL / GENERIC to easily
...
include support for all VAX platforms
2001-05-16 05:36:53 +00:00
perry
4201bf1ae0
nuke bcopyw and bcopyb. It is unclear what they were for, and nothing
...
called them.
2001-05-16 05:01:28 +00:00
lukem
c15945130c
delint: remove unnecessary assignment to same objection (hidden in #define)
2001-05-16 04:50:11 +00:00
lukem
be493349d2
delint: zero sized array initalisation is a gccism
2001-05-16 04:39:03 +00:00
lukem
927097774a
delint: remove volatile from fxp_mdi_read() decl
2001-05-16 04:20:55 +00:00
perry
e266791dab
Add a couple of include LINTSTUBs and fix some LINTSTUB prototypes.
...
Still exits hard because of bcopy/memcpy problem, but that is a
legitimate problem. bcopy should go and be replaced with memcpy to fix this.
2001-05-16 04:18:52 +00:00
perry
4be93c9ed7
Add a /* LINTSTUB: include <foo.h> */ mechanism.
2001-05-16 04:17:04 +00:00
mjacob
b81e69fa8e
beginning basic 2300 infrstructure support
2001-05-16 03:58:34 +00:00
perry
bf16779f43
allow long typed functions
2001-05-16 03:58:14 +00:00
mjacob
9f2c2c7a8c
Keep up with the Joneses.... further synchronization for the eventual
...
implementation in NetBSD for target mode.
2001-05-16 03:58:03 +00:00
mjacob
73eba1a839
Long overdue- put locks on the usage of the mailbox command stuff. This
...
keeps us from stomping on ourselves.
Say we're in the middle of re-evaluating a loop (and sleeping) when a
command completes, or a timer refires, and this *other* thread decides
*it* wants to start re-evaluating the loop. Bad news.
We have to be a bit careful- if we can't acquire the MBOX semaphore at
interrupt level, we will simulate a host interface error. This is a bit
of a temp workaround. There's some work underway driven by a NetBSD
commercial user that will try and force most mailbox stuff into a
part A/part B interrupt driven model.
2001-05-16 03:55:15 +00:00
mjacob
a1dd9d78ee
It's 'role None', not 'role No'.
...
Also, pay attention to the difference in the ISPASYNC_CHANGE_NOTIFY
between loop and fabric changes.
2001-05-16 03:52:10 +00:00
lukem
f1362289d2
changes to lint invocation:
...
- sort lint flags
- add flags -F (full pathname), -g (gcc extensions; XXX for now)
- lint CFILES before LINTSTUBS
- don't -Dvolatile=
- don't grep -v 'static function.*unused'
2001-05-16 03:48:45 +00:00
fredette
49fda862f9
When MACHINE_ARCH is m68000, compile ffs.c and random.c
...
instead of ffs.s and random.s, and sneak the libgcc
integer support routines into the list of library objects.
2001-05-16 03:30:39 +00:00
fredette
332aa50acb
Use the EXTBL macro where we want the extbl instruction.
...
On the 68010 this expands to an extw/extl combination.
2001-05-16 03:14:12 +00:00
fredette
8ba384c841
On the 68010, we are forced to do bytewise compares
...
and copies if the two addresses aren't of the same
evenness.
2001-05-16 03:06:41 +00:00
ichiro
9a3074ffce
cosmetic change.
...
change version format: <major>.<minor> variant <num>
2001-05-16 02:36:37 +00:00
ross
d8840def52
Expand on the locking notes comment with a XXX warning about u_short fields.
2001-05-16 00:16:01 +00:00
matt
91d9961f24
Regen
2001-05-15 23:18:16 +00:00
matt
75d77bf185
Add OUI for PMC-Sierra. Add BCM5221 Phy. Add PM8351 Phy.
2001-05-15 23:17:48 +00:00
matt
f5d9baae2f
Note that extended status is in register 15
2001-05-15 23:16:40 +00:00
jdolecek
44cdfc6a17
Change MALLOC()/FREE() to malloc()/free() for cases where the size
...
argument is a variable.
2001-05-15 22:38:40 +00:00
perry
098ba22210
1) Add infrastructure to generate lint stub files from stylized
...
comments in .S files.
2) Update "make lint" target to use generated lint stubs.
2001-05-15 22:34:36 +00:00
perry
3fe923fc2c
I -> Ignore
2001-05-15 22:32:02 +00:00
perry
e69a194db2
1) Add stylized comments (used by new lint stub generation
...
infrastructure) to indicate what C stubs should be generated for
various entry points.
2) Add comments noting various artifacts discovered while performing
task 1), including a bunch of stuff that may very well no longer be
used.
2001-05-15 22:31:38 +00:00
perry
7cb4818421
awk script to automatically generate lint stub files from stylized
...
comments in .S files.
2001-05-15 22:23:09 +00:00
jdolecek
634da40a5a
Don't apply #pragma pack(1) to struct ntfsmount. This fixes unaligned
...
crash on alpha. Problem noted and fix provided in kern/12726 by Dave Huang.
2001-05-15 22:17:05 +00:00
christos
6ae38c2f7a
Try the kbc_auxtest if the random write/read to the aux port fails (it returns
...
0xfe on my gateway 2000 circa 1993). That should not affect broken controllers
that choke on the kbc_auxtest, because for those the write/read test succeeds.
2001-05-15 22:01:07 +00:00
simonb
a411a63d8e
Add the processor IDs for the 4Kc and 5Kc CPUs and some MIPS32/64
...
coprocessor 0 registers.
2001-05-15 21:48:50 +00:00
jdolecek
a20a67e39b
regen (some unnecessary passthrough stubs eliminated)
2001-05-15 21:39:31 +00:00
jdolecek
da5867c716
Eliminate passthrough syscalls stubs which only call appropriate sys_foo()
...
without any change.
Fixes kern/7270 by Bill Sommerfeld.
2001-05-15 21:37:47 +00:00
thorpej
c2ffdccb2b
Regen; Add National Semiconductor DP83861 1000baseTX PHY.
2001-05-15 21:37:33 +00:00
thorpej
8fd542b023
Add National Semiconductor DP83861 1000baseTX PHY.
2001-05-15 21:37:04 +00:00
manu
56839426da
This file is not used on alpha, and it causes some warning that break the
...
build. Added an ifdef to ignore the file content for alpha (not tested)
2001-05-15 20:35:02 +00:00
ragge
825165a54a
Octal numbers _must_ have a heading '0'!
2001-05-15 18:59:45 +00:00
toshii
fd61423f9b
Change _ARM32_*_H_ to _HPCARM_*_H_.
2001-05-15 16:15:22 +00:00
lukem
d62b92e0f7
delint: () protect some macro args
2001-05-15 15:41:27 +00:00
lukem
889762fbcf
delint: need ; between case label and }
2001-05-15 15:25:04 +00:00
lukem
37aedd067b
delint: fix comments
2001-05-15 15:20:29 +00:00
lukem
103a49d158
delint: don't try & return something from void eisa_intr_disestablish()
2001-05-15 15:07:37 +00:00
lukem
e3134697e1
delint: remove comments from macro args; confuses cpp/lint
2001-05-15 15:06:23 +00:00
lukem
09ba301f07
delint: () protect some macro args
2001-05-15 15:00:04 +00:00
lukem
9bef152bd7
delint: need ; between case label and }
2001-05-15 14:57:49 +00:00
lukem
33e8c1a04f
delint: don't try & return something from void pci_intr_disestablish()
2001-05-15 14:48:57 +00:00
lukem
0b6a1eb95a
delint: () protect some macro args
2001-05-15 14:37:36 +00:00
lukem
d3e16de232
delint: need ; between goto label and }
2001-05-15 14:30:24 +00:00
tsutsui
8f3dc26a16
Don't forget to set dma_count register in picaDmaStart().
...
XXX fd still does not work. (no longer hangs, but causes data_overrun)
2001-05-15 14:29:17 +00:00
leo
68f5fe6e81
Split pci_machdep into a generic/hades/milan part. There is much difference
...
in configspace and interrupt handling.
2001-05-15 14:14:48 +00:00
lukem
b6b83e2ec3
delint; use MAX(sizeof(..),sizeof(..)) instead of max(...) for array size
2001-05-15 14:03:27 +00:00
leo
3ac9086605
Add an NMI handler for the Milan.
2001-05-15 13:57:43 +00:00
lukem
13a9902fc6
delint: can't have an empty case item at the end of a switch; need a ; at least
2001-05-15 13:53:20 +00:00
leo
4a1227bb56
Add some Milan support functions:
...
- Low level isa interrupt handler
- NMI fault handler - catches PLX access errors
- PCI configspace read/write functions
2001-05-15 13:49:56 +00:00
leo
6d7aa9b12e
Enable NMI for Milan. It is used for signalling PLX faults.
2001-05-15 13:46:23 +00:00
ad
ae0203ee27
Correct arguments to bus_dmamap_create(), and add a reset routine for the v3
...
interface.
2001-05-15 12:49:37 +00:00
ichiro
0071e88a8c
fixed mistake.
...
major version and minor version were made reverse.
2001-05-15 11:45:50 +00:00
minoura
4bff72882b
Missings from the previous commit.
...
From Izaki-san.
2001-05-15 09:10:05 +00:00
ichiro
08d33f4cc0
Fix indentation in recent commit.
2001-05-15 09:06:15 +00:00
ross
91646d1aa5
Eliminate lhs cast (incorrectly accepted by gcc)
2001-05-15 09:04:00 +00:00
ichiro
4afb07bd12
getting prism2 firm ver routine to wi_get_id().
...
if firm ver is more than 0.8c3, promiscuous mode is off.
typo WI_RID_STA_IDENEITY -> WI_RID_STA_IDENTITY
2001-05-15 09:01:27 +00:00
msaitoh
9ae59f3041
convert two consecutive "shll"s with one "shll2"
2001-05-15 08:54:56 +00:00
jmc
0aae41bf84
Clean up comment about unregistering callbacks
2001-05-15 06:54:07 +00:00
jmc
c3967bca55
Various small changes.
...
Clean up one bug in a DPRINTF in arrs_input which could panic on some packets.
Gut the ack/response functionality and clean it up so all packets get checked
correctly and the abuf struct isn't used once the ab_cb has happened (there
still could be ack packets waiting to be processed at that time).
Finally, add some documentation explaining read/write/inreg and their
purpose/argument calling.
2001-05-15 06:52:30 +00:00
jmc
d91da495a9
Back out last change until I get fwohci rototilled better for checking the ack bits. Makes things compile again.
2001-05-15 06:30:30 +00:00
nisimura
96398342f4
Rather better to have |= to make sure spl0 condition, allowing to preserve
...
processor model specific SR bit pattern on pcb0 initialization.
2001-05-15 06:01:23 +00:00
ichiro
caa399b739
WEP cannot be used when Prism2 Firm version is lower than 0.8.3.
...
Although WEP is used in Windows also in an old firm,
because WEP is processed by the windows driver side.
If Prism2 Firm version is more than 0.8.3, WEP does work without 'Promiscuous ON'.
2001-05-15 04:27:22 +00:00
kanaoka
4d4231d0e9
Add support for "Corega FEther CB-TXD".
...
kern/12709: from Yamashiro Jun <j99060@ie.u-ryukyu.ac.jp>.
2001-05-15 04:26:23 +00:00
kanaoka
b003ab3d9c
Regen.
2001-05-15 04:25:12 +00:00
kanaoka
0f5babc5cb
Add product "Corega FEther CB-TXD". Modified from kern/12709.
...
from Yamashiro Jun <j99060@ie.u-ryukyu.ac.jp>.
2001-05-15 04:24:28 +00:00
ichiro
2970b99ac9
It enabled it to control roaming mode and authentication mode.
...
Roaming mode can change value into 'firm mode' and disable.
Authentication mode can change into 'Open System authentication'
and 'Shared Key Authentication' with Prism2 chip.
wi_get_id() was introduced in order that chip might judge automatically
whether it is Prism2 chip. Therefore, a pp_prism2 entry in
"struct wi_pcmcia_product" became unnecessary.
2001-05-15 04:14:06 +00:00
thorpej
38c798fe9f
Encapsulate name declarations in macros in preparation for adding
...
conditionally-compiled code for the DP83820.
2001-05-15 03:06:21 +00:00
thorpej
edfd12a9b1
Define the register/descriptor differences between the DP83815 and the
...
DP83820. The DP83820 definitions are wrapped in #ifdef DP83820, since
there are enough differences that a single binary object would not be
able to efficiently drive both the DP83815 and DP83820.
2001-05-15 02:19:05 +00:00
lukem
6cb5e77db5
remove use of gcc syntax for designated initialisers when initialising
...
unions `union_elem: ...', and use c99 syntax `.union_elem = ...' only
where necessary.
in this case, there's no need to tag elf_probe_func because that's the
first union element, and therefore, the implicit case. only specifically
mention ecoff_probe_func where necessary.
if we decide to not use this c99 feature for now, at least there's now
less stuff to rip out.
2001-05-15 02:00:12 +00:00
bjh21
f44b12db52
Make microtime properly monotonic, with code derived from the /alpha
...
implementation.
2001-05-14 23:45:39 +00:00
thorpej
bdb6ea6ecc
Regen; added DP83820 Gigabit Ethernet chip.
2001-05-14 22:37:24 +00:00
thorpej
285931ff50
Add product ID for the National Semiconductor DP83820 Gigabit Ethernet
...
chip.
2001-05-14 22:36:06 +00:00
jdolecek
a97bf5e6b4
Change biosmca() to export the model number via biosmca_ps2model
...
variable, if the machine has a MCA bus according to info returned
by BIOS (i.e. on machines without MCA bus, biosmca_ps2model would be zero).
biosmca() is expected to be called on beginning the initialization,
and biosmca_ps2model is then used for further checks.
2001-05-14 22:14:47 +00:00
matt
2573405952
Add latent vendor entries for ServerWorks and Winbond IDE controllers.
...
No code to use them as yet.
2001-05-14 20:41:27 +00:00
fredette
0c48999192
Rewrote a variable constraint to make gcc 2.95 happy.
2001-05-14 20:39:52 +00:00
fredette
c5feae5dbf
Now always define PGSHIFT. Thanks to the ELF move, note the new
...
larger msgbuf size and different KERNBASE.
2001-05-14 20:35:58 +00:00
bouyer
bc980d7eba
Use SCSI/ATAPI common definition for MODE_{SELECT,SENSE}{,_BIG}. Define
...
functions to send theses commands in scsipi_base.c and use them instead
of ad-hoc commands setups.
2001-05-14 20:35:27 +00:00
ross
26882092f4
o Deal with stray machine checks
...
o Add for alpha a security-sensitive rate-limiting printf(9) wrapper based
on ratecheck(9): void rlprintf(struct timeval *t, const char *fmt, ...);
2001-05-14 19:56:22 +00:00
matt
0c779d0a01
Use the LIST_NEXT & LIST_FIRST macros instead of refering to
...
le_next & lh_first.
2001-05-14 19:50:43 +00:00
ross
f62f237fde
Fix new DEBUGLIST feature.
2001-05-14 19:49:03 +00:00
fvdl
faa28e2580
Lock vp in nfs_link while we're busy with it (doing VOP_FSYNC, etc).
2001-05-14 18:51:33 +00:00
drochner
e047259a1f
Initial import of the known working kernel bits for the NetBSD/cesfic
...
port. cesfic is a VME board with one or two mc68040 processors. See
the README file for details.
The port is working well with a.out userland, there are some problems
with ELF still, like applications running out of memory where it is not
expected. Some parts, in particular the pmap (which was taken from hp300
four years ago), need updating, but this is easier done within the NetBSD
CVS tree.
2001-05-14 18:22:58 +00:00
matt
4eaed60c97
Add IP32
2001-05-14 17:59:22 +00:00
matt
50522d3e8f
Add null ip32_bus_reset. Add cpu_intr_establish which calls
...
crime_intr_establish. XXX cpu_intr_establish needs to have the
"normal" intr_establish arguments.
2001-05-14 17:56:36 +00:00
matt
4cf3bc7ebc
Define splserial to be the same as spltty().
2001-05-14 17:55:03 +00:00
toshii
c939f00e98
Abandon disabled_mask and spl_mask, and use only current_spl_level to
...
manage interrupt masking.
This change is necessary for straightforward implementation of coming IPL
support for cascaded intrs, and it should not impair performance.
2001-05-14 16:19:30 +00:00
fredette
1ef476f4a4
As a side-effect of the ELF conversion, the msgbuf
...
can now be 8K large. Removed more 68881 code that
is only useful if you have the real silicon, which
the 68010 never will.
2001-05-14 15:36:42 +00:00
fredette
9ec520c479
Now, instead of swapping in and out the PROM's segment zero,
...
swap in and out the mappings for virtual pages zero through three,
which are what the PROM really uses. This is tied to the
move to ELF and the low memory usage changes.
2001-05-14 15:12:39 +00:00
fredette
b49df54c83
One bonus of moving to ELF is that the boot loader on the sun2
...
now loads the kernel into physical memory at the linked address.
So we link the kernel a little lower virtually, but the bootloader
actually will load it higher in physical memory than before.
This allows us to quadruple the size of the msgbuf to 8K, and
we also shuffle around tmp_vpages and the temporary stack.
2001-05-14 15:07:23 +00:00
fredette
d36a2c2284
Made changes to support ELF. Highlights include:
...
To find the kernel symbol table, instead of expecting
the old a.out struct exec from locore.s, use the
ELF headers found after the kernel text.
2001-05-14 15:00:28 +00:00
fredette
f7c1abe426
Many changes to support ELF. Highlights include:
...
Added % to all register names. The boot loader now
loads us exactly where we're linked, so no PIC or
remapping funny business. Removed more 68881 code
that is only needed with the real silicon, which
a 68010 will never have.
2001-05-14 14:44:11 +00:00
ragge
74d7e1ecfa
Write support for TU58 tapes written.
2001-05-14 14:43:45 +00:00
jdolecek
6c225c676c
Compact the BIOS CFG printout
2001-05-14 14:14:09 +00:00
itojun
498fdebcd7
drop multi destination mode (IFF_LINK0).
2001-05-14 13:35:20 +00:00
leo
b38e85279e
Allow attachment of a pc-keyboard at console attach time.
2001-05-14 13:18:47 +00:00
leo
6f308f43e8
Add wscons related includes.
2001-05-14 13:10:45 +00:00
leo
b522de8af5
Adapt for the Milan.
2001-05-14 11:58:30 +00:00
leo
4eec72908c
Regen.
2001-05-14 10:41:03 +00:00
leo
f284e82b99
Add (ws)console stuff.
2001-05-14 10:35:30 +00:00
jdolecek
85c02ac331
epintr(): eliminate write-only variable 'addrandom'
2001-05-14 09:28:49 +00:00
scw
94225b1490
port-mac68l/12931 by Dave Huang:
...
Add an itepoll() function. This one slipped through my recent sweep
of line-disciplines...
2001-05-14 09:27:06 +00:00
jdolecek
6ff7de5716
remove unneeded #includes, fix typo
2001-05-14 08:01:23 +00:00
jdolecek
1f7c685ce3
remove //-commented debugging stuff
2001-05-14 07:35:33 +00:00
jdolecek
497bb809df
do not use the synchronous read mode for MCA 3c529
2001-05-14 07:03:50 +00:00
jmc
61ca5f641b
Remove ackcb. It's a duplicate of existing functionality.
2001-05-14 06:51:36 +00:00
jmc
98139fa8b9
Make sure and zero out the malloc'd abufs before using them.
2001-05-14 05:46:41 +00:00
ichiro
7f2de75450
Corega FEther PCC-TXD works fine.
2001-05-14 01:44:42 +00:00
ichiro
9a107674e5
regen
2001-05-14 01:43:42 +00:00
ichiro
70f4199532
add product Corega FEther PCC-TXD
2001-05-14 01:41:16 +00:00
ragge
73b901c711
Add checksum calculation, busy-wait loops for receive packets and use
...
correct interrupt levels (spl7). Reading tapes now work reliable.
2001-05-13 21:19:44 +00:00
manu
d473f5bd8a
Improved the accuracy of gettimeofday/settimeofday: Linux stores a srtuct
...
timezone in the kernel. We now keep track of it for emulated processes.
Tested for powerpc and i386. Untested on m68k, but it should be ok
Alpha has a particular implementation (osf1_sys_gettimeofday), and it has
therefore not been touched.
2001-05-13 20:54:42 +00:00
jdolecek
2cd8833615
Change the comment about sucky performance to recommendation to remove
...
DIAGNOSTIC/DEBUG from the kernel. This helped to boost the performance
on my test machine from ~5KB/s to like 800KB/s for ftp test, and
to like 700KB/s for netio test. I wouldn't have imagined the options
are THAT costly ....
2001-05-13 20:43:04 +00:00
kleink
95fa77ab80
Make this work for PIC (as opposed to pic) without taking chances of fitting
...
__ffstab into a GOT13 relocation; from Eduardo Horvath.
2001-05-13 20:03:45 +00:00
tshiozak
b1c2276feb
Correct a simple bug in the recent commit (pmap.c:1.19) by thopej.
...
I guess he indents to prepare a temporary variable for saving the next
pointer of a list element, but he seems to forget to substitute the
pointer for the variable. This often causes my dreamcast panic.
2001-05-13 19:41:17 +00:00
scw
7e86548d5c
doh, make the last fix compile for '147.
2001-05-13 18:35:19 +00:00
sommerfeld
b4c4ecb455
Make this build again ifdef DIAGNOSTIC (oops)
2001-05-13 17:17:34 +00:00
sommerfeld
5b2241ad77
Remove pool reentrancy testing overhead unless DIAGNOSTIC is defined.
...
Previously, we passed __FILE__ and __LINE__ on all pool_get/pool_set calls.
This change results in a measured 1.2% performance improvement in
ping-flood packets-per-second as reported by ping(8).
2001-05-13 17:06:58 +00:00
chs
b98b7c2224
turn on printf format-string checking and -Werror. fix all warnings.
2001-05-13 16:55:37 +00:00
matt
ed4e69766c
Add VAX640
2001-05-13 15:37:28 +00:00
ragge
9654c235a7
Note TS11 (ts).
2001-05-13 15:34:25 +00:00
ragge
59b29023fd
Update the TS11 driver to useable state.
...
Thanks to Michael Kukat for providing a machine to test this driver.
2001-05-13 15:32:40 +00:00
ragge
f66126b9f0
Moved from sys/arch/vax/uba/.
2001-05-13 15:30:10 +00:00
ragge
68d0ed5c0c
Add bus type.
2001-05-13 15:24:18 +00:00
ragge
637bffc245
Add bus type to softc.
2001-05-13 15:23:37 +00:00
bjh21
330163a77f
Include opt_cputypes.h, since we use CPU_*.
2001-05-13 14:41:56 +00:00
bjh21
ba2ed3776e
Refer to the Risc PC IOMD by its real name (which appears to be IOMD20).
2001-05-13 14:30:00 +00:00
bjh21
b9ded015f4
strstr() is no longer used in the kernel. G/C it.
2001-05-13 14:17:36 +00:00
bjh21
e2b24925d1
Use get_bootconf_option() to find boot options, rather than home-grown
...
strstr()-based hacks.
2001-05-13 13:53:08 +00:00
bjh21
0ea71ec5ea
Make use of a.out or ELF symbols dependent on the compile-time definition of
...
__ELF__.
2001-05-13 13:51:08 +00:00
bjh21
e8fd2642a9
Don't include parse_cpu_options() unless we're going to use it. This fixes
...
a warning on arm26.
2001-05-13 13:50:01 +00:00
bjh21
1d9afb6c6d
Initialise boot_args and boot_file, for get_bootconf_option().
2001-05-13 13:48:11 +00:00
bjh21
73bc600e40
Use _LOCORE to recognize assembler in the kernel, not ASSEMBLER (which doesn't
...
get set).
2001-05-13 13:47:23 +00:00
bjh21
2af5062ab7
Add <machine/bootconfig.h> on arm26, and add an <arm/bootconfig.h> for it to
...
include (since all the contents are MI).
2001-05-13 13:46:23 +00:00
bjh21
61044be691
Move get_bootconf_option() into a new file, sys/arch/arm/arm/bootconfig.c,
...
since it's in no way machine-dependent. It's not really ARM-specific either,
but I don't think it's useful enough to be made part of the MI kernel.
2001-05-13 13:44:33 +00:00
jmc
3790f44eac
Add a retries counter to abuf
2001-05-13 05:02:08 +00:00
jmc
880b3e6a6f
Add locators support
2001-05-13 05:01:42 +00:00
jmc
32b1bba730
Add locator support for fwbus's
2001-05-13 04:54:47 +00:00
jmc
a3263e073a
Turn off PCMCIADEBUG by default. This should get set with options in a config file
2001-05-13 04:24:51 +00:00
jmc
95cc3bf342
Turn off PCMCIACISDEBUG by default. This should get set with options in a config file
2001-05-13 04:24:28 +00:00
jmc
6cf92c7dba
Turn off PCMCIADEBUG by default. This should get set with options in a config file
2001-05-13 04:23:46 +00:00
ross
04ff12867f
Make the /u part of show reg/u work.
2001-05-13 01:40:58 +00:00
ross
818513678d
The current API for MD support doesn't directly support the documented /u
...
option to show reg /u. Fix this by adding a modif[ier] field to struct
db_variable.
2001-05-13 01:38:53 +00:00
gmcgarry
bb80cac4a1
pull in lib/libkern/libkern.h to resolve inline tolower()
2001-05-13 00:01:45 +00:00
gmcgarry
b2f43b0b94
size -> ${SIZE}
2001-05-12 23:55:07 +00:00
kleink
9e162d4ea5
Delint my previous change.
2001-05-12 22:42:07 +00:00
chs
b4de661569
switch next68k to ELF. highlight include:
...
add "%" prefix to register names in assembly code.
change assembly functions to return pointer values in %a0 instead of %d0.
C symbols no longer prepend an underscore, adjust assembly code for this.
32-bit values are now 32-bit aligned instead of 16-bit aligned,
adjust structure packing and padding to override this where necessary.
make EXEC_ELF std, make EXEC_AOUT and COMPAT_AOUT_M68K optional.
use the MI loadfile() instead of several home-grown versions.
2001-05-12 22:35:29 +00:00
chs
1aeca5a83b
define VECTOR() and friends in non-_KERNEL environments too.
2001-05-12 22:27:05 +00:00
chs
c70198d510
undo the parts of the last revision which broke QUEUEDEBUG builds.
2001-05-12 20:18:23 +00:00
christos
00adbfd8d6
- Handle realloc failure without leaking memory
...
(reported by: grendel@heorot.stanford.edu (Ted U)
- Don't cast malloc/realloc/calloc return values because they hide LP64 bugs.
- Don't destroy the whole array when realloc fails
- Use calloc in all cases (malloc was used inconsistently).
- Avoid duplicating code.
Reviewed by: ross
2001-05-12 19:21:57 +00:00
christos
6f62797262
Don't leak memory in case of a realloc failure.
...
Reported by: grendel@heorot.stanford.edu (Ted U)
2001-05-12 19:18:57 +00:00
takemura
e427bbc2de
Add '#if defined(_KERNEL) && !defined(_LKM)' to avoid including
...
opt_spec_platform.h when you compile standalone program (bootloader).
2001-05-12 10:17:20 +00:00
takemura
b8cf6af7cb
Fix description about frame buffer type.
2001-05-12 10:08:59 +00:00
kleink
ba6a8bf61e
Update to reflect that unlike in m68k a.out environments, where the .align
...
directive is given a log2 argument, .align is given a linear argument in
m68k ELF environments.
2001-05-12 00:55:34 +00:00
tsutsui
9247a0bbcc
- Declare pccnattach() in <machine/pccons.h>
...
- Make cpu_reboot() reset machines properly without pccons
2001-05-11 21:15:11 +00:00
kleink
045d2b0272
Make this build again.
2001-05-11 19:19:44 +00:00
itojun
f4d5905544
there's no need to #if NFAITH here. IN6P_FAITH can be set even on
...
NFAITH == 0 kernel, it is safer to always check the condition.
sync with kame.
2001-05-11 18:38:03 +00:00
kleink
58a818769b
* Fix remaining 32-bit vs. native pointer problems in data structures;
...
reviewed by Eduardo.
* Define the size of uc_pad, so ucontext32_t will have the correct size.
2001-05-11 17:37:14 +00:00
kleink
1d8e184b6b
svr4_32_mcontext.gwin is a pointer 32 bits wide.
2001-05-11 16:49:22 +00:00
tsutsui
67b73792f6
Clean up redundant declarations.
2001-05-11 16:36:42 +00:00
scw
e2177c7f71
Ensure the caches are flushed before changing the `cacheble' state
...
of a page.
2001-05-11 13:05:06 +00:00
scw
6ca2fd54c1
Take the offset and length into account inside bus_dmamap_sync().
...
(Inspired from the Atari version).
This fixes a problem seen with the new MI osiop driver.
2001-05-11 13:01:44 +00:00
jmc
bfd7dcb931
Add first pass generic ack callback code (to eventually replace mbuf specific code).
...
Change ab_node's to ab_req.
Fix a bug where setting BIBValid on OHCI 1.0 chips (this is a reserved bit
on 1.0)
2001-05-11 06:10:44 +00:00
jmc
29499573cd
Change ab_node's to ab_req.
...
Use read/write instead of input/output.
Fix a bug in attach where the abuf wasn't getting zero'd out.
2001-05-11 06:09:01 +00:00
jmc
5bf1559a64
Rename input/output to read/write to match ieee1394var.h
2001-05-11 06:07:40 +00:00
jmc
2d235c864f
Add some notes
2001-05-11 06:07:02 +00:00
jmc
b4974f0526
Add first pass of generalized hooks for packet completion (i.e. ack) codes. This will eventually replace the mbuf code when it moves back to if_fw.c where it belongs.
2001-05-11 06:06:03 +00:00
jmc
6dc32302f3
Add mask for getting the ACK bits out of the status area of a DMA context descriptor
2001-05-11 06:04:49 +00:00
jmc
b7d6b60f87
Change abuf to include both requestor and responder softc's (for dealing with requests from other nodes later).
...
Add a callback so the ACK bits can be looked at if wanted.
Change the input/output pointers to proper proto's and rename to read/write.
2001-05-11 06:03:55 +00:00
jmc
32a67a12cd
Remove extraneous prototype
2001-05-11 06:00:17 +00:00
lukem
6685080692
add missing parenthesis in macros, detected by lint and debugged by todd.
2001-05-11 05:13:57 +00:00
thorpej
a3fad63f23
Rafal's Indigo2 kernel configuration.
2001-05-11 05:05:42 +00:00
thorpej
5c3fa40aa3
Autoconfiguration glue changes for Indigo2/Indy support.
2001-05-11 05:04:34 +00:00
thorpej
c68eb33351
Delete __NO_SOFT_SERIAL_INTERRUPT.
2001-05-11 05:02:30 +00:00
thorpej
c36aca4169
Support for configuring an SCC console. From Rafal K. Boni.
2001-05-11 04:56:56 +00:00
thorpej
935ed514af
Support for the IP22 (Indigo2, Indy, Challenge S). From Rafal K. Boni.
2001-05-11 04:56:09 +00:00
thorpej
07d7386b8f
Move IP32 (O2) support into its own file.
...
From Rafal K. Boni.
2001-05-11 04:55:42 +00:00
thorpej
acc9f8ef65
Adjustments for dynamic system configuration. From Rafal K. Boni.
2001-05-11 04:53:25 +00:00
matt
063e046c8f
Add MI cprofb (used on shark and netwinder)
2001-05-11 04:47:56 +00:00
thorpej
7583466c6f
Expose atoi(). From Rafal K. Boni.
2001-05-11 04:47:55 +00:00
matt
0f8a2c610f
Add MI cprofb (used on shark and netwinder)
2001-05-11 04:47:55 +00:00
thorpej
148ab319ac
Use hit-flush ops in bus_dmamap_sync(). From Rafal K. Boni.
2001-05-11 04:46:22 +00:00
thorpej
fc4bcdcdf2
We now have generic soft interrupts.
2001-05-11 04:42:41 +00:00
thorpej
a8a801d6f3
Dynamic system configuration support, derived from pmax port.
...
From Rafal K. Boni.
2001-05-11 04:42:13 +00:00
thorpej
c9ca9bb770
SGI machine types and subtypes. From Rafal K. Boni.
2001-05-11 04:38:22 +00:00
thorpej
6b313f2c5f
Basic EISA support for the Indigo2. From Rafal K. Boni.
2001-05-11 04:36:15 +00:00
thorpej
13f69bc540
Generic software interrupt implementation, derived from mipsco
...
implementation.
From Rafal K. Boni.
2001-05-11 04:32:05 +00:00
thorpej
87f3aebd5e
New data structures for the new SCC driver.
...
From Rafal K. Boni.
2001-05-11 04:26:17 +00:00
thorpej
f24f6c113d
Support for the SCC serial ports on Indigo2/Indy.
...
From Rafal K. Boni.
2001-05-11 04:24:44 +00:00
thorpej
3b92374a20
Support for the Indigo2/Indy IMC (this is that to which all other
...
devices are attached).
2001-05-11 04:22:55 +00:00
thorpej
e6e4372ada
New clock functions, based on the newsmips versions. These
...
actually do something, by calling into the hardware clock
routines set up during autoconfiguration.
From Rafal K. Boni.
2001-05-11 03:42:59 +00:00
thorpej
ce9753d9e9
Autoconfiguration glue for HPC devices.
...
From Rafal K. Boni.
2001-05-11 03:23:38 +00:00
thorpej
5885656e58
Support for the Seeq 8003 Ethernet attached to the HPC ASIC,
...
found on Indigo2 and Indy.
From Rafal K. Boni.
2001-05-11 03:22:21 +00:00
thorpej
5d02689ede
IOC1/2 memory map.
...
From Rafal K. Boni.
2001-05-11 03:18:57 +00:00
thorpej
726924bc4c
Support for the Dallas 1286 clock found on the Indigo2 and Indy.
2001-05-11 03:16:59 +00:00
thorpej
c4173c40c1
Support for the HPC I/O peripheral ASIC. There is where SCSI, Ethernet,
...
etc. live on the Indigo2 and Indy.
From Rafal K. Boni.
2001-05-11 03:11:20 +00:00
thorpej
149ebabf26
Get the major number of the CRIME properly.
...
From Rafal K. Boni.
2001-05-11 02:25:21 +00:00
thorpej
240de9a426
Definitions for the Dallas Semiconductor DS1286/DS1386 Real Time Clock.
...
From Rafal K. Boni.
2001-05-11 02:07:09 +00:00
thorpej
4efd12ca44
Set SR to PSL_LOWIPL rather than MIPS_INT_MASK | MIPS_SR_INT_IE,
...
as the former accounts for some mips3-related options.
From Rafal K. Boni.
2001-05-11 02:03:01 +00:00
thorpej
0976e733f4
Correct args to SYSCALL_DEBUG related function calls.
...
From Rafal K. Boni.
2001-05-11 01:42:32 +00:00
thorpej
18e25d5feb
Add a flag to suppress SCC reset at attach time.
...
From Rafal K. Boni.
2001-05-11 01:40:48 +00:00
petrov
591e596a12
john heasley patch <heas@shrubbery.net>, PR port-sparc/12885
...
added PROM name translations for hme and fas
2001-05-10 23:11:53 +00:00
fvdl
ba2882488a
Despite what the hardware docs say, the global reset command is not
...
done when the command-in-progress bit has been cleared. The 1ms
time that is mentioned also seems wrong; 20,000us is not enough
on at least one machine. So, do a delay(100000) in ex_reset.
Fortunately, this function is only called when the card is
attached or when hardware failure is suspected.
While here, only mask one 1 bit in the 'reset hack' case.
2001-05-10 22:57:44 +00:00
tron
74cc245bbe
Fix typo: Pnp -> PnP
2001-05-10 22:12:38 +00:00
fredette
ee50c275ca
Put longjmp's return value in the proper %d0.
2001-05-10 16:50:22 +00:00
pk
8001e23cd0
* reserve NBPG et.al. for kernel usage only.
...
* remove obsoleted comment on `physmap'.
2001-05-10 11:01:08 +00:00
pk
6016064c18
SHMLBA:
...
kernel use: change to PAGE_SIZE
userland: call libc's internal __sysconf(_SC_PAGESIZE)
2001-05-10 10:50:51 +00:00
ad
8aad07ad6a
Add missing printf().
2001-05-10 09:41:19 +00:00
thorpej
2f58df9a8f
Rearrange the code that adds pages of objects to the pool; require
...
that the caller allocate the pool_item_header when it allocates the
pool page, so we can avoid a locking pitfall (sleeping with a simple
lock held).
Also revive pool_prime(), as there are some letigimate uses of it,
but in doing so, eliminate some of the bogosities of the old version
(i.e. don't do an implicit "setlowat", just prime the pool, and incr
the minpages for each additional page we add, and compute the number
of pages to prime in a way that callers would expect).
2001-05-10 04:51:41 +00:00
thorpej
6ec67f871a
Use POOL_NEEDS_CATCHUP() in one more place.
2001-05-10 02:19:32 +00:00
augustss
f63784bfbe
Improved fix of PR12796, from Frederick Bruckman <fb@enteract.com>
2001-05-10 01:54:30 +00:00
itojun
63181d71c1
correct ecn consideration on tunnel encap/decap. sync with kame.
2001-05-10 01:37:42 +00:00
thorpej
db26619a5e
Encapsulate the test for a pool needing a pool_catchup() in a macro.
2001-05-10 01:37:40 +00:00
itojun
2c2ff2e32d
one more indentation fix
2001-05-10 01:30:55 +00:00
itojun
b87cb9344b
whitespace/indentation cleanup
2001-05-10 01:23:51 +00:00
lukem
88d538c21e
fix comment; cdev_notdef() is a funny pc console :)
2001-05-10 01:23:23 +00:00
itojun
dc452a48f6
no longer need to carry local version of inet_ntoa, we have it in libkern.
2001-05-10 01:04:08 +00:00
thorpej
627edfcb50
Remove pool_create() and pool_prime(). Nothing except pool_create()
...
used pool_prime(), and no one uses pool_create() anymore.
This makes it easier to fix a locking pitfall.
2001-05-09 23:46:02 +00:00
thorpej
626cb1c3ce
Use pool_init() rather then pool_create().
2001-05-09 23:38:20 +00:00
thorpej
e2a791df22
Use pool_init() rather than pool_create().
2001-05-09 23:20:59 +00:00
matt
c2214aaf3c
Remove includes that only include <arm/*.h>. These are now picked up
...
automatically when making kernels. (to be submitted). Next rev will
eliminate those includes that include <arm/arm32/*.h>
2001-05-09 22:30:43 +00:00
augustss
5c9ba155e3
Apply patch in PR lib/12796 from Frederick Bruckman <fb@enteract.com>
2001-05-09 21:49:58 +00:00
kleink
dd4df24b01
Make the set of machine state restored by setmcontext() identical to that of
...
sigreturn().
2001-05-09 20:31:00 +00:00
kleink
e0b29e0491
Sync with native emul: rename sc_tstate to sc_psr.
2001-05-09 20:21:50 +00:00
kleink
f0d6ebbd33
Make restoring the PSR ICC bits really work in __sigreturn14().
2001-05-09 20:13:38 +00:00
fvdl
0cc3c4a023
Suppress another case of a potentially noisy error message which
...
isn't fatal.
2001-05-09 20:02:32 +00:00
kleink
aec2bbb42f
Sync sc_psr comments with reality.
2001-05-09 19:50:49 +00:00
kleink
7dbfdb5508
In the 32-bit ABI case:
...
* rename sigcontext.sc_tstate to sc_psr, since this is how it is known to
the 32-bit API, and also used for;
* don't try to squeeze the tstate into it, just emulate the ICC bits.
Per discussion with Eduardo.
2001-05-09 19:46:22 +00:00
augustss
59f85c4e3e
Ansify a function I forgot last time.
2001-05-09 19:33:07 +00:00
fvdl
defa9bf05f
Avoid potential cases of sleeping while holding a spinlock. Pay attention
...
to SWF_FAKE when finding a swap device. GC swapdrum_add; it was only
a few lines long and called once, so just inline the code there.
2001-05-09 19:21:02 +00:00
thorpej
6300e455b4
Make sure `bhlc' is initialzed before we consult it to determine
...
the number of functions on the card.
2001-05-09 18:16:39 +00:00
matt
9c197c4609
Change references to <arm32/isa/timerreg.h> to <dev/ic/i8253reg.h>
...
Remove timerreg.h
2001-05-09 17:34:40 +00:00
tsutsui
73c5107dc5
Tidy up some debug messages.
2001-05-09 16:44:44 +00:00
tsutsui
330ab2b636
Print a clock frequency of the chip.
2001-05-09 16:24:43 +00:00
matt
bd9a11ee56
Populate ofw subtree.
2001-05-09 16:08:43 +00:00
matt
16db09f9f6
Add isa_machdep.c for dnard
2001-05-09 15:58:50 +00:00