Commit Graph

2497 Commits

Author SHA1 Message Date
dsl
95739e63cd Remove __HAVE_PROCESS_XFPREGS and add the extra parameter for the size
of the fp save area to all the process_read_fpregs() and
  process_write_fpregs() functions.
None of the functions have been modified to use the new parameters.
The size is set for all the writes, but some of the arch-specific reads
  just pass NULL.
The amd64 (and i386) need variable sized fp register save areas in order
  to support AVX and other enhanced register areas.
These functions are rarely called - so the extra argument won't matter.
2014-01-04 00:10:02 +00:00
dsl
be74e0a9c9 Change the type of the 'cookie' that holds the state of the core dump file
from 'void *' to the actual type 'struct coredump_iostate *'.
In most of the code the contents of the structure are still unknown.
This just stops the wrong type of pointer being passed to the 'void *'
parameter.
I hope I've found everything, amd64 GENERIC and i386 GENERIC & ALL compile.
2014-01-01 18:57:15 +00:00
mrg
8693e10867 fix a register copy in compat_16_sys___sigreturn14() that GCC 4.8
picked up (would have read uninitialised, and possibly unmapped data,
but i doubt many people are running netbsd 1.6 mips apps on mips64
hosts yet.)
2013-12-06 13:52:05 +00:00
christos
ebc7bfb61b nobody uses qchain and it is about to be GC'ed. 2013-11-25 03:01:58 +00:00
alnsn
988b97e4aa Always define SLJIT_CACHE_FLUSH(), start include guards with '_' and use _LP64 guard. 2013-11-17 12:01:58 +00:00
christos
0101d11c56 fix unused variable warnings 2013-11-10 18:27:15 +00:00
christos
9f0d33d554 fix unused 2013-11-10 17:18:32 +00:00
christos
abc81f7c5e use __unused instead of __USE and void cast to mark iterator variable unused
where needed (from phone)
2013-11-10 00:50:13 +00:00
uebayasi
8415bb8191 G/C struct user *proc0paddr. 2013-10-30 06:47:18 +00:00
christos
3c79246835 discard eh sections 2013-10-04 15:02:43 +00:00
skrll
48d64c44ce Adapt to usbmp. Compile tested only.
Did this ever work?
2013-09-22 08:30:22 +00:00
skrll
f05cdfd607 Remove trailing whitespace. 2013-09-22 07:26:42 +00:00
skrll
2a05a7460d Use C99 designated initializers. 2013-09-02 15:48:08 +00:00
matt
7b311c01b4 When decide to coalesce segments, if the d_cache isn't coherent also make
sure the VA is contiguous as well.
2013-08-23 07:15:08 +00:00
drochner
69aeb16c07 -extend the pcu(9) API by a function which saves all context on the
current CPU, and use it if a CPU is taken offline
-add a bool argument to pcu_discard which tells whether the internal
 "LWP has used the coprocessor" flag should be set or reset. The flag
 is reported by pcu_used_p(). If set, future accesses should use the
 state stored in the PCB. If reset, it should be reset to default.
 The former case is useful for setmcontext().
 With that, it should not be necessary anymore to manage the "FPU used"
 state by an additional MD variable.

approved by matt
2013-08-22 19:50:54 +00:00
matt
0d1919ebcb Use sy_invoke 2013-06-26 08:38:03 +00:00
christos
3be97503a9 add generic copyrights so FreeBSD can use them. 2013-05-23 21:39:49 +00:00
macallan
095356428f add definitions for Loongson 2F Chip Config register 2013-04-16 09:02:32 +00:00
christos
caafbf4e1b add missing SSIZE_MIN 2013-04-11 00:57:34 +00:00
christos
3f9b5ba889 Explicitly set KERN_AS (this could be done in /usr/src/sys/conf/Makefile.*)
so that modules work, on config files that did not set it explicitly. All
the files now use the standard logic, except the ones that set KERN_AS=obj
and Makefile.usermode which sets KERN_AS=library.
2013-03-10 07:18:19 +00:00
joerg
e240adbd0b Retire OSI network stack. OK core@ 2013-03-01 18:25:13 +00:00
macallan
adb2aeccbf add sysctl machdep.loongson-mmi to indicate wether Loongson Multimedia
Instructions are supported
mostly for pixman
2013-02-28 12:44:38 +00:00
matt
b885b904fc Define LDBL_IMPLICIT_NBIT 2013-02-14 08:56:21 +00:00
matt
f5242e7fdd Make LDBL_NBIT and mask_nbit_l have no effect. 2013-02-14 00:55:25 +00:00
christos
981fdd0a21 whitespace police 2013-01-30 02:48:22 +00:00
matt
e3604c46b6 Add two missing relocs and DT_MIPS_PLTGOT and DT_MIPS_RWPLT 2013-01-30 01:11:12 +00:00
matt
1961975a4e Update to use new pcu_state_{load,save,release} definitions 2012-12-26 19:17:48 +00:00
matt
54bde49e53 Fix typo 2012-12-26 19:15:16 +00:00
matt
1a174f95b9 Update to use new pcu_state_{load,save,release} definitions. 2012-12-26 19:09:07 +00:00
alnsn
9fa58a12c5 EVPMIPS -> MIPS in include guard. 2012-11-25 23:04:51 +00:00
alnsn
079dc4d907 Add sljitarch.h to all mips machines. 2012-11-25 21:55:50 +00:00
skrll
34800b5860 We need to jump out of two switches to emulate rdhwr rt,$29 correctly.
Only one would result in segv.

