Commit Graph

62695 Commits

Author SHA1 Message Date
christos
c7f0ba033b Account for the CRC len (Jean-Jacques.Puig) 2016-05-09 15:11:35 +00:00
maxv
f823c34f61 Define __rodata_start. Will be used soon. 2016-05-08 08:30:41 +00:00
maxv
900fb87538 Use killkpt for the PML4 entries as well. 2016-05-08 08:22:58 +00:00
skrll
856daf275d More options 2016-05-08 07:41:37 +00:00
maxv
15378864f6 clarify 2016-05-07 13:08:30 +00:00
maxv
0ceb789c1f Large pages are supported by default for the text+rodata segments. Apply
the proper alignment for the data segment, so that more pages can benefit
from it. Reduces TLB contention.

kern.ldscript.2MB and largepages.inc are useless.
2016-05-07 12:45:55 +00:00
maxv
9a4c721fbe clarify 2016-05-07 11:49:21 +00:00
rjs
9f696726de Fix config(1) errors and warnings.
Set up arm headers for the build.
2016-05-05 21:14:14 +00:00
palle
61aae0dd96 fill_ddb_regs_from_tf() now fetches Local and In registers as well. 2016-05-01 20:12:54 +00:00
palle
b699510a37 print_trapframe() should print out Local and In registers as well 2016-05-01 19:57:55 +00:00
palle
e4495390f5 Update TODO: booting from a ISO image on a sun4v system works 2016-05-01 19:41:01 +00:00
nonaka
8b5163f01f Added nvme(4) for Non-Volatile Memory Host Controller Interface devices.
Ported from OpenBSD.
2016-05-01 10:21:01 +00:00
ryo
3116614042 * fix checking physical address range. on some arm devices, physical memory doesn't start from 0x00000000.
* allow /dev/mem to read/write memory mapped I/O area depending on kauth.
2016-04-30 19:20:47 +00:00
skrll
c4de8a7181 Appease gcc - error: 'error' may be used uninitialized in this function 2016-04-30 15:09:25 +00:00
macallan
d5b3e25a62 cgfourteen needs glyphcache now 2016-04-30 05:24:45 +00:00
macallan
8c670e8bb1 support anti-aliased fonts, glyphcache etc. 2016-04-30 05:23:03 +00:00
macallan
d4cb83d843 sprinkle ()s in macros 2016-04-30 05:22:19 +00:00
christos
017adfc3ae Moved hack to ufs_lookup.c 2016-04-29 02:17:25 +00:00
mrg
2fd0ab6bd1 XXX: build ufs_lookup.c with -fno-tree-vrp when using GCC 5, for now. 2016-04-28 19:52:43 +00:00
skrll
9724d4d249 Fix build 2016-04-28 14:00:23 +00:00
msaitoh
4f683cafcd Add some bit definitions mainly taken from the latest Intel SDM:
- Add SGX, UMIP, RDPID and SGXLC.
 - Add avx512dq, avx512bw and avx512vl.
Fix the bit location of CLFLUSHOPT.
2016-04-27 08:51:32 +00:00
msaitoh
d0881811b7 Add new desc 0x64 and 0xc4. 2016-04-27 08:47:03 +00:00
msaitoh
5222935383 Take some changes from the Linux's latest x86/include/asm/cpufeatures.h.
- Add ptsc, avx512dq, avx512bw and avx512vl
 - Remove some Linux mappings.
2016-04-27 08:45:22 +00:00
skrll
fc07c4b795 Adapt to nick-nhusb merge 2016-04-26 09:24:57 +00:00
skrll
5ae569dc6f g/c usb_dma_reserve 2016-04-26 09:23:33 +00:00
skrll
a9413b6585 s/usbd_xfer_handle/struct usbd_xfer */ 2016-04-26 09:22:36 +00:00
bouyer
175648e95c Add a driver for the lradc device found in allwinner SoCs.
The events are reported as hotkeys press/release to sysmon_power(9).
The levels and associated event names are configured in the fex script
(the channels remain disabled if no appropriate fex script is provided).
2016-04-25 20:15:46 +00:00
kiyohara
ca97d89123 Check ChipID == OMAP3530. OVERO supports both OMAP3530/3503. 2016-04-25 13:20:42 +00:00
kiyohara
c5b37b8ad4 Add omapscm to critical_devs[]. 2016-04-25 13:17:16 +00:00
kiyohara
699a73d7cf Add function omap_chipid(). 2016-04-25 13:14:37 +00:00
kiyohara
40654b0c2b Print OMAP3 ChipID. 2016-04-25 13:07:03 +00:00
jakllsch
303c7edfa1 Put omapwdt32k(4) in known state (disarmed) on attach.
Some newer U-Boot builds for am335x_evm (BeagleBone) hand us the hardware
with an armed watchdog.
2016-04-23 17:05:30 +00:00
skrll
4e8e66439e Merge nick-nhusb
- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
    - kern/48308
    - uhub status notification improvements
    - umass(4) probe fix (applied to HEAD already)
    - ohci(4) short transfer fix
