49672 Commits

Author SHA1 Message Date
Gerasim Troeglazov
b43bd42518 PSDTranslator: DataArray class improvements 2013-12-20 09:19:50 +00:00
Gerasim Troeglazov
10b179b33d PSDTranslator: Fix index of alpha channel 2013-12-20 09:04:30 +00:00
Pawel Dziepak
9116eec24c scheduler: Allow calling UpdatePriority() for disabled CPU 2013-12-20 05:40:59 +01:00
Pawel Dziepak
b4552fcf9b x86: Remove debug message 2013-12-20 05:40:59 +01:00
Pawel Dziepak
73363f8dde kernel/vm: Fix unsigned/signed comparison warning 2013-12-20 05:40:59 +01:00
Pawel Dziepak
c08ed2db65 scheduler: Try to keep thread on the same logical CPU
Some SMT implementations (e.g. recent AMD microarchitectures) have
separate L1d cache for each SMT thread (which AMD decides to call "cores").
This means that we shouldn't move threads to another logical processor too
often even if it belongs to the same core. We aren't very strict about
this as it would complicate load balancing, but we try to reduce unnecessary
migrations.
2013-12-20 03:36:01 +01:00
Pawel Dziepak
ad6b9a1df8 scheduler: Use sequential locks instead of atomic 64 bit access 2013-12-20 02:18:44 +01:00
Pawel Dziepak
b258298c70 kernel: Protect cpu_ent::active_time with sequential lock
atomic_{get, set}64() are problematic on architectures without 64 bit
compare and swap.
Also, using sequential lock instead of atomic access ensures that
any reads from cpu_ent::active_time won't require any writes to shared
memory.
2013-12-20 01:31:32 +01:00
Pawel Dziepak
6639514437 x86[_64]: Support assigning MSI IRQs to arbitrary CPU 2013-12-20 01:07:08 +01:00
Pawel Dziepak
caf1b0dffb intel_cstates: Computing C-state requires constant time step 2013-12-19 20:47:22 +01:00
Pawel Dziepak
3add52e8ba kernel: Fix topology node count being decreased twice per node 2013-12-19 20:24:34 +01:00
Pawel Dziepak
e3d001ff02 x86: Implement multicast ICIs 2013-12-19 19:35:44 +01:00
Stephan Aßmus
0ff602f52a Fixed typo in comment hrev46567 2013-12-19 14:56:18 +01:00
Jonathan Schleifer
0485942c82 gitignore: Ignore NFC vs NFD on OS X. hrev46566 2013-12-19 13:33:56 +01:00
Gerasim Troeglazov
5a65c29781 PSDTranslator: Add RLE compression method for export hrev46565 2013-12-19 12:21:16 +00:00
Gerasim Troeglazov
7983058de3 PSDTranslator: Rework export module 2013-12-19 12:21:15 +00:00
Gerasim Troeglazov
e3ec312ebf PSDTranslator: Implemented DataArray class for export improvements 2013-12-19 12:21:13 +00:00
Jonathan Schleifer
bd50e8aedb Get rid of a workaround; building with Clang works now. hrev46564 2013-12-19 12:57:20 +01:00
Alexander von Gluck IV
1665250fa7 radeon_hd: crtc_memreq only on DCE 3 - 5
* Prevent some atombios missing table errors
  on DCE 6 and later
hrev46563
2013-12-19 01:19:31 -06:00
Alexander von Gluck IV
92f91bc8da radeon_hd: Update DisplayPort aux for DCE6
* DCE6 requires a non-0 value for lpAuxRequest
  (0 is reserved)
2013-12-19 01:19:31 -06:00
Alexander von Gluck IV
233507b3cd radeon_hd: Missed a % for a B_PRI 2013-12-19 01:19:31 -06:00
Rene Gollent
d3a119a2b4 x86_64: Update haikuwebkit to 1.2.1 and add/update...
various dependent packages.
hrev46562
2013-12-18 22:59:53 -05:00
Rene Gollent
ac8612008b Update x86_64 Vision package.
Fixes #10317.
hrev46561
2013-12-18 20:58:51 -05:00
Jonathan Schleifer
fc5dbdc92c Get rid of an error caused by -Werror=unused-function.
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
hrev46560
2013-12-19 02:07:21 +01:00
Jonathan Schleifer
f5a47df37d Fix the agg headers to be proper C++.
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
hrev46559
2013-12-19 02:00:44 +01:00
Jonathan Schleifer
e3e0255008 rootfs.cpp: Replace undefined behaviour with offsetof.
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
hrev46558
2013-12-19 01:52:33 +01:00
Jonathan Schleifer
c7cb9b2f59 delete_driver_settings.cpp: Get rid of the weak alias.
As weak aliases are not supported on OS X, this caused problems when
building Haiku on OS X, as this file is also used for the host tools.

Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2013-12-19 01:52:33 +01:00
Murai Takashi
44d352cdb1 Fix DebugServer build with GCC4.8
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
hrev46557
2013-12-19 01:42:28 +01:00
Gerasim Troeglazov
63b8eb480e PSDTranslator: Fix array size hrev46556 2013-12-18 09:56:11 +00:00
Gerasim Troeglazov
af6518e48e PSDTranslator: Code cleanup. No functional change hrev46555 2013-12-18 09:36:44 +00:00
Gerasim Troeglazov
aae30e0ec9 PSDTranslator: Fix bitmap block alignment hrev46554 2013-12-18 09:06:17 +00:00
Gerasim Troeglazov
a38a6547d7 PSDTranslator: Codestyle cleanup 2013-12-18 08:58:12 +00:00
Alexander von Gluck IV
857bfe579b DisplayPort: Dump linkspeed value on error hrev46553 2013-12-18 00:30:58 -06:00
Alexander von Gluck IV
bd1c4402bf radeon_hd: Improve DisplayPort function return logic
* Was putting status_t into int's and creating
  some logic problems when it came to DisplayPort
  link training.
