Commit Graph

4871 Commits

Author SHA1 Message Date
mrg
4141b17a9c remove local lwp_eprio() definition that broke the clang build. 2016-12-14 18:50:56 +00:00
christos
ef2deb33e0 wildcard speaker attachments, now that we can handle many of them. 2016-12-13 20:42:15 +00:00
christos
2437894b76 catch up with sd changes. 2016-12-11 16:25:54 +00:00
christos
219b8dae14 remove VAUDIOSPEAKER for now, will be done differently. 2016-12-10 23:03:22 +00:00
mrg
3f687061b6 rearrange slightly to enable crash(8) to build. 2016-12-10 10:41:07 +00:00
mrg
d141926363 move struct cpu_info and xpmsg into <machine/cpu.h> from
<sparc/sparc/cpuvar.h>.  this enables them for crash(8)
and this seems more natural to me anyway.
2016-12-10 09:51:43 +00:00
mrg
5f63d1b28b revert the previous. sparc has no spkr. 2016-12-10 09:44:06 +00:00
nat
03783bb56a Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
2016-12-08 11:31:08 +00:00
christos
23623c849a struct cpu_info is varible size when page_size is not fixed. 2016-12-03 16:00:10 +00:00
christos
c0404860d1 mention PAX_SEGVGUARD dependency on FILEASSOC 2016-11-26 13:59:45 +00:00
christos
1394df1c79 cast to register_t because not all 'struct reg' members are the right type. 2016-11-25 14:10:31 +00:00
macallan
2ee28d152e fix remaining *_TSB_DATA() uses 2016-11-04 20:04:11 +00:00
joerg
6c825a13b7 Macros expanding to defined() expression is not actually correct ISO C
behavior. Since it is not clear whether someone might decide to define
the macros to random non-1 values, introduce a level of indirection and
count the same of the helper macros.
2016-10-08 20:30:54 +00:00
christos
6ca166beb3 deal with PIE and SSP 2016-10-01 13:57:44 +00:00
macallan
f2615f2d9a wipe glyph cache as needed when re-entering text mode
now the console is readable again when leaving X
2016-09-16 22:39:35 +00:00
martin
d48a59cf7a Init the markers array to all 0 - pointed out by Mark Cave-Ayland. 2016-08-31 16:24:34 +00:00
maxv
51cfb529ee Return zero instead of error, otherwise it looks like it is supposed to
return an error; found by brainy.
2016-08-15 08:43:19 +00:00
maxv
eebd41a9d2 Uninitialized var, found by brainy; not tested, but obvious enough 2016-08-15 08:24:05 +00:00
msaitoh
8bc54e5be6 KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
dholland
2357cddab4 PR 51200 gets in libsa considered harmful: use kgets 2016-06-11 06:38:50 +00:00
macallan
602c62148b use DEFATTR if we're not the console and can't init defattr.
should appease clang
TODO: we should really init the glyphcache whith the first screen
2016-06-02 21:19:24 +00:00
martin
cc645bf7b4 David Binderman in PR port-sparc/51188: simplify while condition 2016-05-30 10:37:14 +00:00
nakayama
0350baf089 Adapt to new sljit. 2016-05-30 09:05:32 +00:00
christos
7b6e3dab7a We don't want PIE! 2016-05-19 15:41:18 +00:00
nakayama
da6c94469a Fix (unused) pstate mask bits in tstate and comment. 2016-05-18 07:59:30 +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
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
macallan
285788209b - purge long obsolete RASTERCONSOLE
- add mgx
2016-04-13 17:32:27 +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
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
martin
b7bf6f19af Strip debug symbols from boot code 2016-03-10 20:23:35 +00:00
martin
8d92fc86f0 Deal with _edata not being 4-byte aligned 2016-03-10 20:22:52 +00:00
martin
032d514f64 Add a few includes of bsd.own.mk to avoid broken test conditions
on ACTIVE_CC - this might not be the correct fix for PR 50930,
but it avoids the issue.
2016-03-10 09:00:24 +00:00
joerg
a8ff50921f Ignore unused arguments for clang as we pass assembler flags and the
like to the preprocessor-only mode. Conditionalize GCC flags that are
not known to clang accordingly.
2016-02-27 19:26:13 +00:00
joerg
e5174fc3b5 When building with clang, optimise for minimal size and skip frame
pointers when possible.
2016-02-27 19:25:08 +00:00
christos
d84c286204 expose the kernel types for standalone code. 2016-01-23 22:31:19 +00:00
christos
4d497c90e6 Hide {p,v}{addr,size}_t and register_t (and a couple more types that
are machine-specific) from userland unless _KERNEL/_KMEMUSER and a
new _KERNTYPES variables is defined. The _KERNTYPES should be fixed
for many subsystems that should not be using it (rump)...
2016-01-23 21:22:13 +00:00
christos
dbccff005f PR/50516: David Binderman: Add missing breaks 2015-12-13 19:49:34 +00:00
macallan
67f9b9131c || -> &&
From PR50534
2015-12-11 19:47:52 +00:00
mlelstv
ad7d3c2070 PR 50516 bad switch case 2015-12-11 08:08:01 +00:00
joerg
079b557452 Don't use dynamically sized unions, they are a horrible GNUism. Just use
the existing upper limit all the time.
2015-11-27 16:52:32 +00:00
joerg
b5e21344a8 Remove shifts of the PSR constants before applying to the trap frame.
Oring 0 doesn't do anything useful.
2015-11-27 13:45:17 +00:00
mrg
559b2abb6d force -mcpu=v9 for ofwboot, which demands v9 cpus. 2015-10-26 07:11:33 +00:00
martin
20dddba056 Add compile time asserts to make sure we have properly picked up types
for a 64bit cpu and 64bit openfirmware.
2015-10-10 06:50:25 +00:00
martin
01cb3be7ca Simplify, get rid of manual _LP64 define.
Do not pass a SUN4U define, as that is no longer used in the relevant headers.
Instead tell the compiler we are compiling for a v9 CPU (so it internally
defines everything we need).
2015-10-10 06:49:40 +00:00
joerg
2ccf9a9aba Don't check if an array is (not) NULL, check if the string is empty. 2015-10-08 20:58:13 +00:00
martin
27d8dabc37 Do not use #ifdef SUN4U when testing for cpu features of post-v8 CPUs,
it is not good for SUN4V-only kernels. Instead use __sparc_v9__ (which
is also defined by the sparc compiler when called with cpu=ultrasparc).
ok: mrg@
2015-10-06 20:03:05 +00:00