Commit Graph

186276 Commits

Author SHA1 Message Date
tsutsui
f5d0565d90 Replace a couple of magic numbers with proper macro. 2009-12-13 12:21:26 +00:00
tsutsui
626b27405b Now we have Sysseg_pa value so no need to calculate it from KVA Sysseg.
Tested on hp300.

XXX: mac68k seems to have a different VA vs PA mechanism so I leave it for now.
2009-12-13 11:24:02 +00:00
tsutsui
e180a79423 Split device_t/softc, some KNF. 2009-12-13 11:10:50 +00:00
tsutsui
75b234b3c3 Use todr_[gs]ettime_ymdhms() format. 2009-12-13 11:03:33 +00:00
mrg
f5f2e65887 - set EMUL_LIB_PATH* for relevant mips emulations
- make sure to install the all right mips ldscripts. XXX ugly
2009-12-13 09:38:22 +00:00
mrg
af35c52924 these files are no longer used and may now rest and bitrot without
hurting anyone...
2009-12-13 09:33:08 +00:00
mrg
750ad3d59d simplify the logic for compat ld.elf_so and move it here. we now can
find the libc objdir for multiple compat ld.elf_so's, too.
2009-12-13 09:31:47 +00:00
mrg
c6b4bc4a81 adjust the do-compat-* rules now that src/compat/lib and friends no longer exist 2009-12-13 09:29:27 +00:00
mrg
8b618fb27a obsolete a bunch of files that should never have been installed, found
by the new src/compat framework that builds libraries more like they
are normally built.
2009-12-13 09:28:41 +00:00
mrg
3ad6dcd150 update this to reflect all the changes in src/compat version 2.0 2009-12-13 09:27:57 +00:00
mrg
cbad3a4a7f - move -m32 style compat into "m32.mk"
- new Makefile.compat has mostly only the basics now
2009-12-13 09:27:34 +00:00
mrg
d752305b9d - move the per-platform subdir list into archdirs.mk
- move the per-ABI subdir list into compatsubdir.mk.  use the new
MAKEDIRTARGETENV support to force a new objdir for compat library builds,
and simply traverse over the normal src path once for each ABI to be
built.  this eliminates all the shadow Makefile's for every library, and
allows multiple compat ABIs to be built for a single platform, such as
both o32 and n64 for mips64's default n32.
- compat/Makefile is merely a subdir provider now, and takes the real
information from archdirs.mk
2009-12-13 09:27:13 +00:00
mrg
9f8de6e95c a hack to force the top-level compat objdir to be created before the
library ones are.  the Makefile has a long description of what's
really going on here.
2009-12-13 09:25:57 +00:00
mrg
bcd8d648d5 enable MAKEDIRTARGET to be called with a separate environment,
called $MAKEDIRTARGETENV, defaulting to nothing.
2009-12-13 09:10:16 +00:00
mrg
c410a53a8b for each $MACHINE_ARCH we have compat libraries to build for, give a list
of ABIs to target.  for amd64 and sparc64, we use the old i386 and sparc
subdirectories.  for mips64, we build both o32 and n64 libraries.

these files are not yet used, but will be shortly.
2009-12-13 09:07:32 +00:00
mrg
6af15ae20b if BSD_MK_COMPAT_FILE is defined, .include it. 2009-12-13 09:01:45 +00:00
mrg
6b59d31236 move the include for <bsd.own.mk> down a little. 2009-12-13 08:52:38 +00:00
mrg
118cb193d7 - adjust the logic for compat ldd: add an elf32_compat module and arrange
for mips64 to build this with MLIBDIR set to o32
- make mips64 ldd call elf32_compat_ldd as well
- make mips64 elf64 set MLIBDIR to 64
- don't need ld.elf_so's Makefile.ld32 files anymore (they are going away
  soon anyway)

tested on amd64 and sparc64, and an earlier version tested on mips64.
2009-12-13 08:50:56 +00:00
tsutsui
cee8238241 Add 5.0.1 configuration files for reference. 2009-12-13 08:37:40 +00:00
tsutsui
8d72c85f6f Put srt0.S to SRCS, not in dependencies for target all. 2009-12-13 08:36:01 +00:00
tsutsui
9a96349d3d Pull a fix from mvme68k:
Create machine and ${MACHINE_CPU} symlinks properly and
 remove unnecessary dependencies so that parallel build works.