hrev46552
2013-12-17 17:34:11 -06:00
Pawel Dziepak
5a7289d720 scheduler: Fix unassigning threads from core being disabled 2013-12-18 00:03:56 +01:00
Pawel Dziepak
1b06228f13 kernel: Propagate scheduler modes to cpu{freq, idle} modules 2013-12-17 23:26:37 +01:00
Pawel Dziepak
4fcbac58de kernel: Make get_cpu_topology() return a pointer to const
The client code is not supposed to change the topology info.
It would be also nice if cpu_topology_node::children was an array of
pointers to const but that would require several const_casts in the
topology tree generation code so it's probably not worth it.
2013-12-17 22:08:18 +01:00
Jonathan Schleifer
77ac2d8d8d SnifferRules.cpp: Make the arguments for operator< const.
It is used on const versions of sniffer_rule and thus it needs to be
declared with const.
hrev46551
2013-12-17 19:58:57 +01:00
Jonathan Schleifer
6a2d12cbee PackageInfoParser.cpp: Add missing include for strtoll. 2013-12-17 19:58:55 +01:00
Jonathan Schleifer
17fe3f8106 BPlusTree.h: Remove invalid forward declaration.
That forward declaration was actually a backward declaration, as
system_dependencies.h already included Stack.
2013-12-17 19:58:54 +01:00
Jonathan Schleifer
724947ebca HashSet.h: Replace whatever that was with proper C++ 2013-12-17 19:58:52 +01:00
Jonathan Schleifer
a7d796e232 Only declare strl{cpy,cat} if they aren't defines.
On some system (e.g. OS X Mavericks), those are defines to compiler
built-ins, thus trying to declare them will fail.
2013-12-17 19:58:51 +01:00
Murai Takashi
70b978fd9f Fix the build with GCC4.8
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
hrev46550
2013-12-17 18:01:44 +01:00
Gerasim Troeglazov
3459199e5d PSDTranslator: Add export to psd support (uncompressed only) hrev46549 2013-12-17 12:27:47 +00:00
John Scipione
cf9414ff69 Convert coords of B_MOUSE_IDLE in _SanitizeMessage()
When BWindow receives a message in screen coordinates and the
message has a target view, as it does when the message comes from
App Server, convert the coordinates to view coordinates before
passing the message along.

Revert the portion of hrev46532 where BView converts screen
coordinates and converts them since that happens in
BWindow::_SanatizeMessage() now.
hrev46548
2013-12-16 23:26:57 -05:00
John Scipione
19360a8c07 BWindow: Style fix, 80 char limit. 2013-12-16 22:52:31 -05:00
Pawel Dziepak
735f67481f x86: Debugger can now use dr3 2013-12-17 04:31:29 +01:00
Pawel Dziepak
a5b070f1fa x86: Store pointer to the current thread in gs:0
Apparently, reading from dr3 is slower than reading from memory
with cache hit.

Also, depending on hypervisor configuration, accessing dr3 may cause
a VM exit (and, at least on kvm, it does), what makes it much slower
than a memory access even when there is a cache miss.
2013-12-17 04:08:51 +01:00
Pawel Dziepak
611376fef7 x86: Let each CPU have its own GDT 2013-12-17 03:57:20 +01:00
Rene Gollent
1b744548e0 debug_server: Add default action support.
- debug_server now supports user configuration of both the general default
action to be taken on crashes, and per-app overrides. These are stored
config/settings/system/debug_server/settings. In the absence of the file,
behavior defaults to prompting the user for an action as before.

The file takes on a driver_settings style format as follows:

---
default_action user

executable_actions {
	app1 log
	/path/app2* debug
}
---

Valid values for an action are:
	- user = prompt user for action.
	- kill = silently terminate the crashing team.
	- debug = attach the debugger to the crashing team. in the debugger.
	- log / report = save a crash report and terminate the team.

If no default_action is specified, "user" is assumed.

The executable_actions subsection contains individual overrides of the
default. These take the form above, where the individual lines can be
only a team name, or a path, with wildcards.

Implements first part of #10301.
hrev46547
2013-12-16 19:23:47 -05:00