2016-04-23 10:15:27 +00:00
christos
8a7283ac4d undo unintended commit 2016-04-22 18:25:41 +00:00
christos
590700bc51 undo unintended commit 2016-04-22 18:13:42 +00:00
christos
ec8d3496ba Elide unused variable warnings (Felix Deichmann) 2016-04-22 18:13:01 +00:00
christos
19537c0f2f Use the right variable (Felix Deichmann) 2016-04-22 18:12:47 +00:00
macallan
b1ae921ac6 cgfourteen needs vcons 2016-04-21 18:27:29 +00:00
macallan
13f197f799 RASTERCONSOLE is no more 2016-04-21 17:59:18 +00:00
kiyohara
6bacadfe0b OVERO's .ub file includes release 2016-04-19 12:02:55 +00:00
palle
5254ca51fa Update sparc64 TODO file: note issue with interrupt handling + issue when booting from iso image 2016-04-17 19:54:32 +00:00
martin
c0a2d7e484 Move the SMP-disabled hack for SUN4V a bit earlier 2016-04-17 14:32:03 +00:00
martin
d6fc88e543 If compiling with SUN4V support, bump MAXCPUS to 256. 2016-04-15 20:29:13 +00:00
macallan
285788209b - purge long obsolete RASTERCONSOLE
- add mgx
2016-04-13 17:32:27 +00:00
riastradh
e0a6926ea4 Enable nouveau by default again in x86 GENERIC. 2016-04-13 15:26:27 +00:00
bouyer
ab971176ac Alternate UART3 pins a PG6-7, not PG8-9 2016-04-12 10:54:29 +00:00
bouyer
2f53f613b4 x86_lfence() calls mcount(), so inline lfence instructions in mcount
helper functions
2016-04-11 14:15:30 +00:00
bouyer
ca03f01a92 __cpu_simple_unlock() is called from _mcount(), so don't call mcount() from
__cpu_simple_unlock().
Kernel profiling should work again
2016-04-11 14:14:27 +00:00
christos
d9da07b963 We don't need TRAP_SIGDEBUG 2016-04-10 15:39:27 +00:00
christos
a9a4b283d5 - Turn on ASLR by default
- Add PAX_MPROTECT_DEBUG flag
2016-04-10 15:28:24 +00:00
palle
d0242aefce Rework locking mechanism introduced in rev. 1.21: use __cpu_simple_lock... instead of mutex_... since this causes issues when LOCKDEBUG is defined 2016-04-07 19:46:39 +00:00
macallan
06576a066a moar registers, less tpyos 2016-04-07 01:00:05 +00:00
mlelstv
234135ea24 Use symbolic constant. No functional change. 2016-04-03 11:04:14 +00:00
mlelstv
7b1a30890f Add more tags understood by the firmware. 2016-04-03 11:02:17 +00:00
mlelstv
d46fae17f1 Only fix up IPMI on ProLiant Microserver when address if set.
Don't assume a specific preconfigured address, just clear the lower bits.
2016-04-03 10:32:00 +00:00
martin
a182d9ea04 Add missing includes 2016-04-03 10:03:34 +00:00
martin
117132e6a6 Adopt to device_t/struct ifnet* changes 2016-04-03 10:03:04 +00:00
martin
9027300348 Use device_t/struct ifnet* for phy callbacks 2016-04-03 10:01:52 +00:00
martin
62078f8320 Fix bpf_mtap argument 2016-04-03 09:58:45 +00:00
martin
044276cb07 Convert # line comments to // line to avoid preprocessor confusion 2016-04-03 09:06:28 +00:00
skrll
b1ee8add7a PR/51017: VEXPRESS_A15 doesn't compile
Don't pretend to be anything other than A15
2016-04-02 08:48:35 +00:00
mlelstv
2232a82848 appease compiler. Fixes options MODULAR build. 2016-04-02 08:16:54 +00:00
palle
0059b91df1 sun4v: Workaround for OpenBoot feature where a 64-bit address is truncated to a 32-bit address. This happends when a write to the console (/virtual-devices@100/console@1) is done. Avoid this by using a static buffer that is mapped below 4GB. Thanks to Tarl Neustaedter for explaining how OpenBoot works. ok martin@ 2016-04-01 20:21:45 +00:00
kiyohara
118e184d7f Ensure enable clocks for omapmputmr. 2016-03-31 14:33:17 +00:00
christos
6952a2b793 PR/51016: David Binderman: comment out pointless code. 2016-03-30 21:16:22 +00:00
christos
40d9145b70 PR/51015: David Binderman: remove useless code 2016-03-30 21:14:54 +00:00
macallan
a3107e02e3 make sure we compile mips_fpu.c and fp.S with -mhard-float 2016-03-29 18:40:32 +00:00
martin
0213dfd655 Add missing include 2016-03-28 10:35:36 +00:00
martin
e002a1e12e Simplify now that we have an internal toolchain 2016-03-28 10:31:45 +00:00
martin
afad7c48d8 Restrict float format hacks to gcc 4.8 2016-03-28 08:10:57 +00:00
mrg
0fd71d0df7 add a normal kernel that builds with PAE enabled. this is not yet
hooked into the normal build, but this is a working configuration
and on my 16GB test system, works fine.
2016-03-27 05:14:14 +00:00
martin
0b2c20760e Do not touch FP register on softfloat kernels. 2016-03-26 17:40:02 +00:00
martin
0eb7da4d7a David Binderman in PR port-newsmips/51014:
Move initialization of remain_cnt up to the declaration.
XXX the #ifdef here does not make much sense to me, but I know nothing
about the hardware. I'd guess it could be removed or inverted and #error'd
instead.
2016-03-26 17:14:38 +00:00
martin
07a988af43 David Binderman in port-arm/51013: masking of rxbdtlen happened before
the value was read - move it down a few lines.
2016-03-26 17:04:03 +00:00
martin
c22389e399 Fix comment 2016-03-26 11:49:10 +00:00
skrll
dc4391d06a Restore HOST1X and AHB_A2 to pmap_devmap to give pmap less work to do 2016-03-26 09:07:31 +00:00
skrll
3e98a566a4 G/C old structs 2016-03-26 08:42:07 +00:00
nakayama
01ff6a8d1b Fix probably a typo. 2016-03-25 14:58:53 +00:00
shm
606dc45ebf Add support for clac and stac instructions. 2016-03-25 10:14:43 +00:00
mrg
4773cc203b avoid a GCC warning with this:
+#if defined(__GNUC__) && (__GNUC__ >= 5) && defined(__OPTIMIZE__)
+       x.fp_sign = 0;
+#endif

