Commit Graph

107918 Commits

Author SHA1 Message Date
jmmv
ba82241d0e Ammend previous to be more accurate in platform_add_date by using the epoch:
* Years in the [70,99] range are considered to be in 1900.
* Years in the [0,69] range are considered to be in 2000.

I don't think we may have hit any machine where the previous numbers were
a problem, but these seem to be the "correct" ones.

From christos@.
2011-01-18 07:47:16 +00:00
matt
98933d17d4 Fix some fallout from building the macppc GENERIC.MP. 2011-01-18 02:25:42 +00:00
matt
f82770bafc Remove forced DEBUG. 2011-01-18 01:20:06 +00:00
matt
773e544e8c Deal with changes in the trapframe. 2011-01-18 01:13:03 +00:00
matt
6b63943ce9 Add common TLB PMAP framework. Used my mpc85xx (and soon MIPS). 2011-01-18 01:11:50 +00:00
matt
262e1f2b3f Add support for various MPC85xx platforms. The MPC8536DS and MPC8548CDS
development systems and the RB800 (routerboard 800) platform.  The CF on
the RB800 doesn't work yet.
2011-01-18 01:10:24 +00:00
matt
de9fe3e4cb include <uvm/uvm_extern.h> 2011-01-18 01:08:55 +00:00
matt
24ab301018 Add TMPFS and ksyms. Add an INSTALL variant 2011-01-18 01:07:06 +00:00
matt
b8ea2c8cad Add support for BookE Freescale MPC85xx (e500 core) processors.
Add fast softint support for PowerPC (though only booke uses it).
Redo FPU/VEC support and add e500 SPE support.
Rework trap/intrs to use a common trapframe format.
Support SOFTFLOAT (no hardfloat or fpu emulation) for BookE.
2011-01-18 01:02:52 +00:00
joerg
6438963396 Allow co-existance of traditional and modern CPP 2011-01-18 00:26:57 +00:00
matt
bd081d44b9 Make the MIPS N32/N64 ABIs properly support 128-bit long doubles. With this
change, we should be fully conformant with the N32 and N64 ABIs.
Add {fpclassify,infinity,isnan,ininf,signbit}l_ieee754.c back to lib/libc/gen.
Note that infinityl_ieee754.c will work with either 64-bit, 80-bit, or
128-bit long doubles.
2011-01-17 23:53:03 +00:00
jmmv
ea024283b0 Fix year correction in platform_add_date so that:
* Years in the [90,99] range are considered to be in 1900.
* Years in the [0,89] range are considered to be in 2000.

This makes my MacBookPro2,2 be recognized as from 2007 instead of 1907, which
in turn lets ACPI (and many other things!) work.

Fix proposed by jmcneill@ as an alternative to my workaround in acpi_quirks.c
sent to port-i386@.
2011-01-17 22:21:25 +00:00
pooka
887a2b78c7 regen: more compat syscalls 2011-01-17 18:25:17 +00:00
pooka
111bbbce9e Missed pselect50 in previous (file was open in editor ... d0h).
Add mknod50 and fhstat50 too.
2011-01-17 18:24:17 +00:00
joerg
13d8b2b89c Move SPARC and SPARC64 to modern CPP. Update UPDATING note for this and
Alpha.
2011-01-17 18:11:09 +00:00
jmcneill
138a9407d2 use PRIx64 instead of llx, fixes build on amd64 2011-01-17 17:32:11 +00:00
pooka
0e4497a140 use newstyle rump syscall compat 2011-01-17 16:25:39 +00:00
pooka
4b0482d05f regen: rework rump syscall stubs (see makesyscalls.sh log for details) 2011-01-17 16:24:04 +00:00
pooka
322c9db78b regen with no changes (to show previous commits affected rump only) 2011-01-17 16:22:53 +00:00
pooka
39a698a4f3 Mark a few 5.0 COMPAT syscalls as RUMP now that it's possible 2011-01-17 16:21:40 +00:00
pooka
46b3b0f6ce use compat code from sys/compat/common 2011-01-17 16:20:20 +00:00
pooka
53c9307857 Rework how syscall compat is handled for rump syscalls. The old
one had the problem of bypassing the syscall layer and doing a
function call into the kernel directly.  Therefore there was no
way for users of librumpclient to specify compat.  The new model
pushes the compat handling in the kernel and leaves only the task
of selecting the right syscall number to the client.

This change also introduces a stable ABI for rump syscalls, i.e.
it is possible to use the same syscall client library both on NetBSD
5.0 and -current and get the syscalls resolved to the right place
depending on the ABI at the time the client binary is compiled.

A list of what to be called when will have to maintained separately
simply because this information is not available in syscalls.master
-- in the case of the normal kernel we always want to resolve a
newly linked syscall to the latest version, whereas in rump we
might want to resolve a syscall to a -current kernel to the 5.0
compat call (because our client namespace is 5.0).  This information
in maintained in rump_syscalls_compat.h with the current format:

