Commit Graph

176334 Commits

Author SHA1 Message Date
tnozaki
52ed7b035f Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format.
ok'ed by core and releng.
(thanks for agc@, snj@ and i'm sorry for long time patience).

[libc]
- localeio.[ch] and lc*.[ch] in src/lib/libc/locale was replaced by
  new locale-db implementation using citrus_db backend,
  see src/lib/libc/citrus/citrus_lc_*.[ch].
- add citrus_bcs_strtou?l.c. don't use strtou?l locale implementation
  internally, because they're locale-aware function.
- add some stubs for multi-locale issue, see {current,global}_locale.c.
- remove some obsolete file, setrunelocale.c, ___runetype_mb.c.
- remove __savectype() from ctypeio.[ch].

[tools]
- mklocale(1): add new option ``-t'' that generates new style
  LC_{MONETARY,NUMERIC,TIME,MESSAGES} locale-db format.
- chrtbl(1): added ctypeio.[ch] for __savectype().

[locale-db]
- added en_US.US-ASCII locale.
- removed some shareable locale definition file:
    en_US.US-ASCII -> en_US.ISO8859-1, en_US.UTF-8
    zh_CN.eucCN -> zh_CN.GB18030
    and more...see src/share/locale/*/Makefile.
- remove obsoleted locale sr_YU, added new locale sr_ME, sr_RS.
- change locale name ja_JP.ISO2022-JP* -> ja_JP.ISO-2022-JP*
  for X11's locale.alias file alignments.
- fix regression test, wrong wcs?width(3), NAN/INF usage.

i tested release-build following arch:
  i386, amd64, hpc{mips,arm,sh}, sparc64, vax.

citrus_lc_*.[ch] also can read old-plain-text style locale-db.
so that backward compatibility is keeped, but lc*.[ch] can't read
new citrus_db'ed locale-db and localeio.c never check sanity,
so forward compatibility is broken ;-<

old mklocale(1) doesn't know -t option, so you have to rebuild toolchain.
2009-01-02 00:20:18 +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
pooka
360af828c1 Rename i386 and amd64 {cpu,spl}.c to rump{cpu,spl}.c to avoid
name collisions with other source files in the kernel tree.
2009-01-01 16:50:30 +00:00
pooka
0e983d35cf * unexpose kprintf locking internals
* migrate from simplelock to kmutex

Don't bother to bump kernel version, since nothing outside of subr_prf
used KPRINTF_MUTEX_ENXIT()
2009-01-01 15:10:20 +00:00
jdc
79efdbb4ff Back out previous and clear the screen directly.
Pointed out by macallan@.
2009-01-01 13:53:07 +00:00
pooka
84ff1461c4 Track parent directory in cross-directory renames so that mv & rm
for the same file during a vnode's lifecycle works.

... rename fix .. it's going to be a good year ...
2009-01-01 13:41:45 +00:00
ad
a190625ad7 softint_disestablish: don't pass softint_lock to kpause, it's not held. 2009-01-01 12:26:46 +00:00
tsutsui
21ac960f24 Remove declarations of CADDR1, CADDR2, and vmmap.
These variables have been moved into pmap_bootstrap.c
and <m68k/pmap_motorola.h> has extern decls for them.
2009-01-01 08:11:45 +00:00
tsutsui
8e2bef0189 Pull the following amiga's pmap changes to atari:
arch/amiga/amiga/amiga_init.c		1.95-1.97, 1.100-1.102
arch/amiga/amiga/pmap.c			1.123, 1.126-1.131, 1.142, 1.145
arch/amiga/amiga/pmap_bootstrap.c	1.1, 1.2, 1.3, 1.4
arch/amiga/conf/files.amiga		1.137
arch/amiga/include/pcb.h		1.16
arch/amiga/include/pmap.h		1.44
arch/amiga/include/pte.h		1.19
arch/amiga/include/vmparam.h		1.35

- change kernel address space layout (i.e. move Sysmap to the end of KVA)
  to match other m68k ports, which should be done on yamt-km merge
- rework pmap_zero_page(), pmap_copy_page() and some more other functions
  to make them compatible with m68k/pmap_motorola.c
- move pmap_bootstrap() into a separate file to allow using either
  the atari pmap.c or the m68k common pmap_motorola.c
- use common m68k include files, pcb.h, pmap_motorola.h, and pte_motorola.h
- misc style and cosmetic changes

Most merge work is done by Tuomo Makinen, and
miscellaneous fixes and cleanups are done by me.

Tested on Falcon with both 68030 and 68060 by Tuomo, and
also tested on TT030 by David Ross on port-atari.

Should be pulled up to netbsd-4 (it requires at least Sysmap changes)
and netbsd-5.
2009-01-01 04:10:25 +00:00
tsutsui
d38ce2ebbc Pull a change from amiga/pmap.c rev 1.124 for yamt-idlelwp merge. 2009-01-01 03:43:30 +00:00
kenh
9b6f36d652 If the default watchdog timer period is used, use a timer value
of 8 seconds.  Otherwise wdogctl will return an error.
2009-01-01 03:34:42 +00:00
salo
e47eff8181 MUHAHAHA, FIRST POST!!!!111!1!!ONE!!1
(also, "welcome to 2009 and don't forget to update copyright notices
        when you add new code" and all that stuff)
2009-01-01 00:00:01 +00:00
agc
287120139a Might as well install the dm devmapper module when we install the
other parts of the LVM tools - use the same MKLVM switch, though.
2008-12-31 21:22:02 +00:00
tsutsui
2502831068 Use proper variable types and names in start_c() function for readability.
No binary changes. (wow, so clever gcc)
2008-12-31 19:54:40 +00:00
tsutsui
06eb11c451 - remove assigned but unused `pt' variable (gcc generates the same binary)
- remove obsolete Sysmap comments
2008-12-31 18:48:14 +00:00
wiz
42fdda0454 Bump date for previous. 2008-12-31 14:19:51 +00:00
christos
d1018e8baf KNF.
NB: These were not imported properly. The Id RCS keyword lines were not
cleaned up, and there were no NetBSD keywords added. Perhaps Re-import
correctly?
2008-12-31 14:08:46 +00:00
christos
4a65af23ac mention that these may fail with EPERM. From Anon Ymous 2008-12-31 13:57:54 +00:00
taca
34bbf0c078 Update current versions:
bind: 9.5.1/9.6.0.
	 dhcp3.1.2/4.0.1
2008-12-31 13:57:28 +00:00
pooka
c26a0d893f update description of include 2008-12-31 13:18:06 +00:00
pooka
94dc15e204 Include rb.c instead of relying on it being in libc. 2008-12-31 13:08:57 +00:00
tsutsui
cdf1b88ca6 - remove extern decls for unused msgbufaddr and msgbufpa
- remove noncontig_enable which has been moved into pmap_bootstrap.c
2008-12-31 11:43:26 +00:00
tsutsui
d14403f116 Make kernel_pmap_store static as well as other m68k ports. 2008-12-31 11:37:20 +00:00
tsutsui
2e525a342c Some minor cosmetics, to sync with atari. 2008-12-31 11:34:39 +00:00
tsutsui
baffe80103 Remove quite obsolete pcb_cmap2. 2008-12-31 11:11:05 +00:00
tsutsui
99a3dabf8e Remove a declaration of Sysmap. It's in <m68k/pmap_motorola.h>.
XXX: maybe we should also have declarations for Sysseg, Sysptmap,
XXX: and Sysptsize etc. in <m68/pmap_motorola.h>.
2008-12-31 10:33:13 +00:00
tsutsui
a0746e5741 Add avail_start and avail_end for debug printf,
to sync with m68k/pmap_motorola.c.

XXX: virtual_avail (VA of first avail page) is not initialized?
2008-12-31 10:02:30 +00:00
isaki
aea81d8a0f struct device * -> device_t. 2008-12-31 09:50:21 +00:00
tsutsui
fa7554982f Misc cleanup:
- use proper types on variable declarations
- allocate Sysseg_pa in pmap_bootstrap.c where it's actually used
  rather than in atari/pmap.c
- remove comments in pmap_bootstrap.c which were duplicated from pmap.c
- add explicit `extern' keywords for variables allocated elsewhere
- update comment for pmap_bootstrap() to sync with reality

No functional changes.
2008-12-31 09:45:11 +00:00
isaki
40e63cb237 Remove a meaningless "*" @ mainbus. 2008-12-31 08:33:20 +00:00
isaki
7563f448e7 Search all of mfp(4)'s children automatically, instead of
attaching hard-coded children.  mfp(4) was trying to attach
pow(4) though pow(4) was a pseudo-device for a long time.
2008-12-31 08:00:31 +00:00
phil
806ddf688c Add a return HAL_OK in the AR_EEP_MACADDR case. Without this
it falls through to the next case and returns a register value.
Found by Aran Clauson.
2008-12-31 07:24:01 +00:00
tsutsui
64fa2cd5cc Adjust comments (which were added by me) to sync with m68k/pmap_motorola.c. 2008-12-31 06:54:33 +00:00
pooka
cb118e551d yank debug printf from previous 2008-12-31 00:57:45 +00:00
pooka
e8b4276abd Reset proc0 cwdi after unmount. Makes is possible to mount/unmount/mount
in one process.
(XXX: this code is still horrible)

problem reported by stacktic
2008-12-31 00:57:15 +00:00
pooka
e605194ace Nuke macros which haven't been used since the advent of RUMP_VOPs. 2008-12-31 00:35:00 +00:00
pooka
1d6d3e2769 Link self-contained file systems (i.e. do not depend on other file
systems) against the kernel module on select archs.
2008-12-30 22:20:56 +00:00
pooka
3427000fad Build kernel modules the same time as the rest of the system libraries. 2008-12-30 22:18:11 +00:00
pooka
dfa6b36e0e Move list of rump-uses-kmod archs to bsd.own.mk for wider consumption. 2008-12-30 21:31:10 +00:00
pgoyette
38a22d040a Correctly mark files obsolete. 2008-12-30 20:33:27 +00:00
reinoud
339f5c5772 Add ISO partition detection enabling auto-detection of iso9660 and UDF
partitions on optical media like CD/DVD/BD but also on all other media if
there is no NetBSD disklabel or MBR label.

Also fix cd's readdisklabel arguments so the ioctl's arrive at the right
device (!) and update its default label to make more sense.
2008-12-30 19:38:36 +00:00
pooka
3b189207d8 Switch amd64 rumps to the kernel ABI. 2008-12-30 19:05:40 +00:00