lukem
b5f53318b6
/rescue/*, and a new crunchgen to ensure /rescue/* is statically linked
2002-08-24 13:25:01 +00:00
lukem
9aa0322535
don't bother with "rm -f $$t" before ${INSTALL_LINK} or ${INSTALL_SYMLINK},
...
as they default to using install(1) -r.
the rm can cause problems in certain situations, such as moving a library or
shared linker that install(1) depends upon to another location and replacing
it with a (sym)link.
2002-08-24 13:12:38 +00:00
ragge
2c43ae582f
Must set correct HW unibus number so that disk autodetection on other
...
Unibuses than the first work.
2002-08-24 10:48:10 +00:00
itohy
6736303e13
Use assembly version of ffs(3).
2002-08-24 06:39:48 +00:00
itohy
85ce1de27f
Oops, SYSLIBC_SCCS -> LIBC_SCCS
2002-08-24 06:37:24 +00:00
itohy
70b5675025
Assembly version of ffs(3).
...
Confirmed to return the same value as that of the C version.
The results of a simple benchmark on SH-4 200MHz, is shown below.
I think this shows acceptable performance.
return value C version this version speed
of ffs() (ns/call) (ns/call) ratio
------------ --------- ------------ -----
0 86 86 1.00
1 110 86 1.27
2 132 86 1.53
3 165 105 1.57
4 201 104 1.93
5 237 111 2.13
6 271 111 2.44
7 307 126 2.43
8 342 125 2.73
9 376 122 3.08
10 410 121 3.38
11 446 139 3.20
12 483 140 3.45
13 518 146 3.54
14 551 146 3.77
15 587 161 3.64
16 624 162 3.85
17 658 141 4.66
18 694 142 4.88
19 727 160 4.54
20 764 161 4.74
21 799 167 4.78
22 834 167 4.99
23 868 181 4.79
24 903 181 4.98
25 939 146 6.43
26 974 146 6.67
27 1009 166 6.07
28 1044 165 6.32
29 1080 171 6.31
30 1115 171 6.52
31 1151 185 6.22
32 1185 186 6.37
2002-08-24 06:30:34 +00:00
thorpej
41c25cb648
Add autoconfiguration support for the Sun4d "bootbus". Add a
...
zs @ bootbus attachment.
2002-08-24 05:26:56 +00:00
mhitch
89fd7196ed
Add missing PMAP_TLB_SHOOTDOWN() after PMAP_INVALIDATE_TLB() in
...
pmap_page_protect(). Closes NetBSD Problem Report #18045 .
2002-08-24 03:10:52 +00:00
thorpej
ffdedb6d80
In pmap_map_in_l1() and pmap_unmap_in_l1(), make sure that the VA
...
that is passed in is already aligned to a 4M super-section.
2002-08-24 03:10:40 +00:00
thorpej
d158b3a37a
When we allocate a PTP, make sure the offset we specify is for
...
the 4M super-section that the PTP will map, not some random 1M
chunk of it. This gives the PTP hint code a much better chance
to working properly, and allows us to tidy up the code that
flushes a PTP from the cache in pmap_destroy().
2002-08-24 02:50:53 +00:00
thorpej
aafe6e006c
Define macros describing the 4M super-sections that our pmap
...
actually uses (since we allocate PT pages in 4K chunks, rather
than 1K chunks).
2002-08-24 02:48:50 +00:00
thorpej
77a6866508
Enable caching on kernel and user page tables. This saves having
...
to do uncached memory access during VM operations (which can be
quite expensive on some CPUs).
We currently write-back PTEs as soon as they're modified; there is
some room for optimization (to write them back in larger chunks).
For PTEs in the APTE space (i.e. PTEs for pmaps that describe another
process's address space), PTEs must also be evicted from the cache
complete (PTEs in PTE space will be evicted durint a context switch).
2002-08-24 02:16:30 +00:00
lukem
6aeb2c119f
if RESCUEDIR is defined, use ${RESCUEDIR}/sh as _PATH_ALTSHELL
2002-08-24 01:05:14 +00:00
lukem
9f3703ab9a
- use _PATH_ALTSHELL (which defaults to _PATH_BSHELL) as the default ALTSHELL
...
(as opposed to _PATH_BSHELL), to allow the ALTSHELL to be changed.
- print the full path to the default shell in the ALTSHELL prompt.
2002-08-24 01:02:51 +00:00
lukem
a14ac7834b
now that we have working rescue tools, there's no need to force
...
LDSTATIC=-static for init(8) on people who want LDSTATIC=""
2002-08-24 01:00:18 +00:00
lukem
fe84c3ffb2
support -sh as a synonym for sh
2002-08-24 00:51:12 +00:00
lukem
141ac20efe
only print "init: trying /some/init" if RB_ASKNAME or if it's not the first
...
path we're trying. (the intent but not the behaviour of the previous rev.)
2002-08-24 00:47:17 +00:00
thorpej
bb0558df3e
Oops, don't need a DMA tag.
2002-08-23 21:49:13 +00:00
matt
2d290eb699
Use the qtype_FOREACH macros. Print out address of hook that could not
...
be disestablished.
2002-08-23 20:50:25 +00:00
thorpej
a71473b576
Add autoconfiguration glue for the Sun4d "cpu-unit". Each processor
...
board has 2 CPU units (one for each processor), one of which also has
a "bootbus", to which the serial ports, etc. are attached.
We can now probe/attach CPUs on a SPARCserver 1000.
2002-08-23 18:00:46 +00:00
bouyer
86514a3c90
Note support for HPT372 and (better late than never) HPT374.
2002-08-23 16:31:09 +00:00
itojun
a8b4aa9a72
#if 0 out call to rnd_add_uint32() in interrupt logic until thorpej
...
measures performance differences.
2002-08-23 16:30:10 +00:00
bouyer
ceb355fe05
Add support for Promise Ultra133TX2, and Ultra133TX2v2.
2002-08-23 16:29:37 +00:00
bouyer
0d17a940f8
Add support for HPT372. From sdegler@kashmir.degler.net in kern/17908,
...
with some improvement from me, and from FreeBSD.
2002-08-23 16:24:54 +00:00
itojun
36e473ebb2
off-by-one. PR 18049
...
correct snprintf() return value handling in another place.
2002-08-23 16:10:42 +00:00
matt
ffdea2c266
Only do the dssall if cpu_altivec is set.
2002-08-23 16:08:10 +00:00
bouyer
1a7bae9619
Add support for Promise Ultra133TX2 and Ultra133TX2v2, from FreeBSD and
...
stephen@degler.net in kern/17509.
2002-08-23 16:02:32 +00:00
bouyer
ea9862cb62
Regen: Add Promise Ultra133TX2 and Ultra133TX2v2 PCI ID
2002-08-23 15:57:04 +00:00
bouyer
f49156d31c
Add Promise Ultra133TX2 and Ultra133TX2v2 PCI ID.
2002-08-23 15:56:30 +00:00
scw
b3e086e0ce
Attach the ECC driver instead of the previous "eccirq" property hack.
2002-08-23 15:03:33 +00:00
scw
5b79fdfaf7
Add "ecc at plb" device.
...
Add an "irq" locator to the plb device.
This gets rid of the original hack where ecc support was wedged into
the cpu driver.
2002-08-23 15:01:07 +00:00
simonb
3502025a54
Show the IRQ we attach the ECC handler to.
2002-08-23 13:43:18 +00:00
simonb
a9560f7ab2
Don't pass PROP_CONST to board_info_set() for variables that are on
...
the stack; we want to copy the property into the database.
2002-08-23 13:41:55 +00:00
scw
3a0067a42a
Comment out wscons-related options until port-specific code is written.
2002-08-23 13:16:23 +00:00
scw
27ff9862b3
Override the last commit by auto-generating the file from walnut's
...
etc.MAKEDEV.
Pointed out by Thomas Klausner.
2002-08-23 13:01:21 +00:00
scw
50e32c42df
Make the comments at the top match reality.
...
G/C a couple of other unused devices.
As a precaution, comment out the wscons entries until
the kernel supports it and note that their major numbers
will need to be re-synced.
2002-08-23 12:58:37 +00:00
scw
9ba60b4297
Install the ECC error interrupt handler at the level specified by
...
a "4xx-ecc-irq" property.
If the property isn't defined, assume the hardware has no ECC support.
This should, ideally, be a config file option.
2002-08-23 12:46:49 +00:00
scw
a97e0cd99d
G/C satlink and wscons. Neither are applicable to the walnut port.
2002-08-23 12:18:46 +00:00
scw
a625cf764a
Don't create satlink or ttyE device nodes. The former clashed with tty00,
...
and the latter (wscons) doesn't exist on Walnut anyway.
Renumber ttyCY to match Walnut's conf.c.
2002-08-23 12:18:06 +00:00
wiz
d4a8d9ed9e
Remove duplicate 'is' reported by Arto Huusko in misc/18048.
2002-08-23 12:04:39 +00:00
scw
c4fdfebd38
Allow port-specific Makefiles to override the name and location
...
of locore.[So].
This is in preparation for arch/evbppc.
2002-08-23 12:01:58 +00:00
scw
a0d58bf2f5
Remove an extra trailing bracket in a DEBUG printf.
2002-08-23 11:59:40 +00:00
scw
f384fe8ba7
Don't assume all com ports run at "COM_FREQ", or a multiple thereof.
...
Use a board-specific property instead.
2002-08-23 11:42:13 +00:00
scw
19c988633d
Don't frob cpu-specific DCR registers in common code.
2002-08-23 11:40:07 +00:00
scw
4968573654
Split off common 4xx locore code so it can be re-used by other 4xx ports.
2002-08-23 11:37:53 +00:00
wiz
4a20060b4c
Fix typo.
2002-08-23 10:39:46 +00:00
tron
85f89e9c20
Adapt minor number of "libutil".
2002-08-23 10:35:36 +00:00
tron
ef63cbff6b
Bump minor number to 3 because there are already systems with
...
"libutil.so.6.2" to avoid further problems.
2002-08-23 10:34:02 +00:00
ragge
3f5fba68de
Do not try to use "__builtin_ffs" on vax, ffs is an instruction already.
...
Maybe possible to teach gcc to use it?
2002-08-23 08:45:27 +00:00
kanaoka
d4a4b29e36
- Support -4 and -6. Approved by itojun.
2002-08-23 08:14:20 +00:00