Commit Graph

38405 Commits

Author SHA1 Message Date
matt
e7c76e51e6 Add SIGFPE handling code. Report the proper SIGINFO ksi_code when a SIGFPE
happens.  When a SIGFPE occurs, disable the exception enables in the FPSCR.
2004-04-04 19:21:36 +00:00
pk
12d5178857 For now, disable Hypersparc instruction cache on MP machines. 2004-04-04 18:54:01 +00:00
pk
8066aa3aa5 * Allow pv_link4_4c() to fail with ENOMEM on pool allocation failures
(catching up with pv_link4m()).
* Fix return code checking for pv_link4m() calls.
* Add low water setting to pv pool.
2004-04-04 18:34:35 +00:00
pk
486f4170eb Remove private declarations of maxdmap and maxsmap. 2004-04-04 18:24:22 +00:00
uwe
e548ab355a Correct the comment about contrast control in HD64461 GPIO port B:
6th bit is the least significant, 3rd is the most significant.
2004-04-04 17:49:38 +00:00
matt
bc8d283982 Reformat the __asm a bit. 2004-04-04 17:35:15 +00:00
matt
5bf797c2e1 Add int get_fpu_fault_code(void). 2004-04-04 17:26:58 +00:00
matt
481d181cd4 In cpu_getmcontext, make sure the returned MSR has the FP exception mode
(PSL_FE0|PSL_FE1) saved in the PSL.  In cpu_setmcontext, copy the FP
exception bits to the PCB where they live.
2004-04-04 17:26:10 +00:00
matt
847bed9428 Fix the way cpu_setmcontext was restoring FPSCR. Make the opposite of the
way that cpu_getmcontext was saving it.  (FPSCR was being saved incorrectly
before and thus obliterated when a signal happened).
2004-04-04 17:20:15 +00:00
matt
7681ce429d Make sure that the SRR1 we pass to userland reflects PSL_FE0|PSL_FE1 even
if the lwp doesn't currently own the FPU.  When returning, copy those bits
back to the PCB.  (In case the user decided to the FP exception mode in the
signal handler).
2004-04-04 17:10:32 +00:00
matt
4dc0aa3dee Don't add PSL_FE_FDLT to srr1, but put in pcb_flags. It will be added to
the SRR1 only when the lwp owns the FPU.
2004-04-04 17:05:31 +00:00
matt
44003b5fca The FP exception mode bits from the MSR will be stored in pcb_flags. From
there, they will copied to MSR as needed (when FP is enabled).  They will be
cleared from the MSR when the lwp loses the FPU.  Hence they need to be stored
someplace else.
2004-04-04 17:01:44 +00:00
matt
aed3d18029 On FPU'ed systems, initialize the default FP exception mode. 2004-04-04 16:57:00 +00:00
matt
c0dce2fdd9 Be a lot more explicit about the MSR bits a user process can change. 2004-04-04 16:49:12 +00:00
matt
0d6bda4d21 When returning back to user mode, if the lwp has lost the FPU, not only
clear PSL_FP bit (to force a FPU Unavailable exception) but clear
PSL_FE0 and PSL_FE1 so that the FP execption mode is changes to ignore.
This will prevent spurious FP exceptions being made when the running lwp
doesn't own the FPU.
2004-04-04 16:47:02 +00:00
kochi
ee2683e797 Support for PIRQ[E-H], found in recent intel south bridges
(ICH2 and later), which fixes PR/23700.
The changes are from Hiroyuki Bessho and Masanori Kanaoka in PR/23700
with a little modification of interrupt router lookup from mine.
2004-04-04 16:06:09 +00:00
kochi
41ea3c2a77 add one more PCI ID (ICH4-M). 2004-04-04 15:16:38 +00:00
nakayama
1de145799e Revert a part of rev. 1.44.
OF_getprop can get only the first "reg" property with a statically
allocated buffer, but prom_getprop cannot.
This should fix a "kernel trap 30: data access exception" when you
invoke a pcictl(8).
2004-04-04 11:53:40 +00:00
mrg
32a2d102bd redo previous slightly; move the "int unode;" decl inside the
if (CPU_ISSUN4D) code block, reducing #ifdef/#endif count by one.
2004-04-04 10:09:41 +00:00
gson
f92c1b091a Unused variable "unode" caused compiler warning when !defined(SUN4D). 2004-04-04 08:54:29 +00:00
simonb
374ed5ae2b Fix bogus gcc -Wuninitialised warning when SYSCALL_DEBUG is enabled. 2004-04-04 05:32:20 +00:00
tsutsui
0e9036c16a Add ALTENTRY(kernel_text) for pmap(1). 2004-04-04 02:09:34 +00:00
pk
af0db768b1 Maintain pmap resident count as pages are mapped and unmapped instead
of traversing the page tables each time it's needed.
2004-04-03 23:11:14 +00:00
groo
f2d334068a Let's try that again... one comes from .CURDIR, another set of files
comes from .OBJDIR.
2004-04-03 18:18:21 +00:00
groo
291203c667 Don't cd ${.CURDIR}, it's not where the uudecoded objects are. 2004-04-03 17:45:19 +00:00
chs
ec48121fb7 add some SUN4D stuff.
zs and zstty no longer need "needs-count" or "needs-flag",
so get rid of those and wild-card the extra zs devices on SUN4D.
2004-04-03 17:43:50 +00:00
chs
89e7b5360f don't complain about mid == 0 on SUN4D, it's normal there. 2004-04-03 17:42:27 +00:00
chs
8e5882e190 add a bootbus (SUN4D) attachment. from Stephen Sukovich in PR 24199. 2004-04-03 17:42:07 +00:00
chs
81f3e5aec7 fix find_cpus() for SUN4D. from Stephen Sukovich in PR 24198. 2004-04-03 17:41:54 +00:00
sato
bcd3f3fcab enable speaker port 12 for NEC MCCS series.
reported by http://www.jp.netbsd.org/ja/JP/ml/port-hpcmips-ja/200207/msg00078.html.
2004-04-03 16:29:06 +00:00
pk
70e1de69c4 Max data size -> 512MB; default stack size -> 8MB. 2004-04-03 12:39:51 +00:00
pk
5957cb9b16 On sun4c, clip max data & stack size to avoid the MMU hole. 2004-04-03 12:38:14 +00:00
sekiya
49ecfdf2e4 Hook the IMC bus error handler into the ISR, otherwise bus error conditions
won't be properly dealt with.
2004-04-03 11:33:29 +00:00
simonb
bf4a293760 Copy Izumi Tsutsui's total/avail memory message tidy up.
sgimips is a little different, that is left as is.
2004-04-03 06:43:59 +00:00
bsh
a031021b23 SMDK2800 gets kernel panic with write-back dcache. Use write-through
mode until we find a fix for this.
2004-04-03 04:38:48 +00:00
bsh
1a02d3b6e1 pmap_pte_init_arm9() is necessary only when defined(CPU_ARM9) and defined(ARM9_CACHE_WRITE_THROUGH) 2004-04-03 04:35:48 +00:00
bsh
16cf047697 add an option to force ARM9 dcache to write-through mode. 2004-04-03 04:34:40 +00:00
tsutsui
0a15e2ad03 Tidy up messages for total/avail memory.
before:
---
NetBSD 2.0B (COLT) #67: Sat Apr  3 06:29:50 JST 2004
        tsutsui@mirage:/usr/src/sys/arch/cobalt/compile/COLT
