Commit Graph

121408 Commits

Author SHA1 Message Date
christos
480316c216 Make sure this still compiles with gcc-2.95. Hello vaxen! 2003-12-03 18:41:35 +00:00
manu
7973f2217b Rework Mach exceptions and softignals
Exceptions coming from a trap are generated from darwin_trapsignal()
softsignals are from darwin_sigfilter(), a function that is called
from darwin_trapsignal() and from kpsignal2() [the latter from a
emulation specific hook which is not yet committed]

Make some sanity checks to avoid sending data to a port with no receiver.

See http://mail-index.netbsd.org/tech-kern/2003/12/01/0008.html and
follow-ups for details.
2003-12-03 18:40:07 +00:00
manu
057381d1b4 Move machine dependent definitions to machine dependent headers. 2003-12-03 18:25:44 +00:00
manu
20fbf8c756 Trace data movement with vm_read and vm_write 2003-12-03 18:19:12 +00:00
manu
eff089cdc0 More santity checks when sending data to a port: is there someone listening
on the receive end?
2003-12-03 18:18:43 +00:00
erh
9265d1ac0e Document the PKGMAKECONF variable. 2003-12-03 18:14:02 +00:00
petrov
7731fd90ac Use pmap_get_page return code instead, remove unused pmap_stats,
delete incorrect KASSERT in pmap_kenter_pa.
2003-12-03 17:58:47 +00:00
scw
99df1a0ae1 In the interrupt dispatch loop, make sure to handle any pending interrupts
which came in while we were dealing with the first interrupt(s), and which
are enabled at the current spl.

This fixes a problem where the intr_enabled/hw mask is not updated to
allow pending interrupts through until the next splx(). In some case,
interrupts could be delayed until the next clock tick.
2003-12-03 13:20:34 +00:00
is
2ee5b37e8f rewind() does an implicit clearerr(), as demanded by e.g. 1003.1. Thus,
we have to check for writing errors before rewind()ing.
2003-12-03 13:12:53 +00:00
bouyer
6db04f6724 Adapt for new wdc regiosters array. Should fix port-macppc/23604. 2003-12-03 12:09:32 +00:00
bouyer
67e9511d69 Move WDC_NREG from wdcreg.h to wdcvar.h. First part of fix for
port-macppc/23604.
2003-12-03 12:01:18 +00:00
mrg
38c1966986 note binutils 2.14 is used now. 2003-12-03 10:36:56 +00:00
mrg
18f0c92069 delete these long long obsolete versions 2003-12-03 10:29:32 +00:00
mrg
2aa1a44c7a switch everyone to binutils 2.14. it's confirmed to work on all the
platforms that actually build at the moment...
2003-12-03 10:26:45 +00:00
mrg
099de62e9e new configurations for all supported platforms tested and known working
on these platforms so far:
	- alpha, arm, i386, mipseb, mipsel, sparc64
built but not yet tested on:
	- armeb, sparc, amd64
build errors (mostly not related) on:
	- hppa, m68000, m68k, macppc, sh3el, sh3eb, vax

XXX again this is not everything required; many other changes in
XXX already used files are left out.
2003-12-03 06:53:48 +00:00
bjh21
870dad0f43 Update for new world of indirect wdc registers. 2003-12-02 23:47:20 +00:00
martin
9bbe2098c6 Minor cleanup: remove unused code, sync a comment with current reality. 2003-12-02 22:44:17 +00:00
tron
9a4655b78c Add missing blackslash to "xterm-color" entry. Fix provided by
Thomas E. Dickey in private e-mail.
2003-12-02 20:40:00 +00:00
christos
7bcd27fa9a Add another regression test that does not work right now. 2003-12-02 18:30:35 +00:00
sketch
350b9b6178 Spell "and" correctly. 2003-12-02 18:14:17 +00:00
wiz
137b5d2ce4 gettext-0.13 and zlib-1.2.1 are out. 2003-12-02 17:13:21 +00:00
briggs
a4f6bad750 Configure PCI-Cardbus bridges, too.
Patch from KIYOHARA Takashi on current-users.
2003-12-02 16:31:06 +00:00
tsutsui
ab60f77a08 Declare sc_regbase as volatile, so that if_sn.c works with gcc3.
XXX We should switch to MI SONIC driver.
2003-12-02 13:19:06 +00:00
wiz
b2bf8b0f04 Fix typo. Closes PR 23622 by James Whitwell. 2003-12-02 13:14:28 +00:00
bouyer
0041177a45 Use a different interrupt routine for the CSB6. The CSB6 doens't
assert IDEDMA_CTL_INTR for non-DMA commands.
It would be nice to have a way to know if the interrupt was for us or not at
this point, but for now let wdcintr() deal with it.
Problem reported and patch tested by Martti Kuparinen.
2003-12-02 12:20:06 +00:00
lukem
08680ea4eb yy_flex_realloc(): apply __attribute__((__unused__)) instead of
wrapping with  #ifndef YY_USES_REJECT  .  Fixes [toolchain/11845].

