Commit Graph

37230 Commits

Author SHA1 Message Date
jdolecek
aae2faadc5 the storagesize parameter of extent_create() is a size_t, not a pointer 2003-11-01 12:21:14 +00:00
jdolecek
5a088df3e8 mem_exists(): pacify one apparently bogus -Wuninitialized warning
setmemrange(): add default case for cputype (same as CPU_68030), to fix
a potential uninitialized use
2003-11-01 12:18:55 +00:00
jdolecek
b1686553ae drop register qualifiers 2003-11-01 11:50:53 +00:00
jdolecek
a51175c327 fix potential use of uninitialized local variable 'error' 2003-11-01 11:44:46 +00:00
tsutsui
ac30bfe8d4 Remove nonexistent arch/pmax/pmax/mcclock.c. (pmax uses dev/dec/mcclock.c) 2003-11-01 09:52:19 +00:00
yamt
f41e60e6a0 as there shouldn't be any mappings when pmap_destroy() is called,
assert there is no remaining PTPs at that point.
2003-11-01 09:07:11 +00:00
sekiya
4f800421dd Use be*toh() and htobe*() to permit use in cross-build environments. Add -h flag to override default volume header size. 2003-11-01 06:30:44 +00:00
shin
70f5a0a5b2 cache_r10k.c rev. 1.1 is broken. Because,
1) R10k uses VA0 to select cache ways, but in rev. 1.1, VA14
	   is used instead.
	2) R10k does not support HitWriteBack and should map HitWriteBack
	   to HitWriteBackInvalidate, but in rev. 1.1, HitWriteBack is not
	   handled properly.

So, cache_r10k.c rev. 1.1 was replaced by new implementation.
2003-11-01 04:42:56 +00:00
uwe
72b8dfe22a In hd64461video_update_videochip_status init depth to supress bogus
-Wuninitialized.
2003-11-01 03:45:52 +00:00
uwe
e9dc4000d1 XXX: Init dummy variable that we only use in asm() to pacify
XXX: -Wuninitialized.  There must be a better way.
2003-11-01 03:24:12 +00:00
uwe
289bc4802a #include "debug_kloader.h" 2003-11-01 02:29:08 +00:00
uwe
818209017c In intc_intr_priority init iprreg to pacify gcc. 2003-11-01 02:24:49 +00:00
cl
b936d40f39 Avoid sneaking past signal delivery in sa_upcall_userret():
generate unblocked upcalls in sa_unblock_userret(), before signal
delivery/p_userret handling in userret().

Also defer getting state for preempted upcalls because on some ports
preemption can happen between sa_unblock_userret() and sa_upcall_userret().
2003-11-01 01:38:46 +00:00
mycroft
a4061d6dec Update for structure changes. 2003-10-31 21:49:39 +00:00
fvdl
ab3d5bdcea Catch up with the new acpica code. 2003-10-31 20:56:55 +00:00
petrov
9cc6a54d18 Don't attach zs at mainbus. 2003-10-31 20:10:06 +00:00
petrov
5a0a3beffd Attach zs to sbus only, current driver cannot attach to mainbus. 2003-10-31 20:06:54 +00:00
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
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
drochner
0622a85590 don't need ELF_INTER_NON_RELOCATABLE anymore if no COMPAT_16, from simonb 2003-10-31 14:06:29 +00:00
hannken
ef301d7a07 Remove memset prototype. Already present in sys/lib/libsa/stand.h. 2003-10-31 10:49:25 +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
thorpej
920b229e72 "bogus pin" -> "bogus device" in last change. 2003-10-31 01:12:06 +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
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
cf19625775 Make this compile with 32bit kernels. 2003-10-30 21:02:55 +00:00
he
5a5cdb5717 Add -ffreestanding to CFLAGS, to avoid type conflicts with built-in
functions in gcc.
2003-10-30 20:19:25 +00:00
kleink
6d25a1e180 Don't define __HAVE_LONG_DOUBLE for __mc68010__. 2003-10-30 13:18:24 +00:00
skrll
d1ef336230 Fix a typo so that hack actually takes effect. 2003-10-30 12:30:39 +00:00
kleink
fed901e1cd s/sgn/sign/, for consistency with IEEE headers. 2003-10-30 12:05:41 +00:00
itohy
f66caac2c0 Change __const to __pure for function return type. 2003-10-30 09:25:00 +00:00
scw
7a55b436b2 Move the alignment fault enable/disable code into macroes to avoid
needless duplication.

