Commit Graph

36646 Commits

Author SHA1 Message Date
simonb
8ca32cb009 Use -ffreestanding. 2003-10-08 01:36:19 +00:00
simonb
27fbee2ad2 Don't use multi-line strings (keeps gcc331 happy). 2003-10-08 01:35:49 +00:00
simonb
07704f0a5a Use consistent type qualifiers for CPU1_alive (keeps gcc331 happy). 2003-10-08 01:33:54 +00:00
simonb
605b20c064 Use <lib/libkern/libkern.h> for str*() prototypes instead of the userland
header <string.h>.
2003-10-08 01:30:40 +00:00
simonb
b00f4b8b66 Remove tokens at the end of #undef. 2003-10-08 01:27:22 +00:00
thorpej
9ed3b44b84 Use ksi_signo and ksi_code accessor macros. 2003-10-08 00:40:54 +00:00
thorpej
68723a995b * Shuffle some data structures so, and add a flags word to ksiginfo_t.
Right now the only flag is used to indicate if a ksiginfo_t is a
  result of a trap.  Add a predicate macro to test for this flag.
* Add initialization macros for ksiginfo_t's.
* Add accssor macro for ksi_trap.  Expands to 0 if the ksiginfo_t was
  not the result of a trap.  This matches the sigcontext trapcode semantics.
* In kpsendsig(), use KSI_TRAP_P() to select the lwp that gets the signal.
  Inspired by Matthias Drochner's fix to kpsendsig(), but correctly handles
  the case of non-trap-generated signals that have a > 0 si_code.

This patch fixes a signal delivery problem with threaded programs noted by
Matthias Drochner on tech-kern.

As discussed on tech-kern.  Reviewed and OK's by Christos.
2003-10-08 00:28:40 +00:00
fvdl
a7a118bf66 Backout previous for now, it breaks second CPU spinup. It'll be back later. 2003-10-07 21:47:57 +00:00
fvdl
9771ccbb32 Changes from Christos to fall back to MPBIOS for interrupt probing
if MPACPI fails, so that MPACPI can be used to only probe CPUs
if needed.
2003-10-07 18:10:36 +00:00
skd
8d474d5a86 Siginfo changes for alpha kernel. Approved by thorpej@netbsd.org. 2003-10-07 17:04:18 +00:00
tsutsui
608b19ae28 Use proper mips_dcache_{wb,inv,wbinv}_range() ops in dmamap sync function
if possible. Tested on my O2 (with r5ksc patch).