Use __attribute__((__unused__)) instead of __attribute__((unused)).
2003-12-02 06:22:14 +00:00
lukem
c09971991d Be consistent in error messages, and don't use the <err.h> functions. 2003-12-02 05:11:42 +00:00
christos
f85ce17392 add stub function, so that kernel links 2003-12-02 04:53:11 +00:00
dbj
d8b416001c clarify comments, especially since ffs_isfreeblock is non-intuitive:
ffs_isblock:
    check if a block is available
      returns true if all the correponding bits in the free map are 1
     returns false if any corresponding bit in the free map is 0
  ffs_isfreeblock:
    check if a block is completely allocated
      returns true if all the corresponding bits in the free map are 0
      returns false if any corresponding bit in the free map is 1
2003-12-02 04:40:43 +00:00
dbj
076b9a1a1e when ifdef DEBUG and debug_verify_freelist != 0
then perform an expensive search of the buffer freelists
in brelse and bremfree to verify consistency
2003-12-02 04:18:19 +00:00
dbj
2162bce654 add explanatory comment in bremfree:
We break the TAILQ abstraction in order to efficiently remove a
 buffer from its freelist without having to know exactly which
 freelist it is on.
2003-12-02 03:36:33 +00:00
lukem
3921361c6a Use __attribute__((__used__,__noinline__)) (instead of __unused__)
for __do_global_ctors_aux() and __do_global_dtors_aux(),
to fix building with gcc3 -O3.
Discussed with Matt Thomas & Christos Zoulas, and tested on alpha & i386.
2003-12-02 03:01:19 +00:00
christos
d16297df4c PR/23613: Christian Biere: Bogus bounds check in nanosleep. 2003-12-02 01:34:30 +00:00
dbj
f31a623a56 in ffs_unmount, ignore error returned by VOP_CLOSE(devvp)
this fixes a problem where device close error would cause
unmount to fail but structures to be left partially deallocated
2003-12-01 18:57:07 +00:00
dbj
37a927564e In vclean(DOCLOSE), if vinvalbuf fails because of a write error,
then redo the vinvalbuf without the V_SAVE which will force
unflushed buffers to be discarded.
2003-12-01 18:53:10 +00:00
dbj
fed63d5ffe symbolically expand MNT_VISFLAGMASK 2003-12-01 18:42:12 +00:00
nathanw
1a4f33e2db Move _initialize_corelow() back to before _initialize_nbsd_thread() so that
threaded core debugging is enabled.
2003-12-01 17:54:41 +00:00
rearnsha
e3cb92a81b Avoid alignment faults in fusword and fuswintr. Also handle big-endian
systems in susword and suswintr.
2003-12-01 13:34:44 +00:00
mrg
b538519c6c fix a bug in previous:
don't pass -L${DESTDIR}/usr/lib twice, pass it once with -L${DESTDIR}/lib.
2003-12-01 09:37:09 +00:00
scw
7cf5104b5a - For consistency, use cpsr_all instead of cpsr.
- Make sure IRQs are enabled before handling ASTs.
2003-12-01 08:48:33 +00:00
mrg
4dc65168d6 note GDB has been updated to 5.3 2003-12-01 08:41:46 +00:00
lukem
4ca8399eb2 prefix ${.TARGET} with "${.CURDIR:T}/" in various _MKSHMSG macros;
per similar change to <bsd.own.mk>
2003-12-01 01:12:58 +00:00
lukem
388cd3a59c use ${.CURDIR:T} instead of ${.OBJDIR:T}, per similar change in bsd.own.mk 2003-12-01 01:11:57 +00:00
atatat
5f01dc8ab2 Revert revision 1.3 "add sysctl support to firmware loader" by
"removing sysctl support from firmware loader".  It was never
referenced or called from anywhere...

Suggested by augustss@netbsd.org in private email.
2003-12-01 01:09:24 +00:00
fvdl
c7242676d3 Don't use an alternate stack for the trace/breakpoint trap. It can be
called from userspace, and that messes things up.

Thanks to Mark Kettenis to pointing out that not using an alt stack
solved the "loop on gdb sig continuation" issue.
2003-12-01 00:00:07 +00:00
fvdl
22bb1f01c7 Reenable interrupts sooner in the idle_exit case. 2003-11-30 23:58:51 +00:00
wiz
03e41d98b7 Typo fixes in comments from jmc@openbsd. 2003-11-30 20:53:48 +00:00
manu
437424d5f6 I forgot to commit this file for vm_machine_attribute to build correctly 2003-11-30 20:42:55 +00:00
manu
ab8a1b7902 Add task_terminate 2003-11-30 20:42:03 +00:00
provos
a0ce863234 fix off by one in find_last_set(); triggered for processes that have no
open file descriptors; found by tim robbins from freebsd
2003-11-30 18:16:45 +00:00