256 MB memory, 247 MB freemainbus0 (root)
com0 at mainbus0 addr 0x1c800000 level 3: st16650a, working fifo
com0: console
---
after:
---
NetBSD 2.0B (COLT) #68: Sat Apr  3 07:54:17 JST 2004
        tsutsui@mirage:/usr/src/sys/arch/cobalt/compile/COLT
total memory = 256 MB
avail memory = 247 MB
mainbus0 (root)
com0 at mainbus0 addr 0x1c800000 level 3: st16650a, working fifo
com0: console
---
2004-04-02 23:18:09 +00:00
mrg
f87752ad3b enable "INSECURE" kernel option so that GENERIC kernels are capable of
running XF4 servers.  while this isn't the best solution, it is the only
one we have for the forseeable future, and there is long-standing precedent
in the i386 port.
2004-04-02 14:06:23 +00:00
lukem
e7b4b99d58 Convert to using UUDECODE_FILES instead of using -kb in the repository. 2004-04-02 08:54:04 +00:00
matt
ef47d758dd Remove softintr__init call. 2004-04-01 16:58:06 +00:00
matt
7a72576c33 Move to softintr__init to cpu_startup. 2004-04-01 16:57:45 +00:00
petrov
50f9ddcdce Recognize tlp and ethernet as bootpath. 2004-03-30 21:26:40 +00:00
simonb
5e2a252f60 Remove some bogus config goop that should never have been here. 2004-03-30 00:54:34 +00:00
simonb
f05568af64 Make the "cond" variable an unsigned variable. Stops sign extension
problems when we shift it left and right while creating the new value
for the condition register.

