nonaka
b1c9a8a10f
Fix compile failure on i386 with PAE.
2017-01-26 01:35:51 +00:00
nonaka
d13f498989
Initial commit of native amd64 EFI boot loader.
2017-01-24 11:09:14 +00:00
christos
2c6c283644
PR/51908: Kyle Amon: Allow customization of XEN kernels via .local files.
2017-01-23 17:35:34 +00:00
maxv
e15fe82cac
Use xpmap_pg_nx. Not tested (due to some unrelated panic I'm getting), but
...
obvious enough.
2017-01-22 20:17:10 +00:00
maxv
f126f71f90
Put pmap_pg_nx into the dummy Xen page. While here, do some KNF and
...
localify a bit.
2017-01-22 20:04:35 +00:00
maxv
4d2995d98f
Import xpmap_pg_nx, and put it in the per-cpu recursive slot on amd64.
2017-01-22 19:42:48 +00:00
maxv
14f8c1a9b1
Export xpmap_pg_nx, and put it in the page table pages. It does not change
...
anything, since Xen removes the X bit on these; but it is better for
consistency.
2017-01-22 19:24:51 +00:00
jakllsch
6b21f5b784
Add TEGRA_EHCI_PHY_VBUS_WAKEUP_ID_REG and bit definitions.
2017-01-22 17:46:20 +00:00
jakllsch
65f3afca08
Add some SMMU registers and bit definitions.
2017-01-22 17:43:23 +00:00
jakllsch
8e88e626a1
Whitespace adjustment.
2017-01-22 17:40:06 +00:00
jakllsch
e80cc4d230
Define bits in CAR_PLLP_OUTA_REG.
2017-01-22 17:39:18 +00:00
jakllsch
549138ace2
Call OF to bring up the CyberPro if it's not the console.
...
Avoids igsfb crash later with serial console due to
inaccessible hardware.
2017-01-22 17:27:31 +00:00
christos
bafac785ec
PR/51905: GXIO Expension boards arn't configured if GXIO_DEFAULT_EXPANSION
...
isn't defined. Fix a bunch of issues with the original code.
2017-01-22 17:19:32 +00:00
skrll
9b566f7a87
Pull across from nick-nhusb. This really should be fixed to use the
...
appropriate FDT info. At this point this is more likely to get fixed in
HEAD than on the branch.
2017-01-21 15:41:55 +00:00
maya
15149c9a42
increase max io mem on amd64. some devices need it.
2017-01-20 00:29:28 +00:00
macallan
a54bdd15c3
be more specific when identifying SuperSPARC CPUs
2017-01-18 21:33:25 +00:00
kamil
a9f3841b89
Fix bug with swapped event type and register that fired in hw watchpoints
...
Swap bits for DR_EVENT_MASK and DR_REGISTER_MASK.
Sponsored by <The NetBSD Foundation>
2017-01-18 12:15:21 +00:00
kamil
c8f1c6f9bd
Remove assert that Debug Registers are not mixed with Debug Trap Flag
...
New code is designed to mix them.
Sponsored by <The NetBSD Foundation>
2017-01-18 05:48:16 +00:00
kamil
ec5d7d9cb0
Embed hardware trap and its type that fired (x86), information for tracers
...
Now x86 throws SIGTRAP on hardware exception with:
- si_code TRAP_HWWPT - dedicated for hw assisted watchpoint interface
- si_trap - unchanged (T_TRCTRAP)
- si_trap2 - watchpoint number that fired
- si_trap3 - watchpoint specific event description
x86 returns in si_trap3 one of the field from <x86/dbregs.h>
- X86_HW_WATCHPOINT_EVENT_FIRED - watchpoint fired
- X86_HW_WATCHPOINT_EVENT_FIRED_AND_SSTEP - watchpoint fired under PT_STEP
Othe changes:
- restrict more code from <x86/dbregs.h> to _KERNEL
Sponsored bt <The NetBSD Foundation>
2017-01-18 05:11:59 +00:00
rin
e74052dd12
avoid conversion warnings
2017-01-17 11:09:36 +00:00
rin
b31d312c15
remove unnecessary cast, KNF
2017-01-17 11:08:50 +00:00
kamil
4e1719ea5b
Refactor ptrace_watchpoint structure to allow extensions
...
Add new field pw_type in the ptrace_watchpoint structure.
amd64 and i386 offer the current set of watchpoints as
PTRACE_PW_TYPE_DBREGS.
On other archs than x86, there are readily available different types of
hardware assisted watchpoints like for code-only or data-only registers on
ARM. Also in future there is an option to implement MMU-based watchpoints
and future per-port or per-cpu extensions.
Next step is to alter this interface on x86 to generate SIGTRAP with
si_code TRAP_HWWTRAP with additional information on occurred event:
- which watchpoint fired,
- additional watchpoint-type specific information, like on amd64 with
PTRACE_PW_TYPE_DBREGS.:
* only watchpoint fired
* watchpoint fired and single step occurred
Adjust ATF tests for the pw_type change.
Sponsored by <The NetBSD Foundation>
2017-01-16 21:35:59 +00:00
kamil
9af7d0e4dc
Allow to mix single-step with hardware assisted watchpoints on amd64
...
This case needs new handling in trap recognition.
Sponsored by <The NetBSD Foundation>
2017-01-16 21:19:35 +00:00
kamil
fb28c5a53a
Allow to mix single-step with hardware assisted watchpoints on i386
...
This case needs new handling in trap recognition.
Sponsored by <The NetBSD Foundation>
2017-01-16 21:19:14 +00:00
isaki
83856daa0e
FSINCOS: Fix register address which writes cosine value back.
2017-01-16 12:05:40 +00:00
maya
71271aa82c
Correct definitions for TCR.
...
Values from ARM Cortex A-53 MPCore Processor Technical Reference Manual
4.3.48. Translation Control Register, EL1
2017-01-16 10:15:42 +00:00
christos
74c01bd5e3
undo paren change
2017-01-15 18:03:12 +00:00
christos
58716ac1f5
more types for constants
2017-01-15 15:27:41 +00:00
isaki
57a2dd587d
exp(>11356) is +inf even if extended precision.
...
exp(<-11401) is 0 even if extended precision.
2017-01-15 11:56:11 +00:00
christos
b4cc495b2a
protect against multiple inclusion.
2017-01-14 22:24:43 +00:00
christos
4580c9c1dc
Undo; the correct fix was applied in csu/arch/alpha/crtbegin.h
2017-01-14 21:58:17 +00:00
christos
48ad5593f8
there is no <string.h> in standalone code; should be getting strcpy from
...
libkern.
2017-01-14 21:57:20 +00:00
christos
e06c26e434
belatedly fix constants for ppc64 (this does not define __arch64__ like sparc
...
does?)
2017-01-14 21:33:09 +00:00
martin
1ed40762bd
Avoid gcc warnings
2017-01-14 17:14:23 +00:00
christos
1990f7e47c
cast return value
2017-01-14 16:21:28 +00:00
martin
d8e142070e
Avoid stupid gcc redefinition warnings by #undef before redefine.
2017-01-14 16:15:10 +00:00
christos
c22e861866
define empty bodies for incomplete implementations
2017-01-14 16:12:51 +00:00
christos
6802e8e0b8
remove dup definitions
2017-01-14 16:07:53 +00:00
christos
21ad29ec97
fix constant types
2017-01-14 15:58:11 +00:00
martin
56f34142db
Include <string.h> for strcpy
2017-01-14 12:45:28 +00:00
martin
840c51e6d0
Make the copies of the FE_* macros match verbatim to avoid a gcc warning
...
when both ieeefp.h and fenv.h are included.
2017-01-14 12:00:13 +00:00
christos
1edda79a21
fix types.
2017-01-14 00:35:37 +00:00
macallan
4b66d9e2f9
add SX_STBM ( STore Byte Masked ) instruction
2017-01-13 21:49:46 +00:00
christos
223f5b4030
this was fine before...
2017-01-13 19:53:10 +00:00
maya
a51c443745
replace old style declaration
2017-01-13 19:33:10 +00:00
christos
ddcad3a9e1
elide conversion warning.
2017-01-13 19:30:38 +00:00
christos
0905c6150f
making this use mips assembly is a good start!
2017-01-13 19:10:14 +00:00
christos
9d4c7048f5
Add missing forward decl.
2017-01-13 05:26:42 +00:00
joerg
3ddb200518
Remove some manual size tuning that no longer seems to be needed.
2017-01-12 22:16:29 +00:00
isaki
e9bbb736c5
Fix the possibility of off-by-one on the grammer. Reported by coypu.
...
Currently it never happens because type is (minor number % 7) and
the arraycount of fd_types[] is 8. I.e., it is a dead code...
However, when the capacity of the FDTYPE() changes or the arraycount
of fd_types[] changes, this correction will be effective.
2017-01-12 14:24:53 +00:00
ryo
5df7357f26
white space police
2017-01-12 05:24:36 +00:00
maya
8f95888833
fix off by one.
...
ok riastradh
2017-01-12 01:12:08 +00:00
maya
ca086e0f97
also fix this other off by one.
2017-01-11 19:42:02 +00:00
maya
7920d5fd26
fix off by one.
...
ok riastradh
2017-01-11 19:32:25 +00:00
christos
2ca7f46c7a
need <sys/stat.h>
2017-01-11 18:32:48 +00:00
christos
edd2c34241
PR/51827: David Binderman: delete pointless local variable
2017-01-11 18:19:29 +00:00
joerg
9d57ec4a6c
Don't cast the result of abs() to int, but the argument.
2017-01-11 12:14:32 +00:00
maya
f4f4101902
we cannot guarantee that m_pulldown doesn't fail, as it may fail even
...
if temporarily out of memory, and it will free the mbuf in this scenario.
test for failure and return error if it happens.
CID 1396651
ok riastradh
2017-01-11 00:55:57 +00:00
maya
c4842130d0
on error, free the mbuf in vmxnet3_txq_offload_ctx, not in callers.
...
ok riastradh
2017-01-11 00:51:22 +00:00
maya
87da0b3520
GC unused macros.
...
Even if they were used (and actually asserted), asserting on !mutex_owned
is generally a bad idea, as it may be true in unexpected contexts.
suggested by riastradh, thanks.
2017-01-11 00:41:38 +00:00
cherry
94ed870bbb
While reserving memory at boot time via uvm_physseg_unplug(9),
...
in the case of a disappearing segment (due to a segment sized msgbuf)
make sure segment offsets are read off before the segment disappears.
This should fix some of the recent boot time hard resets reported on
i386 recently.
Thanks to kre@ for pointing this out to me.
CVS: ----------------------------------------------------------------------
CVS: CVSROOT cvs.NetBSD.org:/cvsroot
CVS: please use "PR category/123" to have the commitmsg appended to PR 123
CVS:
CVS: Please evaluate your changes and consider the following.
CVS: Abort checkin if you answer no.
CVS: => For all changes:
CVS: Do the changed files compile?
CVS: Has the change been tested?
CVS: => If you are not completely familiar with the changed components:
CVS: Has the change been posted for review?
CVS: Have you allowed enough time for feedback?
CVS: => If the change is major:
CVS: => If the change adds files to, or removes files from $DESTDIR:
CVS: => If you are changing a library or kernel interface:
CVS: Have you successfully run "./build.sh release"?
2017-01-10 09:48:22 +00:00
kiyohara
2a818bb78e
Remove no-need #ifdef MARVELL_ATTR_AXI_DDR. It has defined.
2017-01-09 14:15:20 +00:00
martin
8378610c2b
Do not use kmem_zalloc() to allocate an FP state - we have a special pool
...
for that.
2017-01-09 12:24:38 +00:00
tsutsui
d9cc465bd0
Consistently use sc_shm_size initialized at device attach.
2017-01-08 16:41:35 +00:00
tsutsui
75dcc607e6
Fix (mostly harmless) off-by-one size check in XPIOCDOWNLD ioctl.
...
Pointed out by Kenji Aoyama.
2017-01-08 16:34:44 +00:00
christos
b0642a4b8a
remove dup DIAGNOSTIC
2017-01-08 05:11:24 +00:00
christos
3c6522a12a
need this for the build
2017-01-08 05:11:13 +00:00
christos
d164900dd0
fix typo
2017-01-08 05:05:27 +00:00
christos
37dcb46237
Limit number of words we read..
2017-01-08 05:04:45 +00:00
christos
2a18a44e7d
make this compile (but not work) XXX
2017-01-07 21:12:42 +00:00
palle
f7af29bd85
sun4v: slowtrap() now selects normal globals properly on both sun4u and sun4v platforms. Verified using qemu for both sun4u and sun4v systems
2017-01-07 20:19:09 +00:00
christos
544707338c
include <sys/sigtypes.h> for sigset_t
2017-01-07 19:04:24 +00:00
kiyohara
af4278a708
Support SolidRun Cubox.
2017-01-07 16:24:07 +00:00
kiyohara
a4c1b5d6be
Add support Marvell Dove.
...
Also <SoC>_intr_bootstrap() rename to <SoC>_bootstrap(). And SoC init func, getclk into that.
2017-01-07 16:19:28 +00:00
kiyohara
f90797dec1
Add register macros.
...
And reorder registers.
Also remove white-spaces.
2017-01-07 15:47:33 +00:00
kiyohara
7131810470
Add a white-space into comment and `*/'.
2017-01-07 15:22:11 +00:00
kiyohara
5e85b3229d
Change to a tab from white-spaces.
2017-01-07 15:14:20 +00:00
flxd
4d851b02e9
Add wsmux so wsconsctl will not fail when -f is not specified (and default
...
control devices are used), as in /etc/rc.d/wscons.
Kernel size increase is < 4 kB.
2017-01-07 11:21:05 +00:00
skrll
5dc9a27fcf
Use the VC property mailbox to request the UART clock rate and use it
...
appropriately
Newer firmwares use 48MHz
2017-01-06 14:55:37 +00:00
skrll
7ed3f784bc
Whitespace
2017-01-06 14:53:32 +00:00
maxv
ad05649fb8
Rename a few things
2017-01-06 09:04:06 +00:00
maxv
c6005684fd
Explain the computation
2017-01-06 08:36:56 +00:00
maxv
2b321a2d23
Remove a few #if 0s, and explain what we are doing on PAE: the last two PAs
...
are entered in reversed order.
2017-01-06 08:32:26 +00:00
palle
de85b4614f
sun4v: TRAP_SETUP() updated to set mmu context id properly for both sun4v and sun4u platforms. Verified using qemu for both sun4u and sun4v systems
2017-01-05 20:37:06 +00:00
msaitoh
01159c64ed
Update the dmamp argument only when the allocation succeeded.
2017-01-05 09:08:44 +00:00
palle
474386fffd
sun4v: make debugging kernel bringup a bit easier by using the slowtrap code path for currently unhandled trap level 1 trap entries 0x00-0x23 and 0x28-0x30
2017-01-04 20:19:29 +00:00
skrll
0447572560
Do some more error checking.
...
PR/51551
2017-01-03 12:37:08 +00:00
skrll
6f64034815
Fix boot on Gumstix Verdex boards.
...
Reported by smesgr on port-arm
2017-01-02 21:46:59 +00:00
sevan
34d20af6e2
Enable axen, cdce, run, upgt, urtw, urtwn, uchcom, uslsa, u3ginit, u3g, ugensa in the GENERIC kernel.
...
Adjust some comments to match those of sys/arch/i386/conf/GENERIC
2017-01-02 03:22:30 +00:00
christos
374cbfdd94
Add commented out TCP_SIGNATURE
2016-12-31 15:41:39 +00:00
christos
19a4314eb2
- make fpreg{32,64} actually members of fsstate{32,64}.
...
- allocate fpstate if we did not have one and we need to write it.
2016-12-30 18:30:19 +00:00
christos
81784756dc
- allocate state if we did not have any in fpregs
...
- make fpstate explicitly start with fpregs for better type checking
- use c11 initializers
2016-12-30 17:54:43 +00:00
rin
4b1563e174
catch up with physmem type change (in the same manner as sdp24xx_machdep.c)
2016-12-30 07:35:14 +00:00
palle
b6230d7a65
sun4v: make debugging kernel bringup a bit easier by using the slowtrap code path for currently unhandled trap level 1 trap entries 0x32-0x7f
2016-12-29 20:59:31 +00:00
skrll
3ea5cf87f0
Bump image size
2016-12-29 20:51:26 +00:00
rin
653055d5bf
define UVM_PHYSSEG_LEGACY for uvm_physseg_set_avail_start
...
ok cherry
2016-12-29 12:54:10 +00:00
tsutsui
240be73e18
WIP "G1-ATA" IDE HDD support. Not enabled by default.
...
Demonstrated on NetBSD booth at Open Source Conference 2016 Tokyo Fall
and Kansai Open Source 2016:
http://mail-index.netbsd.org/netbsd-advocacy/2016/11/09/msg000721.html
http://mail-index.netbsd.org/netbsd-advocacy/2016/11/16/msg000722.html
See my port-dreamcast@ post for more details:
http://mail-index.netbsd.org/port-dreamcast/2016/12/18/msg000295.html
2016-12-29 11:49:05 +00:00
martin
48fa3befb2
Rename the "flush" macro to "sparc_flush_icache", the former is way too
...
generic for a macro name.
2016-12-28 19:16:25 +00:00
rin
011775c944
PR port-powerpc/51368: powerpc FPU emulation fails for single precision
...
floating point arithmetic
For single precision instruction, calculate first in double precision,
and then round it. With this fix, single precision arithmetic gets sane
on ibm4xx and booke.
Taken from FreeBSD commit r258250:
https://svnweb.freebsd.org/base?view=revision&revision=258250
Ok matt and simonb.
2016-12-28 10:52:30 +00:00
rin
0b5b7fff16
- add missing default from FreeBSD
...
- remove duplicate panic pointed out by matt
2016-12-28 10:30:04 +00:00