Additionally, merge AST handling into the same code.

exception.S and the generic irq_dispatch.S routines have been updated
to use the macroes.

XXX: I have patches for the non-generic IRQ dispatch routines, but they
need testing by someone with hardware.
2003-10-30 08:57:24 +00:00
scw
97e37b6030 In bus_dmamap_sync(), we can no longer rely on the data cache being
flushed on every context switch as an indicator that a mapping is
not resident in the cache.

Instead, used the per-pmap flag maintained by the cpu_switch/pmap code.
2003-10-30 08:44:13 +00:00
mycroft
6431c35748 This driver was broken by bouyer on 2003/01/20.
I've made it at least config up/down again -- haven't tried actually passing
traffic.
2003-10-30 07:47:57 +00:00
mycroft
654720aaa9 Set MAXPHYS to 0xe000.
XXX This really is the wrong way to do this.
2003-10-30 06:22:53 +00:00
mycroft
c948a7f77b Allow a port to override MAXPHYS. 2003-10-30 06:13:19 +00:00
mycroft
1687658251 Add COMPAT_16. 2003-10-30 05:31:17 +00:00
mycroft
1a2ab14519 In the 68010 code, we were reading sched_whichqs wrong... 2003-10-30 05:12:28 +00:00
simonb
b6abb6ab1d Remove some assigned-to but otherwise unused variables. 2003-10-30 01:58:17 +00:00
christos
2c8096f763 set the onstack flag if requested. 2003-10-30 00:26:54 +00:00
simonb
0c6a00f6c6 KNF. 2003-10-30 00:01:47 +00:00
simonb
31d051445b Make this 64-bit paddr_t friendly. 2003-10-29 23:52:22 +00:00
christos
dc307db22e add compat_16_machdep.c 2003-10-29 23:41:49 +00:00
simonb
0bf7a721e9 Add some more MTI CPU ids. 2003-10-29 23:41:10 +00:00
christos
61e4914300 first pass siginfo for mips 2003-10-29 23:40:42 +00:00
christos
8ca558e8ed first pass siginfo glue for mips 2003-10-29 23:39:45 +00:00
simonb
a5ace5a563 Add some more MIPS vendor IDs. 2003-10-29 23:39:16 +00:00
tsutsui
18b32ac5ba Switch arc to use MI mc146818 tod driver. 2003-10-29 18:17:49 +00:00
mycroft
1588a62950 Whitespace. 2003-10-29 05:48:19 +00:00
mycroft
2f3400cec7 The previous patch was wrong -- mcr does not output anything. Instead give a
junk input (it's not used when the last argument is 0).
2003-10-29 05:47:04 +00:00
mycroft
ebc4881c70 Simplify a little. 2003-10-29 05:32:18 +00:00
mycroft
c99cc1e89a If we get an unknown fault code, either panic (if DIAGNOSTIC), or fault it with
a 0 access_type (if not).  Remove bogus initializer.
2003-10-29 05:16:26 +00:00
mycroft
7a85552554 If something goes wrong, we want to return ENOMEM, not 0! 2003-10-29 05:03:41 +00:00
mycroft
01ffeba8a0 Make sure "args" is pointing somewhere sane before calling trace_exit(). 2003-10-29 04:58:26 +00:00
mycroft
bb5625edb8 Remove bogus initializers. 2003-10-29 04:48:40 +00:00
mycroft
a1178ff097 The uninitialized variable in this case was a bug, which could probably be
used to crash the system.
2003-10-29 04:38:50 +00:00
mycroft
e24c0c7dfc Move a panic() to a different location, and eliminate a bogus initializer. 2003-10-29 03:40:56 +00:00
mycroft
a246f3b7a5 Reorder slightly to eliminate bogus initializers. 2003-10-29 02:02:05 +00:00
mycroft
659649b149 The previous change was wrong. The variables were legitimately uninitialized.
This code was broken on 2002/10/22 by christos.
2003-10-28 23:10:02 +00:00
mycroft
6ad04f2a27 XXX: gcc 2003-10-28 23:04:26 +00:00
mycroft
3aae7144ea Eliminate bogus initializer. 2003-10-28 22:52:53 +00:00
mycroft
f6f24ead9c In _bus_dma_uiomove():
* Don't punt after the first iov in the UIO_SYSSPACE case.  Not that this ever
  happens in practice right now.
* If we get through the loop, error==0 by definition, so just return 0.
* Eliminate bogus initializer.
2003-10-28 22:49:51 +00:00
kleink
7b674621bf Retire FPA support from this file at last; suggested by Richard Earnshaw
and not objected to by port-arm.
2003-10-28 21:27:08 +00:00
kleink
dbecd8cc2e Similar to sparc, make available the extended-precision definitions for
_KERNEL; the FPE package will require it once it's used on sun2.
2003-10-28 21:23:47 +00:00
mycroft
dd65577904 Remove bogus initializer. 2003-10-28 20:39:54 +00:00
skrll
c5a4c60e2e Compile sys/kern/uipc_socket.c -fno-strict-aliasing for now. PR 23044. 2003-10-28 20:12:00 +00:00
tsutsui
2f551b5f25 NULL -> '\0' 2003-10-28 17:54:35 +00:00
hannken
f3ce5e583f Get rid of uninitialized variable. 2003-10-28 17:37:25 +00:00
kleink
bff4c04c64 Make the extended-precision definitions available for _KERNEL (i.e. the
FPU support package), too; reported by Chuck Silvers.
2003-10-28 15:55:09 +00:00
chs
b42acb8d26 uninitialized variable. 2003-10-28 15:31:33 +00:00
chs
6ef2bc9b82 make this compile again. 2003-10-28 15:28:24 +00:00
chs
cd23cf5c7c uninitialized variables. 2003-10-28 15:25:27 +00:00
yamt
a059d6caf4 appease gcc "uninitialized" warning. 2003-10-28 14:49:53 +00:00
he
b563d90538 Include <stdlib.h> to pick up exit() prototype. 2003-10-28 11:46:39 +00:00
he
d820cc0029 Add -ffreestanding to CFLAGS, so that libsa prototypes do not conflict
with otherwise built-in functions and prototypes in the new gcc.
2003-10-28 11:41:46 +00:00
he
219781d5ed Add include of <string.h> to pick up strlen() prototype. 2003-10-28 11:38:04 +00:00
he
81c0d141d8 Rename those assembly files which should be passed through the C
preprocessor from .s to .S to pick up CPPFLAGS.
2003-10-28 11:34:59 +00:00
drochner
46e330c669 quell a gcc3 "uninitialized" warning by putting some more dead code
inside "#ifdef PNPBIOSEVENTS"
2003-10-28 11:17:14 +00:00
scw
39fe0cf03e Delete the symbolsize variable. It's not useful here.
Reported by Shoichi Miyake in port-arm/23293.
2003-10-28 08:26:33 +00:00
scw
fe5371e8a9 Fix an uninitialised variable warning, reported by Shoichi Miyake
in port-arm/23293.
2003-10-28 08:22:55 +00:00
mrg
f06db78213 NULL -> 0 bogon. 2003-10-28 08:00:36 +00:00
mrg
93b8296886 m68k_make_fpu_idle_frame() is not needed/wanted if defined(M68010) 2003-10-28 06:55:45 +00:00