Fixes problems reported by Juergen Hannken-Illjes in toolchain/24938.
2004-03-30 00:04:37 +00:00
jwise
bffc53d606 Fix grammar in error message. 2004-03-29 15:57:28 +00:00
aymeric
83d29714cc delay(): use =&r instead of =r for a temporary register as suggested in
PR #24830. The bad reuse of the register was actually triggered by using
no optimization at all.
pmap_subr.c is the only file that still requires at least -O to compile
into working code (the proper fix would be to write almost all of
pmap_zero_page() in assembly). The rest of a macppc kernel requires only
-finline now.
2004-03-29 08:06:12 +00:00
matt
a1d9764403 Add SMBFS/nsmb 2004-03-29 07:47:57 +00:00
kristerw
a53ff5c8f3 Add the wsmux pseudo-device. This will make the adb keyboard work
even if the heuristics in the console attachment code fail to
identify the keyboard type.

This should fix PR 22317 and part of PR 24778.
2004-03-29 01:46:03 +00:00
kristerw
a5892fecd3 Add "wdc* at pci? dev ? function ?". 2004-03-29 01:36:49 +00:00
simonb
06f98319d7 Fix the LINTSTUB entries- the second arg to these functions is a
bus_space_handle_t, not a bus_addr_t.
2004-03-29 01:15:14 +00:00
simonb
d4c87e3c2e Use "%#x" instead of "%x" so it's obvious the printed number is in hex. 2004-03-29 01:12:01 +00:00
ragge
8177977394 Add 11/730 to recognized cpu-types. 2004-03-28 19:52:01 +00:00
pk
7bbe926f59 iommu_dmamap_load: deal with pmap_extract() failing. 2004-03-28 19:35:13 +00:00
mhitch
21f2c02f74 Remove license clauses 3 and 4 in my licenses. 2004-03-28 18:59:39 +00:00
drochner
568386df44 We should ensure stack alignment _after_ subtracting sizeof(sigframe).
Should fix PR bin/24948 by Wolfgang S. Rupprecht.
(nuke getframe() completely because its interface doesn't support this,
and it it used at one place only anyway)
2004-03-28 15:46:14 +00:00
scw
aa2635cadb Assign my license to TNF. 2004-03-28 15:35:33 +00:00
uwe
d4129e7685 Sort the list of supported platforms that we show to the user. 2004-03-28 15:32:35 +00:00
he
f8fd8eb7f7 Adapt to the removal of __HAVE_SIGINFO, assume that we always have it now. 2004-03-28 10:07:24 +00:00
nakayama
dcfdceefdd Set prom_getprop args correctly. 2004-03-28 09:31:21 +00:00
eeh
5f1ffa71fc License cleanup. 2004-03-27 16:21:53 +00:00
dsl
5f345f8d68 Rework previous to avoid checking FS_FLAGS_UPDATED for ffsv2 2004-03-27 11:46:40 +00:00
uwe
fad92c3ca3 When we attach a channel, set a high level to DRV control pin of the
external buffer for the PC card connected to the channel.  This hack
makes pcmcia cards "being used" at the boot time (by WinCE or NetBSD)
correctly detected.  A machine running with root on NFS can now be
properly rebooted.
2004-03-27 02:53:12 +00:00
uwe
8dd212dad7 Add option HD64461PCMCIA_REORDER_ATTACH that attaches channels in
reversed order.

When you boot with two CF cards inserted, this options makes the one
in the "memory only" slot (channel 1), which is almost always the card
with the NetBSD install, attached as wd0.

Unlike using fixed unit numbers in the kernel config, if you boot with
only a single CF card, that single card will still be wd0 regardless
of which slot it is inserted in.

