Commit Graph

120245 Commits

Author SHA1 Message Date
tsutsui
d135aa4588 In swap_endian_disklabel(), don't forget copy members which are not
needed to byteswap.
2003-10-31 17:04:12 +00:00
scw
b4c2d3dbb0 Insert some nops around the load instructions in badaddr_read_N().
That way, we can be sure any imprecise data abort actually happens
before clearing pcb_onfault.
2003-10-31 16:54:05 +00:00
cl
ef56cc40ab Reduce code duplication by adding mi_userret() in sys/userret.h
containing signal posting, kernel-exit handling and sa_upcall processing.

XXX the pc532, sparc, sparc64 and vax ports should have their
XXX userret() code rearranged to use this.
2003-10-31 16:44:34 +00:00
drochner
929e614ed3 fix/complete some framebuffer descriptions, fixes PR port-pmax/23224
by Jean-Pierre HOFER
2003-10-31 16:32:36 +00:00
scw
336806eb55 Overhaul arm32's abort handlers:
- Assume a permission fault is always the result of an attempted
   write, so no need to disassemble the opcode.
   (as discussed with Richard Earnshaw/Jason Thorpe a week or two ago)

 - Split out non-MMU data aborts into separate functions, and deal
   correctly with XScale imprecise aborts. Specifically, the old code
   made no attempt to handle the double abort faults which can occur
   as a result of two consecutive external (imprecise) aborts. This
   was easy to provoke by read(2)ing from a /dev/mem offset which caused
   an external abort. With the old code, this would bring the system
   down instantly, with little clue as to why. (hint: tf_spsr held
   PSR_ABT32_MODE...)

 - Re-write badaddr_read() to use pcb_onfault instead of adding extra
   overhead to data_abort_handler(). A side effect of this is that it
   now benefits from the XScale double abort recovery.

 - Invoke the cpu-specific prefetch/data abort fixup routines only if
   the host cpu actually needs it. On other cpus, the code is optimised
   away.

 - Sprinkle __predict_{false,true} in all the right places.

 - G/C some excess debugging baggage.
2003-10-31 16:30:15 +00:00
bouyer
2564505612 In sci_scsipi_request, add a splbio() which was erroneously missed when
thorpej_scsipi was integrated. Pointed out by Havard Eidnes.
2003-10-31 14:38:44 +00:00
reinoud
22f94d4a8e Rollback 2003-10-31 14:22:48 +00:00
drochner
0622a85590 don't need ELF_INTER_NON_RELOCATABLE anymore if no COMPAT_16, from simonb 2003-10-31 14:06:29 +00:00
drochner
714de0452f adapt for changes to kern/exec_elf32.c 2003-10-31 14:04:35 +00:00
drochner
24082a2293 -ELF_LINK_ADDR does now what irix_load_addr() did, so the latter can
be nuked
-adapt for changes to kern/exec_elf32.c
2003-10-31 14:04:04 +00:00
drochner
f1aa108dd8 -fix ELF_INTERP_NON_RELOCATABLE:
-obey ELF_LINK_ADDR in ELF_load_file()
 -set ELF_LINK_ADDR in the probe() function if needed
-make ELF_NULL_ADDR the default, so that probe() functions dont need
 to set it explicitely
