Commit Graph

29757 Commits

Author SHA1 Message Date
mbw
a506aacc6d tv@netbsd says that the desired behavior for macppc is for de to be default
for DEC-based chips, and to have tlp available for tulip clones.  The change
in GENERIC is such that TLP_MATCH options are commented out (allowing de to
attach to DEC-based chips), and change in is INSTALL such that de is present
and TLP_MATCH options are commented out.

The addition of de in INSTALL increases its compressed size by about 17 KB.

Primarily the goal is to have INSTALL and GENERIC use the same device.
This will fix PR port-macppc/10779.

It has been tested with the 1.5.3_ALPHA GENERIC and INSTALL kernels on my
PowerMacintosh 7300 with a 21140A (now de, previously tlp) and a
Lite-On 82C115 (tlp).

de0 at pci0 dev 15 function 0
de0: interrupting at irq 25
de0: Asante 21140A [10-100Mb/s] pass 2.2
de0: address 00:00:94:a4:03:35
de0: enabling 10baseT port

tlp0 at pci0 dev 14 function 0: Lite-On 82C115 Ethernet, pass 2.5
tlp0: interrupting at irq 24
tlp0: Ethernet address 00:00:94:b6:16:ef
tlp0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX
2002-01-03 04:34:21 +00:00
thorpej
ac0867dd40 Add BITFIELDTYPE lint comments where we need to use u_int64_t bitfields. 2002-01-03 04:28:31 +00:00
mrg
5d06ed3c94 move sparc specific ioctl handling (fb & openprom) into arch/sparc64. 2002-01-03 02:29:39 +00:00
thorpej
4eef3278dc Add casts to the __lint__ version of va_arg() to avoid dereferencing
non-pointer arguments in cases like: foo = *va_arg(ap, int *);
2002-01-03 02:05:42 +00:00
thorpej
bd95f88c7d Define __BIT_TYPES_DEFINED__. 2002-01-03 01:58:58 +00:00
thorpej
8873902707 Make gcc 3.1's preprocessor happy with the __lint__ va_end(). 2002-01-03 01:56:52 +00:00
thorpej
7efc72e894 Only use __builtin_va_list if __GNUC__. 2002-01-03 01:37:20 +00:00
aymeric
6b2ea61c0c When we jump to the absolute address of the next instruction, we have to
export the label we use for that purpose, otherwise, that smart gas will
change it to a relative jump, which does basically nothing.

I can finally boot NetBSD/amiga ELF. (Yippee!)

While there, test if we are a 68851 before we invalidate the TLB,
instead of doing it between the TLB flush and the data cache flush.
2002-01-03 01:13:35 +00:00
mcr
d64a9cddad moved ARMADA specific CARDBUS options to CARDBUS
added cardbus/pci bridge to CARDBUS config.
	removed ARMADA config (as promised)
