Commit Graph

98226 Commits

Author SHA1 Message Date
kardel 0ab031dad1 fix status translation (two missing P in PPS* bits) 2009-01-04 20:41:58 +00:00
pooka b319317906 Include libkern contents in librump. 2009-01-04 20:30:21 +00:00
pooka 51dbd2b805 add braces for symmetry 2009-01-04 18:41:36 +00:00
pooka 59f8fc8f6e Split variables out of Makefile into Makefile.libkern so that we
can easily just .include it for the proper SRCS etc. definitions
in case we're interested in the files but not in building an actual
libkern.{a,o}.  for librump
2009-01-04 18:00:55 +00:00
pooka c5889d575e Support PIC for inclusion in librump. (m68k untested) 2009-01-04 17:10:46 +00:00
tsutsui befea92737 Account ci->ci_idepth on calling handlers in ext_intr() as well as
powerpc/pic/intr.c:pic_handle_intr().  Closes PR port-evbppc/40288.

Should be pulled up to netbsd-5.
2009-01-04 15:34:18 +00:00
tsutsui 636ff16d48 Use howmany(x, y) rather than roundup(x, y)/y. No binary change. 2009-01-04 04:18:35 +00:00
bjh21 b954c58e71 Add a TESTING kernel configuration that includes GENERIC with useful
diagnostic options turned on and any local drivers that aren't ready
for GENERIC yet but still ought to be tested.
2009-01-04 01:06:26 +00:00
bjh21 ba2b1f1960 device_t/softc split for experimental powerrom driver. 2009-01-04 01:02:29 +00:00
bjh21 4b46702699 device_t/softc split for unixbp(4) 2009-01-04 00:36:00 +00:00
jmmv 0185e9d704 Fix processing of the symbol table, broken in the change that introduced the
new ksyms_addsyms_elf name.  The problem is that the kernel is really built
as an ELF and then objcopy is used to turn it into an a.out.  Therefore, we
need to use the SYMTAB_SPACE hack when we are an ELF.
2009-01-03 20:05:12 +00:00
bjh21 fada7a07d6 Initialise cpu_info_store so that we start up with a valid curlwp. 2009-01-03 18:15:11 +00:00
christos 2dacfb04ff remove esl (KIYOHARA Takashi) 2009-01-03 17:46:05 +00:00
hannken fc6d5c7578 Remove superfluous "vp->v_vnlock = &vp->v_lock".
Observed by: YAMAMOTO Takashi <yamt@netbsd.org>
2009-01-03 15:29:08 +00:00
reinoud 0da18cc3f4 Fix ISO partitioning readin. ISO dictates its descriptors are minimal 2048
bytes long independent of the device block size.
2009-01-03 14:35:27 +00:00
isaki 8cb1e6831d rtclockinit() and range_test*() were removed in rtclock.c,v 1.19. 2009-01-03 09:32:13 +00:00
tsutsui cff68ad349 Sync with an update on amiga:
Rewrite a weird calculation marked "XXX fix calculations XXX"
for an index value of lev2 segment table for the kernel Sysptmap
with more meaningful expressions and PAGE_SIZE independent macro.
Also use "~0" rather than "-1" for an unsigned bitmap value.

Should produce the same results and no functional change.

Tested on Falcon with 68060 by Tuomo Makinen.
2009-01-03 07:11:02 +00:00
tsutsui ef3099575e Rewrite a weird calculation marked "XXX fix calculations XXX"
for an index value of lev2 segment table for the kernel Sysptmap
with more meaningful expressions and PAGE_SIZE independent macro.
Also use "~0" rather than "-1" for an unsigned bitmap value.

Should produce the same results and no functional change.

Tested on A3000 with 68060 by Frank Wille.
2009-01-03 07:04:42 +00:00
tsutsui c61c988be5 Raise IPL to splsoftnet() before calling callback functions registered
via (atari specific) add_sicallback(), as a workaround hack.

Many drivers which use the MD sicallback depend on BASEPRI() macro
defined in <machine/cpu.h> to check nested interrupts,
but functions invoked from MI softint(9) won't run at IPL_SOFT
any longer and the BASEPRI() macro doesn't return expected value
as the past.

Fixes lost interrupt problem on Falcon wdc(4) reported by
Tuomo Makinen on port-atari, and also confirmed by him.

