Commit Graph

186314 Commits

Author SHA1 Message Date
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
cherry a4f53c53d6 regen from usbdevs 1.538
> Add product IDs for Qualcomm RWT FCT-CDMA 2000 1xRTT Modem, ZTE Storage and CDMA 1xEVDO Modem
> From $FreeBSD: head/sys/dev/usb/usbdevs 199331 2009-11-16 20:35:16Z thompsa $
2009-12-12 14:03:48 +00:00
cherry a67abb9cbe Add product IDs for Qualcomm RWT FCT-CDMA 2000 1xRTT Modem, ZTE Storage and CDMA 1xEVDO Modem
From $FreeBSD: head/sys/dev/usb/usbdevs 199331 2009-11-16 20:35:16Z thompsa $
2009-12-12 14:01:54 +00:00
nonaka 90e9d6e92e Use mutex(9). 2009-12-12 13:12:49 +00:00
phx a58c4d9e81 Reverted the CIA-timer based delay() to the pre-5.0 method of a calibrated
delay loop.
This fixes keyboard handshaking problems with some A1200 models since 5.0
and restores the precision for short delays on DraCo systems (the QuickLogic
timer has only a seventh of the CIA precision).
Changed the keyboard handshaking delay from 2000 back to 200ms, although
even the recommended 85ms were successfully tested on the most problematic
A1200 keyboards.
All those changes were tested on an A3000 and A1200 with 68060/50 CPU, and
previously discussed on the port-amiga ML.
2009-12-12 13:10:36 +00:00
martin 3ec6df1964 Clear new pcb in cpu_lwp_fork, now that this seems to no longer be
guaranteed to be zeroed memory after the uarea swap changes.
XXX shouldn't we zero the new uarea upfront in MI code before calling
uvm_lwp_fork?
2009-12-12 12:23:29 +00:00
martin f714d75546 Fix register usage in previous proc0paddr->lwp0.l_addr change: do not
overwrite %r1 yet, it is later used to calculate the kernel stack pointer.
As a side effect the right value is stored in $PR_PCBB again.
2009-12-12 12:19:21 +00:00
nonaka a75e0b5b4d use APM_BATT_FLAG_CHARGING. 2009-12-12 11:38:45 +00:00
tsutsui a49264523b Use bool where appropriate. 2009-12-12 11:35:16 +00:00
tsutsui efd28fda6a Don't use int to get delta of time_t values. 2009-12-12 11:28:40 +00:00
tsutsui bf74993921 Use time_t to calculate days and secs to avoid potential overflow. 2009-12-12 11:22:59 +00:00
tsutsui 6621c5bd3f KNF 2009-12-12 11:16:33 +00:00
njoly f6cb14208d Remove semicolon from NETBSD32TOx_UAP macro definitions. 2009-12-12 10:32:26 +00:00