2002-01-02 22:32:16 +00:00
dbj
920e8af571 add some error checks in adb_reinit, enabled with ADB_DEBUG and adb_debug 2002-01-02 20:30:45 +00:00
dbj
32eabd8148 if pm_adb_op times out waiting for an interrupt, attempt to take
an interrupt anyway, just in case.  Otherwise, report the timout condition.
This works around a problem in my ibook if a key is pressed after boot
and before adb is configured, such as when booting with -d.
2002-01-02 20:28:43 +00:00
dbj
9c182d4af3 defer attaching akbd as console until after it has
been initialized in akbdattach
2002-01-02 20:21:12 +00:00
thorpej
9841593fe5 Fix a typo. 2002-01-02 14:48:09 +00:00
thorpej
db5e19a211 Need <sys/systm.h> for ffs() prototype (noticed by gcc 3.1). 2002-01-02 14:47:15 +00:00
uch
91fd1d80b7 VR41XX/TX3922 common kernel. 2002-01-02 13:13:18 +00:00
uch
58e763000e fix typo in comment. 2002-01-02 13:11:02 +00:00
uch
78e38d9e62 fix bootstrap stack violation. 2002-01-02 13:08:35 +00:00
uch
f96ef6a094 fix memory probe sequence.
fix bootstrap stack violation. (code are moved to machdep.c)
2002-01-02 13:08:05 +00:00
uch
51c202eb5e s/TOOLDIR/EETOOLDIR/ 2002-01-02 12:49:43 +00:00
uch
71505e004a sync with uhidev change. 2002-01-02 12:49:10 +00:00
uch
b8467dcaa6 int128_t and u_int128_t are wrapped in defined(_KERNEL) && defined(MIPS3_5900) 2002-01-02 12:38:46 +00:00
uch
e4130f57f1 _intr_suspend and _intr_resume declarations are moved to intr.h. 2002-01-02 12:36:20 +00:00
takemura
bd59ae1f5c BUGFIX: sg2com isn't attached as a console device if it is a console. 2002-01-02 10:09:35 +00:00
mrg
e674bb7dc8 make this hostprog friendly. 2002-01-02 05:21:34 +00:00
mrg
dc34af64a7 - add a -i path-to-installboot option
- also recognise $INSTALLBOOT from the environment
- update Usage & share the option list with Help.
2002-01-02 04:13:42 +00:00
augustss
53d829ae4c Use the right I/O addresses for the ISA radio cards. 2002-01-02 04:08:41 +00:00
augustss
323b1e432f Add (commented out) udsbr. 2002-01-02 03:23:07 +00:00
chs
9451559ef4 pmap_page_protect(VM_PROT_NONE) must remove all mappings in the PV list,
even if they are wired.  we need to be able to remove all mappings to
pages that are being freed due to (eg.) file truncation.
2002-01-02 00:51:33 +00:00
chs
a70dcbb2fd merge in a bit from the MP branch to cut down on LOCKDEBUG spew:
Use optimistic locking in pmap_create() so that we don't lock against
ourself if allocating the page directory causes pmap_growkernel() to
be called.
2002-01-01 22:52:11 +00:00
augustss
18f7211eb9 Make mr pci attachment conform. 2002-01-01 22:15:43 +00:00
augustss
32d039b3bf Add (commented out) radio card support. From OpenBSD. 2002-01-01 21:54:21 +00:00
hpeyerl
19d2ddde8d Add entry for PC Weasel/PCI. 2002-01-01 16:52:23 +00:00
skrll
e25a471c87 Fix typo in comment. 2002-01-01 16:24:33 +00:00
perry
259130c9d4 boost up default times for when clocks are insane (as we do every few years.) 2002-01-01 09:14:14 +00:00
thorpej
d2453f69b1 Remove the call to abort(). We don't pull in a prototype for it,
and there's no sane way to do so.
2002-01-01 01:58:01 +00:00
dbj
0057f73f87 save and restore sprg[0-3] when calling openfirmware
this fixes calling OF_finddevice() with invalid devices,
and as a result fixes booting with -d.
Apparently openfirmware expects persistence of sprg2 and/or sprg3
I suspect this is used when handling exceptions
2001-12-31 18:35:26 +00:00
dbj
98cbceb382 handle have_address=TRUE 2001-12-31 18:29:07 +00:00
matt
873f33f78e Make the same change to icache/dcache size calculation as was done to ecache.
Fixes PR 12844.
2001-12-31 16:26:10 +00:00
lukem
1f5f54d132 add <sys/systm.h> (for libkern.h) now that -ffree-standing is in effect 2001-12-31 15:01:51 +00:00
uwe
0207013726 Now that sbus_bus_mmap was converted to do the proper address
translation, get rid of sbus_bus_addr.  Since sbus_bus_addr is used by
framebuffer drivers that are shared with sparc64 we cannot just change
the callers to use BUS_ADDR() w/out coordinating the change with
sparc64 that uses a different calling protocol, so stub our
sbus_bus_addr to just return BUS_ADDR.
2001-12-31 15:00:58 +00:00
mrg
e5fc1d934a clarify usage. idea from david obrien. 2001-12-31 09:44:04 +00:00
matt
0bc218f05c When determining ecache size, try using ecache-size. if it doesn't exist,
fallback to the old method (ecache-nlines * ecache-linesize).
2001-12-31 07:30:46 +00:00
dbj
f03e8813e0 allow ddb access to lr, ctr, cr and xer registers when not on PPC_IBM4XX 2001-12-30 20:53:04 +00:00
dbj
98d1a18067 remove unused variable in kgdb_acc 2001-12-30 20:50:53 +00:00
pk
5237c5fb99 In cpu_fork() set tf_npc as well in case a signal is taken in child_return()
which will cause the values of tf_pc and tf_npc set here in cpu_fork()
to be restored and used to return to user space from sigreturn() eventually
(before that the tf_pc and tf_npc set in sendsig() will be used in
proc_trampoline()).

Also, the fork system call never uses the SYSCALL_G2RFLAG shortcut, so drop
the code handling that.
2001-12-30 18:52:54 +00:00
pk
76634d2635 Change interface between cpu_fork() and proc_trampoline() so that `tf_pc'
(instead of `tf_npc') contains the user-space return address. This ensures
entering the signal trampoline code correctly in case we take handled
signal during child_return().
2001-12-30 16:41:29 +00:00
lukem
95c845e4fc add -Os to COPTS after <bsd.prog.mk> is pulled in rather than adding
it in CFLAGS beforehand, as a user's mk.conf COPTS+=-O2 results in
boot files that are too large.
2001-12-30 16:32:29 +00:00
wiz
b5df8875da Uncomment uhidev, since other entries depend on it. 2001-12-30 14:49:08 +00:00
augustss
dbd7c7b7bc Make uhidev change. 2001-12-30 13:28:13 +00:00
takemura
936fd137e6 BUGFIX: It allocated only 44 bytes for hpcapm while the device needed
764 bytes.

it was really terrible.
2001-12-30 12:57:41 +00:00