Fixes pthread apps on mips1. Tested using gxemul.
2012-11-01 22:15:25 +00:00
chs
cbab9cadce split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
2012-10-27 17:17:22 +00:00
matt
11561450f1 N32 uses dadd instructions to manipulate stack (actually, all ABIs except
O32 use dadd).
2012-09-12 15:09:49 +00:00
bouyer
9edd4d81c5 Apply back changes that were reverted on Jul 24 and Jul 26 (general ata/wdc
cleanup and SATA PMP support), now that I'm back to fix the fallouts.
2012-07-31 15:50:31 +00:00
jakllsch
102f7b2016 Revert, with intention of restoring in a less invasive way, the SATA Port
Multiplier code.

ok christos@
2012-07-26 20:49:44 +00:00
matt
0bc3200029 Fix mii_statchg to take a 'struct ifnet *' instead of device_t. This fixes
problem with a common MDIO bus used for multiple interfaces.
Some drivers converted to CFATTACL_DECL_NEW.
2012-07-22 14:32:49 +00:00
matt
09fca0b71e EHCI_USBINTR is 4 bytes long so use EOWRITE4 2012-07-20 02:14:01 +00:00
matt
466102b969 Change lockless segtab management to use a mutex for protection. Some minor
changes to make this closer to common/pmap/tlb/pmap_segtab.c
2012-07-05 17:21:02 +00:00
bouyer
03c9df05c6 Add sata Port MultiPlier (PMP) support to the ata bus layer,
as described in
http://mail-index.netbsd.org/tech-kern/2012/06/23/msg013442.html
PMP support in integrated to the atabus layer.
struct ata_channel's ch_drive[] is not dynamically allocated, and ch_ndrive
(renamed to ch_ndrives) closely reflects the size of the ch_drive[] array.
Add helper functions atabus_alloc_drives() and atabus_free_drives()
to manage ch_drive[]/ch_ndrives.
Add wdc_maxdrives to struct wdc_softc so that bus front-end can specify
how much drive they really support (master/slave or single).
ata_reset_drive() callback gains a uint32_t *sigp argument which,
when not NULL, will contain the signature of the device being reset.
While there, some cosmetic changes:
- added a drive_type enum to ata_drive_datas, and stop encoding the
  probed drive type in drive_flags (we were out of drive flags anyway).
- rename DRIVE_ATAPIST to DRIVE_ATAPIDSCW to better reflect what this
  really is
- remove ata_channel->ata_drives, it's redundant with the pointer in
  ata_drive_datas
- factor out the interpretation of SATA signatures in sata_interpet_sig()

propagate these changes to the ATA HBA drivers, and add support for PMP
to ahcisata(4) and siisata(4).

Thanks to:
- Protocase (http://www.protocase.com/) which provided a system
  with lots of controllers, SATA PMP and drive slots
- Conservation Genomics Laboratory, Department of Biology, New Mexico State
  University for hosting the above system
- Brook Milligan, who set up remote access and has been very responsive
  when SATA cable move was needed
2012-07-02 18:15:44 +00:00
kiyohara
51eeb5bd58 Fix can't assign IPv6 address. Valiable error resets to 0, if error == ENETRESET in aumac_ioctl(). 2012-06-07 00:19:29 +00:00
martin
6c3cc552c2 Calling _lwp_create() with a bogus ucontext could trigger a kernel
assertion failure (and thus a crash in DIAGNOSTIC kernels). Independently
discovered by YAMAMOTO Takashi and Joel Sing.

To avoid this, introduce a cpu_mcontext_validate() function and move all
sanity checks from cpu_setmcontext() there. Also untangle the netbsd32
compat mess slightly and add a cpu_mcontext32_validate() cousin there.

Add an exhaustive atf test case, based partly on code from Joel Sing.

Should finally fix the remaining open part of PR kern/43903.
2012-05-21 14:15:16 +00:00
kiyohara
1818db7635 Enable interrupt in aumac_init(). And disable in aumac_stop()/aumac_attach().
Interrupt storm happen if received packet and DMA not set.
2012-05-19 15:17:35 +00:00
christos
ac37e644bb - elide parameter tags
- make argument size_t as appropriate
- add begin/end decls
2012-03-29 21:20:08 +00:00
christos
7484a2dbbe - Normalize inclusion protection (remove)
- Move CHAR_{MIN,MAX} to a common file.
- Fix broken comments
2012-03-28 17:03:27 +00:00
nonaka
e8e2f240ee fix build failure on mipsel.
>/usr/src/lib/libc/gen/nlist_ecoff.c(112): warning: constant in conditional context [161]
2012-03-20 11:28:04 +00:00
matt
df5fea35ff Use unsigned int instead of int fo the fp* typedefs. 2012-03-19 22:24:07 +00:00
mrg
3ecaef1d4b pull down from usbmp branch:
- remove usbd_bus{} intr_context member, and replace the checks against
  it with cpu_intr_p() and cpu_softintr_p().
2012-03-11 00:34:45 +00:00
mrg
c42ab07995 normalise RCSID handling some. 2012-03-11 00:02:04 +00:00
matt
7563d7d666 remove safepri declaration since it's defined in kern_synch.c 2012-03-03 00:23:19 +00:00