XXX should we apply similar changes to mips/bus_dma.c and use it?
2003-10-07 16:03:09 +00:00
tsutsui
fd316d7ac1 Use proper macros. 2003-10-07 14:37:06 +00:00
skd
6347eb786e Support for proper siginfo FP codes. Also, set si_trap to fp status word.
Approved by fvdl.
2003-10-07 14:35:37 +00:00
ragge
4728b0483f The last commit broke the boot code (memset may be larger than 64k).
Johnny Billquist fixed it and bugfixed some routines.
2003-10-07 12:01:27 +00:00
tron
ebbe253d6d Add COMPAT_16. 2003-10-07 09:43:58 +00:00
uwe
576576bafb Add definitions for IRR0 bits. 2003-10-07 01:24:32 +00:00
fvdl
b894e42a80 SIGINFO support.
Todo: 32bit compat support (COMPAT_NETBSD32 will not compile right now,
as it won't on other platforms).
2003-10-06 22:53:47 +00:00
shige
244b994892 Use xrtc driver on generic I2C framework instead of original xrtc
driver at src/sys/arch/evbppc/obs405/dev/x1226.c.
Remove todclock service.
2003-10-06 18:20:54 +00:00
scw
4eea84b735 Gah. Pick up the MI i2c headers from the right place.
Pointed out by Shigeyuki Fukushima on port-powerpc@.
2003-10-06 18:19:24 +00:00
shige
0af4acb526 Add Real time clock support code. 2003-10-06 18:15:08 +00:00
scw
2ba7642346 MD i2c glue for the 405GP's onboard IIC controller.
Bit-bang only for now.
2003-10-06 16:15:46 +00:00
thorpej
2c0d381bd7 New generic I2C framework. Supports bit-bang and "intelligent" I2C
interface controllers (of varying intelligence levels).

Contributed by Wasabi Systems, Inc.  Primarily written by Steve Woodford,
with some modification by me.

(NOTE: "cvs ci" was missed on this directory during the initial checkin
of the new I2C code.)
2003-10-06 16:11:19 +00:00
thorpej
2af80d899e New generic I2C framework. Supports bit-bang and "intelligent" I2C
interface controllers (of varying intelligence levels).

Contributed by Wasabi Systems, Inc.  Primarily written by Steve Woodford,
with some modification by me.

(NOTE: "cvs add" was missed on this file during the initial checkin
of the new I2C code.)
2003-10-06 16:08:42 +00:00
thorpej
d322684f55 Add support for the i80312 and i80321 I2C controllers. 2003-10-06 16:06:05 +00:00
scw
bd61b1e9b3 Rename dsrtc to avoid clashing with the MI i2c ds1307 driver. 2003-10-06 16:04:15 +00:00
thorpej
df011fda1d Make sure to pass mod/ref seeds with PMAP_WIRED. 2003-10-06 15:43:35 +00:00
he
c50a79523e Include <string.h> for memset and memcmp prototypes. 2003-10-06 08:44:39 +00:00
pk
3de506eaf1 No need for SVR4/SunOS5 FPE_* codes as these are compatible with ours. 2003-10-06 07:10:41 +00:00
he
557593445b Include libkern.h to get definitions for strcpy, strlen, and memset. 2003-10-06 06:41:45 +00:00
matt
0c7bac0672 Change headers to comply with the new toolchain changes. 2003-10-06 05:27:19 +00:00
lukem
420f3b76ba Replace BP_* with I386_BP_FLAGS_*, for consistency with other stuff in
<sys/bootblock.h>
(CONSDEV_ should be converted as well, but that's more intrusive...)
2003-10-06 05:24:54 +00:00
simonb
ba957518fe Whitespace nits. 2003-10-06 02:53:33 +00:00
thorpej
388386eef7 Make sure to pass mod/ref seeds with PMAP_WIRED. 2003-10-06 00:40:36 +00:00
he
a665876c87 Remove argument list from #undef of divrnd macro; fall-out from gcc3? 2003-10-06 00:04:55 +00:00
mycroft
a0ca611f94 Minor tweaks to the color framebuffer code -- still don't know what the deal
with the interrupt is.
2003-10-05 22:00:25 +00:00
pk
a9b14e04b8 sparc kernel support for SA_SIGINFO. 2003-10-05 21:13:23 +00:00
matt
73ca535921 Add SA_SIGINFO support for ARM (from Chris Gilbert). 2003-10-05 19:44:58 +00:00
tsutsui
61b40c3946 Update comment to follow the previous R4000 ID addtion. 2003-10-05 17:31:09 +00:00
tsutsui
779268c4cf Define ELF2ECOFF here for native build.
(BTW, objcopy with OMAGIC kernel won't work on old pmax and sgimips machines?)
2003-10-05 16:53:15 +00:00
tsutsui
d1a36ee086 Include opt_mips_cache.h for options MIPS3_L2CACHE_ABSENT and
MIPS3_NO_PV_UNCACHED.
2003-10-05 16:38:03 +00:00
tsutsui
800933ed42 No need to include opt_mips_cache.h here. 2003-10-05 16:34:51 +00:00
tsutsui
086016d756 Add pcn at pci, tl at pci and tlphy, which I've confirmed working on O2. 2003-10-05 15:44:36 +00:00
tsutsui
b0cd3c8093 Apply a bunch of patches written by Christopher SEKIYA
(with several cosmetic changes by me) which fixes O2 (IP32) support.

Now my R5000 O2 works fine in multiuser with on-board AIC7880 SCSIs
and several PCI network cards (but only on serial console yet).
L2 cache on R5000/Rm5200 is still disabled for now, but it will be
fixed later, hopefully.

See recent discussion on port-sgimips for details.
2003-10-05 15:38:08 +00:00
tron
0fba6709ad Add entry for bce(4). 2003-10-05 11:42:38 +00:00
tsutsui
14658b124b Add R10000 cache ops, written by KIYOHARA Takashi and posted on port-sgimips.
Enabled by options ENABLE_MIPS4_CACHE_R10K for now.
2003-10-05 11:10:25 +00:00
scw
486ed93284 Kernel bits for siginfo on sh5. 2003-10-05 09:57:47 +00:00
jdolecek
c8694a1a8a include sh5 majors in majors.evbsh5 rather than files.evbsh5, so that
it would be more obvious where all the majors are defined
2003-10-05 09:00:19 +00:00
jdolecek
e6286b949a Add some framework for MI assignment of device majors - add sys/dev/majors
which is automatically included during kernel config, and add comments
to individual machine-dependant majors.* files to assign new MI majors
in MI file.

Range 0-191 is reserved for machine-specific assignments, range
192+ are MI assignments.

Follows recent discussion on tech-kern@
2003-10-05 08:04:24 +00:00
bsh
fba8e3e432 add -DCPU_S3C{2800,2410} for board/sscom.c 2003-10-05 06:58:26 +00:00
bsh
55f95bf493 move back get_com_freq() to sscom.c with #ifdef CPU_{S3C2800,S3C2410} 2003-10-05 06:57:20 +00:00