http://mail-index.netbsd.org/port-hpcsh/2003/10/23/0000.html provides
a more verbose description of why this option is convenient for most
usage patterns.
2004-03-27 02:24:01 +00:00
uwe
fb20d3f467 Print bootinfo timezone in decimal. -180 is more readable then 0xffffff4c
(though may be I'm just getting old :).
2004-03-27 02:01:07 +00:00
simonb
cd019fdfb8 Pass the OpenBIOS magic number to the awk script just like the other
numbers passed in instead of using a BEGIN construct.  nawk didn't like
the hex escapes used there.
Fixes a problem reported by Shin'ichiro TAYA on port-powerpc.

Use "int(NUMBER)%256" instead of just "NUMBER" in the printf "%c"
statements in the awk script.  nawk was appearing to refuse outputing
a 0 byte of the low eight bits of the number were 0 but any higher
bits were set.

walnut-mkimg.sh tested using gawk, nawk and mawk.
2004-03-27 01:47:46 +00:00
petrov
0514cbdca0 Use want_resched from cpu_info area. 2004-03-26 23:18:42 +00:00
drochner
c83eb997b8 nothing cares about __HAVE_SIGINFO anymore, so nuke it 2004-03-26 21:39:57 +00:00
drochner
ae94c80224 fix references to the syscall formerly known as SYS___sigreturn14 2004-03-26 19:05:33 +00:00
drochner
88a4abdbd2 the whole sigcode business is COMPAT_16 only 2004-03-26 18:44:36 +00:00
drochner
d19f706361 all ports define __HAVE_SIGINFO now, so remove the CPP conditionals 2004-03-26 17:34:18 +00:00
drochner
80bded6289 To the rest of the kernel, pretend that hppa supports SIGINFO.
There are still only "sigcontext" stackframes passed to the user,
but at least we can clean up the MI sources now.
2004-03-26 14:11:01 +00:00
minoura
a3a2a1ebcf Print better names for Pentium4-class processors (Xeon, Celeron, etc). 2004-03-26 13:57:44 +00:00
wiz
2837bf7e95 Update David Huang's email address in the license
per his request in PR 24907.
2004-03-26 12:15:46 +00:00
jmc
77e0ba6695 Convert athhal-elf.o to a .uue and add appropriate make hooks to use it 2004-03-25 23:32:10 +00:00
matt
27b002601f Enable generic software interrupts on macppc. 2004-03-25 18:52:25 +00:00
matt
06bf53b3d7 Add diagnostic to skip calling uvm_fault when the lwp's USERSR is unset. 2004-03-25 18:50:50 +00:00
matt
040b0bc071 Move data structures to softintr.c. Remove an unneeded if. Fix a typo. 2004-03-25 18:46:27 +00:00
matt
6fbc543513 Don't call hardclock until cpu_initclocks has been called. 2004-03-25 18:44:57 +00:00
drochner
cb0991ae18 Native code doesn't need sigcode. Never.
So replace it by a dummy setting sigcode=esigcode=0, just to get
COMPAT_16+COMPAT_NETBSD32 kernels linking.
2004-03-25 18:33:17 +00:00
drochner
967b985e5b clean up the .globl confusion 2004-03-25 15:47:12 +00:00
drochner
be80b39cd6 remove sigcontext-style signal delivery code 2004-03-25 15:32:27 +00:00
drochner
e2afc3a3d8 always use siginfo-style signal delivery for native programs 2004-03-25 15:29:26 +00:00
drochner
badd642235 only accept signal trampoline version 2, and remove "struct sigcontext" 2004-03-25 15:27:26 +00:00
wiz
f1b19ce1db Backout previous -- this is not enough, config needs to be taught
how to reach partitions above h. Noted by Simon Burge, related to
PR 24905.
2004-03-25 15:26:35 +00:00
pooka
3b19c32c1a KNF 2004-03-25 15:16:11 +00:00
pooka
75033bc71e replace terms ip1x and ip2x in comment 2004-03-25 15:08:57 +00:00
pooka
39a22bd417 Sprinkle some #ifdef MIPS3 to be able to compile the port without
including MIPS3 code.

for upcoming IP12
2004-03-25 15:06:37 +00:00
wiz
8e545c2180 Define maxpartitions to the same value as MAXPARTITIONS in disklabel.h.
Addresses PR 24905 by Simon Burge.
2004-03-25 12:41:54 +00:00
wiz
1e2bd86f4e Define maxpartitions to the same value as MAXPARTITIONS in disklabel.h.
[Down from 16 to 8, since disklabel.h still says 8.]
Addresses PR 24905 by Simon Burge.
2004-03-25 12:40:19 +00:00
wiz
3afe1a1d87 Define maxpartitions to the same value as MAXPARTITIONS in disklabel.h.
Addresses PR 24905 by Simon Burge.
2004-03-25 12:38:49 +00:00
is
313b807f3f Only change my own license conditions. 2004-03-25 11:12:08 +00:00
is
6de8cab7db UCB no longer requires the advertising clause. 2004-03-25 10:53:46 +00:00
leo
edd0d1c8e7 Licence cleanup (suggested by wiz). 2004-03-25 10:17:19 +00:00
uwe
9cde36aeb3 We may run one page too few during reboot for certain kernel sizes.
Allocate an extra page for the loadable segment to compensate for the
fact that the last tag may be only partially filled.
2004-03-25 04:04:28 +00:00
uwe
44498073bf intc_intr_priority: map DMAC and IRDA interrupts. 2004-03-25 01:25:08 +00:00
uwe
1cfab0e2a0 INTEVT2 values for DMAC interrupts. 2004-03-25 01:02:30 +00:00
sekiya
e594b2f3d9 The lpt driver doesn't play nicely with the serial ports -- they share the
same interrupt, and something isn't quite right with the mace interrupt
dispatcher.  Disable for now.

Pointed out by Tillman Hodgson and confirmed by ozone on port-sgimips.
2004-03-25 00:53:58 +00:00
matt
a266f24eb9 Add latent generic soft interrupt initialization. 2004-03-24 23:50:18 +00:00
matt
7f65c1cc37 Generic soft interrupt support for PowerPC ports. 2004-03-24 23:39:39 +00:00