(ridiculous, but seems better than disabling the warning entirely.)
2016-03-23 05:25:51 +00:00
mrg
65f5251eae remove a bunch of "@echo done" from the tail of rules. these messages
were vaguely useful back when we didn't run make -j, but now you end
up with a single line "done" every so often, with no idea what it is
for.  very few other targets claim they're done so just remove these.
2016-03-22 08:25:22 +00:00
mrg
3495e41469 revert part of rev 1.66 that converted a tri-state variable into
a bool while leaving a comparision against "< 3".
2016-03-22 04:48:25 +00:00
gdt
af798e7b27 Disable uscanner in all kernel configs
As discussed on current-users@, SANE uses ugen via libusb and not
uscanner, so users are not well served by having uscanner.  Consensus
is that addressing how to adjust permissions for scanners should not
block restoring basic functionionality.

(Compile-tested only, but there are multiple reports of this being the
right approach.)
2016-03-19 23:21:02 +00:00
mrg
3ae3bff701 remove some dead code. 2016-03-19 20:57:48 +00:00
martin
a706a41168 Default kernel builds to USE_SSP=yes. 2016-03-19 18:50:25 +00:00
christos
a75799a386 Add PAX_SEGVGUARD disabled. 2016-03-16 16:13:16 +00:00
skrll
b4740b2a71 Update vcprop_tag_clockrate structure 2016-03-14 07:43:00 +00:00
christos
32829346f4 PR/50964: David Binderman: Avoid signed overflow warning 2016-03-13 17:59:20 +00:00
christos
72fae1ce63 Add NO variables for the things that boot block does not support
(SSP/PIE/DEBUG/FORTIFY)
2016-03-13 17:48:53 +00:00
christos
f415d76a88 PR/50963: David Binderman: Use kmem_zalloc() so all members are initialized. 2016-03-13 17:38:44 +00:00
tsutsui
af8b911cf4 TAB/space cleanup. 2016-03-13 08:57:10 +00:00
tsutsui
741896a7e0 Misc KNF and ANSIfy. 2016-03-13 08:54:45 +00:00
mrg
8872ffd0f4 remove some more GCC 4.5 code. make GCC 5.3 be HAVE_GCC=53, so that,
for example, HAVE_GCC >= 48 works properly.
2016-03-13 01:06:51 +00:00
dholland
32cef18b87 Remove unused variable, found by gcc. 2016-03-12 02:17:05 +00:00
dholland
a9e4e98629 Fix syntax error in previous. Hi christos :-)
(PR 50944)
2016-03-12 02:15:50 +00:00
dholland
88c859a1fb Refine previous so the output is all hex again. followup to PR 50942 2016-03-12 02:13:35 +00:00
jklos
7f15b0acd9 Add kernel configuration file for PogoPlug Pink, PogoPlug Mobile and
PogoPlug v4. Add conditional because PogoPlug v4 can't run SD interface at
50 MHz.
2016-03-12 00:41:30 +00:00
christos
c01666f5da PR/50945: David Binderman: sprinkle parens 2016-03-11 18:31:03 +00:00
christos
c5bd235187 PR/50944: David Binderman: sprinkle parens 2016-03-11 18:29:48 +00:00
christos
a1148110d4 PR/50942: David Binderman: fix printf format 2016-03-11 18:27:37 +00:00