/* time_t change */
#if !__NetBSD_Prereq__(5,99,7)
#define RUMP_SYS_RENAME_STAT rump___sysimpl_stat30
....

If no compat override is given, a syscall resolves automatically
to the latest version of the syscall.

Also, this change autogenerates forward declarations for all syscall
types where it is possible (i.e. ones without typedef insanity).
This makes it possible to include rump_syscalls.h without including
rump.h.
2011-01-17 16:16:54 +00:00
pooka
4ded7232b9 Put async i/o compat routines in a separate source module from the
ones related to clock and process management.
2011-01-17 15:57:04 +00:00
jmcneill
b9c99a1608 add acpiwdrt 2011-01-17 15:56:03 +00:00
jmcneill
8ddcdc25a9 acpiwdrt needs sysmon_wdog 2011-01-17 15:55:24 +00:00
jmcneill
4eb5cd5a57 add acpiwdrt module glue 2011-01-17 15:49:56 +00:00
jmcneill
27686d11fe Add a driver for ACPI "Watchdog Resource Table" devices.
acpiwdrt0 at acpi0: mem 0xfed01000,0xfed01004
  acpiwdrt0: PCI 0:000:00:0 vendor 0x1106 product 0x3337
  acpiwdrt0: watchdog interval 1-1023 sec.
2011-01-17 15:49:13 +00:00
tsutsui
09292cecb8 Explicitly include <mips/pcb.h> for struct pcb. 2011-01-17 15:32:59 +00:00
tsutsui
247eefa18e Explicitly include <machine/pcb.h> for struct pcb. 2011-01-17 14:53:42 +00:00
tsutsui
4d58277bcd Explicitly include <machine/pcb.h> for struct pcb. 2011-01-17 14:36:32 +00:00
jdc
35725a69db Add (commented out) LOCKDEBUG and SYSCALL_DEBUG options. 2011-01-17 13:43:02 +00:00
skrll
ddf6216538 Whitespace. 2011-01-17 12:37:46 +00:00
matt
7eef82641e If LWP0_MD_INITIALIZER is defined, use it to initalize .l_md (avoid runtime
to do it if possible).
2011-01-17 08:26:58 +00:00
matt
51db1c5cf3 Kill _NOREGNAMES. Everything should be using %rX now. If it doesn't it
soon will.
2011-01-17 08:23:53 +00:00
uebayasi
ab332b69c7 Fix a conditional include. 2011-01-17 07:36:58 +00:00
matt
c9b73ed954 Add #include <machine/pcb.h> 2011-01-17 07:32:54 +00:00
uebayasi
9d567f003d Include internal definitions (uvm/uvm.h) only where necessary. 2011-01-17 07:13:31 +00:00
matt
19cb1fa295 Don't define _NOREGNAMES since all of libkern is now compiled with it. 2011-01-17 07:07:36 +00:00
matt
4fe8145a2c Use %rX instead of X. (no function change). 2011-01-17 07:06:10 +00:00
matt
3cdfbf5853 Add a #include <machine/pcb.h> 2011-01-17 06:55:49 +00:00
matt
a783addbee Change some register uses to %rX that were missed the firt time. 2011-01-17 06:54:57 +00:00
njoly
fd24721ce5 In stat structure conversions, do set st_birthtimespec member values
if exists.
2011-01-16 23:21:16 +00:00
jmcneill
7f772947f7 save a line of dmesg 2011-01-16 14:16:03 +00:00
tsutsui
3b619c6ff4 Make pre-2.0 ELF binaries (with gcc-2.95.3/binutils-2.11.2) actually work
with options COMPAT_16.
Tested on R3000 pmax and R5000 sgimips, closes PR port-mips/44375.
2011-01-16 09:50:44 +00:00
tsutsui
c1a2202ec6 Pull AL2230S radio support for chips:
>   zyd0: sorry, radio "PV2000" is not supported yet
>   zyd0: could not attach RF
mentioned in PR kern/43125. From (FreeBSD via) OpenBSD.

Untested (no hardware here), but should not affect other chips.
2011-01-16 09:08:29 +00:00
tsutsui
4dbd907d6a Regen from usbdevs rev 1.576:
> Add CyberTAN ZD1211B. From OpenBSD.
2011-01-16 08:59:08 +00:00
tsutsui
b2e0405206 Add CyberTAN ZD1211B. From OpenBSD. 2011-01-16 08:58:03 +00:00
matt
156ba6dbc5 Add -D_NOREGNAMES 2011-01-16 03:22:19 +00:00
matt
810e7ea289 Add PIC_GOTSETUP and PIC_TOCSETUP which replace the old methods to get the
GOT (via a bl) to the new REL16 based relocs.  This is another step to
supporting secure plt.
2011-01-16 02:41:55 +00:00
jmcneill
89497f8548 build and install aps module on i386 and amd64 2011-01-16 01:13:10 +00:00