Should be pulled up to netbsd-5.
2009-01-03 06:36:58 +00:00
dholland 2bd5b48033 Clarify a comment 2009-01-03 04:38:07 +00:00
yamt b1fea83762 remove extra semicolons. 2009-01-03 03:43:21 +00:00
yamt 68b6d8786e remove extra semicolons. 2009-01-03 03:31:23 +00:00
haad 0e718155a1 Return ENOSYS during from dm_target_init routine these tow targets aren't
implemented yet.
2009-01-02 22:33:51 +00:00
briggs bbc63cf490 Allocate enough space for the aac_pci_softc, not just the aac_softc. 2009-01-02 22:03:07 +00:00
pooka 3c58d5b25f My clever hack was not enough. Disable DELAY via ifndef _RUMPKERN in
subr_prf until I manage to get all archs in line with a proper MI
signature.
2009-01-02 22:03:00 +00:00
christos ed795a66a7 protect sillyrename with _KERNEL 2009-01-02 21:06:11 +00:00
pooka 055c86bdde Sauce with some kludges:
* revert rev 1.68 of emul.c: delay() is hopelessly MD and needs
  whipping (not the fun kind)
* #undef DELAY in cpu.h

This will hopefully fix build for all archs and give me time to
hop through our 46521 fine archs and edit the headers.
2009-01-02 16:18:59 +00:00
pooka b55ef665bd Add kludge to allow amd64 compat to build. This is not a proper
fix which most likely requires some compat lib build infra toggle.
2009-01-02 14:03:15 +00:00
jdc ca92cdbafd Remove duplicated key symbol in UK keymap. 2009-01-02 13:09:36 +00:00
ad 27bc6a2391 - Don't vput() a vnode that we do not hold locked.
- Eliminate one of the few remaining uses of LK_CANRECURSE.
2009-01-02 12:57:29 +00:00
pooka 624b664af1 Export delay, _delay and delay_func symbols to attempt to appease
the macro mania set over all architectures.
2009-01-02 11:39:26 +00:00
pooka 72858b67bf Define -DMODULAR in Makefile.rump instead of the sys/rump/librump
Makefile.inc so that it gets picked up by UPDATE=1
2009-01-02 11:13:38 +00:00
pooka ff1136dede We use CPU_INFO_FOREACH here -> include sys/cpu.h 2009-01-02 11:08:32 +00:00
haad 2a2e81e0f1 Properly register dm_target_* modules with module framework. 2009-01-02 11:06:17 +00:00
haad 894d2ad3b7 Add stubs for mirror target, too. This target does nothing for now, but lvm
tools support mirror target and trying to create LV with mirrorred backend
caused panic in dm_table_load_ioctl.
2009-01-02 11:03:24 +00:00
pooka 23bce3395a printf needs IPL_HIGH 2009-01-02 10:45:26 +00:00
tsutsui cf6816d68a Update one more comment which was missed in previous. 2009-01-02 04:38:09 +00:00
pooka 167269d42c Include kernel printf routines in rump instead of relying on the
magic libc symbol.  This also allows to bid farewell to subr_prf2.c
and merge the contents back to subr_prf.c.  The host kernel bridging
is now done via rumpuser_putchar().
2009-01-02 02:54:13 +00:00
haad 2547289caf Add more tasks and add more details about them. 2009-01-02 01:13:49 +00:00
haad 18bcf672b4 Remove unneeded targets from dm driver and build them as separate modules.
The zero, error and snapshot targets are build as modules and can be loaded
to dm driver with modload. I do not build/install these drivers by default.

The linear and stripe targets are needed for LVM so I keep them compiled in
dm.
2009-01-02 01:06:16 +00:00
haad 32013fd9f2 Add stripe target functions stubs. Stripe target must be present in dm driver
because without it lvm2tools will not create LVsi and eventualy panic system.

Problem reported by agc@.
2009-01-02 00:42:31 +00:00
pooka 2577e51e90 revert previous, disabled aliasing in offending build
(XXX: two evil casts in the original)
2009-01-01 22:17:55 +00:00
pooka b5d970336b disable strict aliasing to mirror kernel build flags 2009-01-01 22:16:35 +00:00
pooka 44a89fbb01 Squelch type-punning warnings with void * casts. We are allowed
to do this because the pointers do not have aliases.
2009-01-01 21:35:22 +00:00
pooka bd4f61f139 add missing "arch/" as noted by a few people 2009-01-01 20:30:45 +00:00
pooka 3945d47397 Purge multiple kernel opt files. 2009-01-01 19:43:57 +00:00
pooka 69a1713a8e fix format 2009-01-01 19:33:40 +00:00
pooka afadc531af missed cvs add in previous commit:
Define MODULAR for rump core components.  This enables module
loading via the kernel module framework (instead of dlopen()).
For now it only works on amd64 and i386, but for the rest it should
just be a matter of including the relevant kobj_machdep.c modules
from the kernel sources.
2009-01-01 19:11:18 +00:00
pooka f671460fc0 _KERNEL_OPT 2009-01-01 19:10:17 +00:00
pooka 9a722ef702 Define MODULAR for rump core components. This enables module
loading via the kernel module framework (instead of dlopen()).
For now it only works on amd64 and i386, but for the rest it should
just be a matter of including the relevant kobj_machdep.c modules
from the kernel sources.
2009-01-01 19:07:43 +00:00