-allocate buffer for interpreter name only if needed
2003-10-31 14:00:52 +00:00
drochner
c3b75d203e introduce another "magic" ELF address to tell that the file has to be
mapped at the address it was linked for
2003-10-31 13:54:39 +00:00
reinoud
a0f1b459d6 Make it compile under gcc 2.95 again. Without the patch it gives an `might
be used uninitialised' warning.
2003-10-31 13:47:00 +00:00
reinoud
382038b55b Make it compile under gcc 2.95 again. I guess the initialisers were
stripped in the NULL = 0 -> NULL = (void *) 0 conversion.
2003-10-31 13:43:15 +00:00
chris
2eab0ed5a5 Remove cirrus.0, as cats X server doesn't build that driver, so there's no
man page for it.
2003-10-31 10:55:48 +00:00
hannken
ef301d7a07 Remove memset prototype. Already present in sys/lib/libsa/stand.h. 2003-10-31 10:49:25 +00:00
hannken
101f03a0d5 Let it compile again on sparc/sparc64. 2003-10-31 10:09:55 +00:00
nisimura
88d2cbf4b5 One more fix; copyright notice bozo. Pointed by Thomas Klausner. 2003-10-31 09:35:25 +00:00
wiz
8878f0f338 Fix a typo. 2003-10-31 08:53:50 +00:00
kent
26aa3703e4 auich_calibrate():
- make the buffer longer to improve the precision of measurement
 - round off the result to the nearest multiple of 1000.
2003-10-31 08:15:53 +00:00
nisimura
48e1319ab9 Note stpcide(4) for STMiroelectronics STPC IDE controller. 2003-10-31 06:53:59 +00:00
nisimura
51cdfee682 Added stpcide(4) driver for STMicroelectronics STPC IDE controllers. 2003-10-31 06:49:58 +00:00
simonb
183066a619 Remove some assigned-to but otherwise unused variables. 2003-10-31 03:32:19 +00:00
simonb
b6da47eedd Retore the spl level on exit of genDeconfigMouse(). 2003-10-31 03:29:59 +00:00
simonb
6d85c5e0d5 Don't pass the (unused) return value args to the
trace_enter()/systrace_enter() functions.
2003-10-31 03:28:12 +00:00
uwe
c8e97f8a45 When signaling SIGTRAP for debugger break adjust pc to point back to
the TRAPA instruction.  This makes gdb much happier.
2003-10-31 02:59:29 +00:00
uwe
811af2c58f tlb_exception: pacify -Wuninitialized by adding default case. 2003-10-31 02:46:58 +00:00
lukem
f87ba55ff9 Always use /bin/pwd -P to get the "TOP" of the source tree, so that
MAKEOBJDIR (and other parameters) work correctly with symlinks, amd(8), etc.
Should fix PR [bin/23313], and possibly others.
2003-10-31 01:46:39 +00:00
ross
405db788de Defensively rewrite a string moving loop.
Constify.
Check for an allocation error.
2003-10-31 01:25:54 +00:00
thorpej
920b229e72 "bogus pin" -> "bogus device" in last change. 2003-10-31 01:12:06 +00:00
itojun
91ba57dca7 need_trigger/idx should be u_int. millert@openbsd 2003-10-31 00:31:53 +00:00
uwe
1d729d7bc4 First cut at implementing software single stepping for sh3. We need
it because sh3 ports don't provide PT_STEP.  It is finally possible to
run programs under gdb now, though there are still issues to be
resolved.  It was deemed useful enough to commit early, while the work
is still in progress.  Tested on hpcsh.

Blessed by christos@.
2003-10-31 00:11:27 +00:00
kleink
9356ead951 Pasto. 2003-10-30 23:34:16 +00:00
cl
68a0d153d2 Don't grab the sched lock in lwp_continue() because lwp_continue() is
called from kpsignal2() with the sched lock held.  Get the lock in
sys__lwp_continue() instead.
2003-10-30 23:31:21 +00:00
matt
22b4a90181 Fix another lasttx uninitialized variable 2003-10-30 23:05:56 +00:00
matt
88810a30df Fix uninitialized variable warning. 2003-10-30 23:05:07 +00:00
kleink
617742615c It turns out the hppa ABI we're using does not support an extended-
precision type, so drop the library support for now but leave in place
(#ifdef _LP64) the header definitions.
2003-10-30 22:46:17 +00:00
matt
fbcc3c4d38 Fix real uninitialized variable bug. 2003-10-30 22:35:38 +00:00
he
a52e0441cf Add include of <lib/libsa/stand.h> for memcpy() and memset() prototypes. 2003-10-30 22:27:05 +00:00
matt
b569a45229 Fix indentation/whitespace. 2003-10-30 22:25:42 +00:00
he
4f5db11dc0 Add -I${S} for <lib/libsa/stand.h> inclusion, and add
include of ../Makefile.booters for -ffreestanding.
2003-10-30 22:23:51 +00:00
he
da61544d69 Add .rodata.str1.1 to the text segment, and discard the .comment section. 2003-10-30 22:21:56 +00:00
he
a2498bfff8 Add -ffreestanding to CFLAGS to avoid type conflicts with built-in
functions in gcc.
2003-10-30 22:20:43 +00:00
he
202ba2bdcf Add a prototype for memset(). 2003-10-30 22:15:28 +00:00
mycroft
68a1d153b6 Use ratecheck() to prevent envstat(1) doing many ACPI calls at once. Now my
MP3 player doesn't skip...
2003-10-30 22:12:02 +00:00
matt
b9e31106e8 Stop some (bogus) gcc unitialized variable warning. 2003-10-30 22:04:39 +00:00
matt
a72426fa60 Fix (real) uninitialized error. (Someone familiar with this should see
if is really an error).
2003-10-30 22:03:46 +00:00
fvdl
7d342b5852 * keep track of PCI buses that aren't known by firmware, but are found
by NetBSD
* use this info in in intr_find_mpmapping
* get rid of the last argument to intr_find_mpmapping, it was redundant
2003-10-30 21:19:54 +00:00
matt
ab3d7937b5 Fix uninitialized warning. 2003-10-30 21:19:02 +00:00
matt
cf19625775 Make this compile with 32bit kernels. 2003-10-30 21:02:55 +00:00