2009-12-13 08:32:57 +00:00
mrg
f7f0bc40ae rename LD32DIR to MLIBDIR. 2009-12-13 08:25:20 +00:00
mrg
cba14cb13e look for ${CSU_MACHINE_ARCH}_elf directory first. 2009-12-13 08:03:44 +00:00
mrg
93397973a5 remove an unused reference to LD32DIR. 2009-12-13 08:02:36 +00:00
nakayama
3e1e45a4ab Merge change of OpenBSD rev 1.20:
Remove debug printf and properly dequeue command instead when a read times out
on LOMLite2.
2009-12-13 05:21:06 +00:00
nonaka
d52627492b note support Xorg for zaurus. 2009-12-13 05:11:04 +00:00
nonaka
7ed8bf295b The support of X for zaurus is added. 2009-12-13 05:04:36 +00:00
nakayama
1c54a66d99 System utilities, boot programs and kernel modules are machine
(port) specific not CPU, so use MACHINE not MACHINE_ARCH.
2009-12-13 05:01:32 +00:00
nonaka
f97268b43d Added keyboard config files for Sharp Zaurus SL-C3x00. 2009-12-13 04:57:16 +00:00
matt
dfa7467a6e Pullup from matt-nb5-mips64.
For each syscall, add a flag for the return value or an argument indicating
that it is a 64-bit argument.  Also include the number of 64-bit arguments.
In theory this could get most of the code in compat/netbsd32/netbsd32_netbsd.c
but not at the moment due to multiply defined structures.
2009-12-13 04:47:45 +00:00
nonaka
82dabf8c63 comment out KLOADER. 2009-12-13 04:36:02 +00:00
nakayama
cdf5b45b9a 32-bit compat is CPU specific rather than machine.
So use MACHINE_ARCH instead.
2009-12-13 03:06:22 +00:00
mrg
c7b40f92d5 create /usr/lib/{i386,sparc}{,/security,/i18n} here, where they belong. 2009-12-13 01:02:25 +00:00
snj
24e81c293f Switch cats to X.Org. 2009-12-12 23:45:36 +00:00
mrg
a6052e3b04 replace /usr/lib with ${_GCC_CRTDIR} or ${SHLIBDIR} as appropriate. 2009-12-12 21:33:50 +00:00
dsl
c7517e0921 Add support for unblocking read/write when close called.
Fixes PR/26567 for pipes.
(NB ad backed out the fix for sockets)
2009-12-12 21:28:04 +00:00
dsl
9987412565 Fix comment for arg types of sys_profil(). 2009-12-12 17:48:54 +00:00
dsl
ef379fcb95 Bounding the 'nfds' arg to poll() at the current process limit for actual
open files is rather gross - the poll map isn't required to be dense.
Instead limit to a much larger value (1000 + dt_nfiles) so that user
programs cannot allocate indefinite sized blocks of kvm.
If the limit is exceeded, then return EINVAL instead of silently truncating
the list.
(The silent truncation in select isn't quite as bad - although even there
any high bits that are set ought to generate an EBADF response.)
Move the code that converts ERESTART and EWOULDBLOCK into common code.
Effectively fixes PR/17507 since the new limit is unlikely to be detected.
2009-12-12 17:47:05 +00:00
dsl
17a42f25f1 Report L_INMEM in the lwp info as well. 2009-12-12 17:29:34 +00:00
pooka
fbc989bbef Use linker script to make __start/stop_link_set_modules be present
in libs built with binutils >=2.19.  This is a less error-prone
method than the previous where components had to be tagged in the
Makefile as modules (and if they weren't, things broke.  and vice
versa).
2009-12-12 17:10:19 +00:00
dsl
f537a9ce5f Always set L_INMEM to maintain binary compatibility. 2009-12-12 17:03:19 +00:00
tsutsui
679db53719 Allow NetBSD/hp300 kernel work with PGSHIFT==13, i.e. 8KB/page.
Tested on HP9000/382 with 68040.

XXX: 8KB/page won't work on HP MMU machines (i.e. HP320 and HP350).
2009-12-12 16:37:22 +00:00
tsutsui
698e481cab Switch to using todr_[gs]ettime_ymdhms() format
which don't require struct timeval details.
Also fix a botch calling MI todr_settime(9) without rtc_offset adjustment.
2009-12-12 16:12:05 +00:00
skrll
aae0dc7c17 Correct/add comments. 2009-12-12 15:25:32 +00:00
tsutsui
428585a7d8 Remove `volatile' qualifier from argument types of
struct timeval passed to todr_gettime(9) and todr_settime(9).
We no longer have an ancient and volatile struct timeval `time'
global since we have switched to MI timercounter(9) on all port.

XXX1: some of these RTC drivers still assume 32bit time_t
XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms()
XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()
2009-12-12 15:10:34 +00:00
tsutsui
471e528b58 Remove `volatile' qualifier from argument types of
struct timeval passed to todr_gettime(9) and todr_settime(9).
We no longer have an ancient and volatile struct timeval `time'
global since we have switched to MI timercounter(9) on all port.

XXX1: some of these RTC drivers still assume 32bit time_t
XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms()
XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()
2009-12-12 14:44:08 +00:00
cherry
313960fcf1 regen properly for usbdevs, 1.538, _after_ commit 2009-12-12 14:30:59 +00:00
nonaka
671ae66041 report collect charge state. 2009-12-12 14:29:34 +00:00
cherry
add5aa6f98 Add ID for Qualcomminc AC8700 as found in "ZTE, Incorporated ZTE CDMA Tech, rev 1.10/0.00, Works with BSNL (http://www.bsnl.co.in) EVDO service 2009-12-12 14:18:27 +00:00
kefren
498a190b81 add stub pmf hook 2009-12-12 14:15:25 +00:00