Commit Graph

186314 Commits

Author SHA1 Message Date
njoly 9e96206789 Add missing semicolons after NETBSD32TOx_UAP macro calls. 2009-12-12 10:30:09 +00:00
tsutsui 080cfc2189 Allow NetBSD/mac68k kernel work with PGSHIFT==13, i.e. 8KB/page.
Tested on LC630 with 68LC040.
2009-12-12 09:55:44 +00:00
tsutsui 1f792f80d1 Allow NetBSD/news68k kernel work with PGSHIFT==13, i.e. 8KB/page.
Tested on NWS-1750 with 68030.
2009-12-12 09:54:42 +00:00
nonaka c54868835c Use tpcalib_ioctl() instead of hpc_tpanel_ioctl(). 2009-12-12 07:49:31 +00:00
mrg 68657e0e89 replace NETBSD_DIST_X11_FILE and NETBSD_DIST_EXTSRC_FILE with EXTRA_DIST_FILES 2009-12-12 01:32:10 +00:00
pooka 3048f9c8c7 fix error branch 2009-12-12 00:46:04 +00:00
rmind a14def1a51 Fix comment. 2009-12-12 00:24:57 +00:00
snj ed067c7c4b Add commented out xf86-video-igs under netwinder. 2009-12-11 22:37:39 +00:00
snj 6085ee1cdc Switch netwinder to X.Org. 2009-12-11 22:35:42 +00:00
snj 7c9842f451 libint10 is only built on amd64, i386, and macppc. Update the xorg part
of this setlist to reflect that.
2009-12-11 22:34:30 +00:00
tsutsui 789c74706a Use appropriate macro during pmap initialization:
- use SYSMAP_VA, SEGSHIFT for Sysmap address and table entries
- use TIA_SIZE, TIB_SIZE for sizes of table entries

Now page size dependent numbers are almost replaced with proper macro.

Tested on atari, hp300, and news68k.
2009-12-11 22:23:08 +00:00
pooka 35b591f8ec uncommit accidental changes 2009-12-11 21:21:52 +00:00
pooka 262f83ce50 Use range locking (fnctl(F_SETLK)) instead of file locking (flock()).
This allows to mount multiple (non-overlapping) partitions from the
same disk image.
2009-12-11 21:20:52 +00:00
tsutsui adfe5ab281 Fix (probably fatal) typo on yamt-km merge back on 2005. 2009-12-11 20:00:49 +00:00
tsutsui 095a9b6e17 MAXADDR used for PA == VA mapping should be page size dependent. 2009-12-11 19:43:18 +00:00
tsutsui 6f99640dde Fix leftover botch in rev 1.48:
Remove initialization of protection_codes[] which has been movde into
 pmap_bootstrap_finalize().
2009-12-11 19:36:05 +00:00
tsutsui cf5f9350fc Define SYSMAP_VA in <m68k/pmap_motorola.h>
where the Sysmap pointer is declared.
2009-12-11 18:57:44 +00:00
tsutsui a1b485666f NBSG is not used in this file so remove unnecessary comment and include. 2009-12-11 18:45:05 +00:00
tsutsui 1a88b50bca Include pmap.h or pmap3.h instead of param.h for NBSG to handle MMU. 2009-12-11 18:42:05 +00:00
tsutsui 648c35441c Export NBSG for bootloaders. MMU is enabled even on PROM on sun68k machines. 2009-12-11 18:40:08 +00:00
tsutsui 8c1c2fcdd0 Export pmap_procwr() declaration only #ifdef _KERNEL. 2009-12-11 18:31:27 +00:00
tsutsui 1401e77eb0 Move uvm_setpagesize() calls from locore.s to pmap_bootstrap_finalize().
Also explicitly set uvmexp.pagesize to prepare 8KB/page settings.

XXX: There is #ifdef !defined(amiga) && !defined(atari) workaround
XXX: because they have different pmap initialization functions.
2009-12-11 18:28:35 +00:00
tsutsui 465857f028 Refactoring MD segment related definitions on m68k ports:
- move macro SEGSHIFT, NBSEG, and SEGOFSET from <machine/param.h>
  to <m68k/pmap_motorola.h> where they should belong
- also simplify NBSEG macro for both 020/030 and 040/060 cases
- also move m68k_trunc_seg(), m68k_round_seg(), and m68k_seg_offset()
  (that use SEGOFSET) from <m68k/param.h> to <m68k/pmap_motorola.h>
- add comments about each segment size value used on pmap_motorola
  implementation
- add TIA_SIZE, TIA_SHIFT, TIB_SIZE, and TIB_SHIFT macro which can be
  used for ste/pte index sizes
- use proper vaddr_t cast instead of unsigned for SEGOFSET/PGOFSET macro

Tested on atari, hp300, and news68k.
2009-12-11 17:53:22 +00:00
tsutsui a2c6d1c59d There is no NetBSD 4.1 (yet?) and 5.0 has been released before it. 2009-12-11 17:00:49 +00:00
pooka 72e7011c7a Init ukfs__part_{na,none} statically instead of at runtime to avoid
init-order lossage from p2k/rump_smbfs, as noted by Tron.
2009-12-11 16:47:33 +00:00
pooka abcee849c9 This is linked against rumpnet_sockin, so it should not be linked
against rumpnet_netinet anymore.
2009-12-11 16:46:27 +00:00
pooka eede817dfd Include component.c instead of dummy.c so that domain constructors
get properly called.
2009-12-11 16:34:50 +00:00
uebayasi afecdcdcbc Use $GENCMD to generate misc.[ch]. Carefully quote strings. 2009-12-11 16:10:56 +00:00
uebayasi bab9f7218a GENCMD: quote the string to eval in case it has spaces. 2009-12-11 16:09:03 +00:00
uebayasi d7fe4afc2b Set $rundir before calling sets.subr as other scripts do. 2009-12-11 15:25:05 +00:00
he 66597865fb Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets.  Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@
2009-12-11 15:22:33 +00:00
tsutsui 73bba0e6a2 Refactoring MD segment related definitions on m68k ports:
- move macro SEGSHIFT, NBSG, and SEGOFFSET from <machine/param.h>
  to <machine/pmap.h> where they should belong
- don't use m68k_round_seg() and m68k_trunc_seg() in sun2 pmap sources
  and instead define and use sun2_round_seg() and sun2_trunc_seg()
  since they are quite pmap implementation dependent
2009-12-11 13:56:15 +00:00
tsutsui ce06f8d54c Refactoring MD segment related definitions on m68k ports:
- move macro SEGSHIFT, NBSG, and SEGOFFSET from <machine/param.h>
  to <machine/pmap.h> where they should belong
- don't use m68k_round_seg() and m68k_trunc_seg() in sun3 pmap sources
  and instead define and use sun3_round_seg() and sun3_trunc_seg()
  since they are quite pmap implementation dependent
2009-12-11 13:52:57 +00:00
uebayasi 096187792a list_set_lists() - Share code of handling *.ad.* set lists. 2009-12-11 13:30:11 +00:00
uebayasi e140e09a48 Indent. 2009-12-11 13:10:47 +00:00
uebayasi e06370d53f Refactor list_set_lists using more functions. 2009-12-11 13:10:06 +00:00
uebayasi 0e9d695764 Replace many "if [ -f $x ]; then echo $x; fi" instances with function. 2009-12-11 12:57:39 +00:00
he 9d7093b6b4 Prefix mkvars.mk with ${rundir}/, so that the scripts from this
dir using sets.subr can be run from another directory, as is done
e.g. during "make release" via the mksums script.

OK'ed by uebayasi@
2009-12-11 12:07:58 +00:00
uebayasi f22a6fb255 Put intermediate lists on the top of ${DESTDIR} (${DESTDIR}/SETS.*) and leave
them.  Teach list generators to ignore them.  Always generate metalog
missing/extra lists too, but don't check it (for now).  I'll change "flist"
to be generated only when set lists have changed.

No functional changes.
2009-12-11 11:48:41 +00:00
njoly c3217052b6 In netbsd32_from_{ifreq,oifreq}(), use the compat structure size for
memcpy.

From mrg.
2009-12-11 11:14:34 +00:00
tsutsui 0b5468d9dc Don't refer garbage in stack.
- An argument of struct timeval *tv passed by todr_gettime(9) is used
  for a return value and it doesn't contain valid data. Don't read it.
- Instead, use getmicrotime(9) to get a "reasonable" (i.e. current) time
  to see expected year value (which is not kept by this device).
- If current time is not valid, assume this is the first todr_gettime(9)
  call from inittodr(9) and use file system time for the "reasonable" year.

Fixes silent hangup after mountroot() on sun2.

XXX: MI todr(9) functions seem to get mangled around year ~22000.
2009-12-11 11:07:04 +00:00
tteras 119e5ecd44 From Paul Wernau: vmbuf.h was defined twice in the headers. Remove the
redundant entry so new install tool does not complain about overwriting
just installed file.
2009-12-11 09:04:04 +00:00
uebayasi 31dfbef56f ${GENCMD}:
Prefix tmp directories as /tmp/_gencmd.XXXXXX to give users a clue when it's
left accidentally.
2009-12-11 08:52:37 +00:00
uebayasi b79e178285 Rewrite file generation rules using ${GENCMD}. No functional changes intended. 2009-12-11 08:39:42 +00:00
uebayasi bf4c37b84c ${GENCMD} is used to generate only one output from file generation commands
which potentially have multiple output files, which confuses make(1).

This wrapper copies all involved files into /tmp, execute the command, and
copy the wanted file back to ${.OBJDIR}.  If this is expensive, consider to
rewrite the generation command to output files individually.

XXX bsd.own.mk is too bloated.
2009-12-11 08:37:34 +00:00
matt 0a8b38422e Add PRIx{P,V}{ADDR,SIZE}, PRIu{P,V}SIZE, and PRIxREGISTER{,32,64} for all
(except where they will be added via merge).  These should be used to print
{p,v}{addr,size}_t and register*_t as appropriate.
2009-12-11 05:52:03 +00:00
dsl eff3e2124a Avoid leaking a mutex_obj when pipe_create() fails for the read pipe.
Remove the unused argument from pipeclose().
2009-12-10 20:55:17 +00:00
jld 9bd6e2661a Slight change to the wording of the parity map info: the parity is
"marked clean" after however much inactivity; it is *actually* clean
as soon as the component disks all do their thing (on the order of ms,
usually), just the same as before.

The bikeshed is now less of a taupe and more of an ecru.
2009-12-10 20:20:59 +00:00
plunky 75847ce3f8 accept uppercase hex digits when parsing a provided key 2009-12-10 18:57:31 +00:00
uebayasi 76ff00f330 Thinko; missing/extra are generated differently for metalog/destdir comparison
methods.  Fix mistakenly merged generation functions.
2009-12-10 17:18:33 +00:00