Commit Graph

44106 Commits

Author SHA1 Message Date
Oliver Tappe
93b5e5614c Adjust Locale Kit to no longer use syslog 2012-11-20 19:33:05 +01:00
Marcus Overhagen
75384e6092 Enable PCI memory access and interrupt 2012-11-19 17:36:14 +01:00
Alex Smith
b0f9ebaca5 Don't compile in x86emu debug code for builds with DEBUG set. 2012-11-18 22:51:54 +00:00
Alex Smith
ba68dfba87 Fixed 64-bit pointer truncation in FreeBSD driver compat layer, fixes #9187. 2012-11-18 21:16:37 +00:00
Alexander von Gluck IV
184553775f Haiku3D: Add GLU header. Sorry for missing that one. 2012-11-18 14:25:13 -06:00
Alex Smith
30afb18c8f Merge branch 'x86_64' 2012-11-18 19:45:44 +00:00
Alex Smith
5196d5dad0 Merge branch 'master' into x86_64
Conflicts:
	build/jam/HaikuImage
	src/add-ons/kernel/generic/Jamfile
2012-11-18 19:18:00 +00:00
Alex Smith
5f4df83cbd Fixed ARM build. 2012-11-18 19:09:35 +00:00
Rene Gollent
2efebaa1d1 Tie DebugReportGenerator into TeamDebugger.
- Add UI listener hook. Still needs to be exposed via the actual
  UI though.
2012-11-18 13:10:31 -05:00
Rene Gollent
8e0e0918b6 Add simple report header.
Minor cleanups.
2012-11-18 13:10:30 -05:00
Fredrik Holmqvist
5e520ef399 Merge branch 'cpu_idle'
* cpu_idle:
  Add disabled cpuidle driver and module to haikuImage.
  x86_cpuidle: coding style fix according to Jerome
  x86_cpuidle: use module_dependencies rather than get_module()
  cpuidle: remove drivers/cpuidle
  cpuidle: implement acpi cpuidle driver
  acpi: export read_bit_register and write_bit_register
  cpuidle: move generic cpuidle to generic
  acpi: add ACPI_ALLOCATE_LOCAL_BUFFER to ACPI.h
  cpuidle: we should exit when cStateCount is less than 3
  cpuidle: add stats reporting support
  intel_cpuidle: apply strict cpu checking to see it's snb or not
  cpuidle: rename CpuidleStats to CpuidleStat
  enable cpuidle module and device driver
  driver: add cpuidle device driver
  cpuidle: add intel native cpuidle module
  idle: introduce cpuidle generic module
2012-11-18 17:42:43 +01:00
Alex Smith
5ccc0cb224 Merge branch 'master' into x86_64 2012-11-18 16:42:27 +00:00
Fredrik Holmqvist
553f1ebfc1 Add disabled cpuidle driver and module to haikuImage.
CPU idle still needs some polish, but it should work on
newer cpus.
2012-11-18 17:39:21 +01:00
Yongcong Du
5554814b12 x86_cpuidle: coding style fix according to Jerome
Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-11-18 17:39:21 +01:00
Yongcong Du
8073227c1d x86_cpuidle: use module_dependencies rather than get_module()
Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-11-18 17:39:20 +01:00
Yongcong Du
be9a02c0db cpuidle: remove drivers/cpuidle
Since generic cpuidle module is loaded by lowlevel cpuidle drivers which
are loaded dynamically during boot, we don't need drivers/cpuidle any
more

Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-11-18 17:39:20 +01:00
Yongcong Du
0138a95eba cpuidle: implement acpi cpuidle driver
we prefer intel native cpuidle driver on newer intel platforms --
sandybridge or later. we'll fall back to acpi cpuidle driver for other
platforms.

Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-11-18 17:39:20 +01:00
Yongcong Du
0a0af8957e acpi: export read_bit_register and write_bit_register
acpi cpuidle needs such acpi functions

Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-11-18 17:39:20 +01:00
Yongcong Du
71d9d375b8 cpuidle: move generic cpuidle to generic
After this change, low level cpuidle drivers load the generic cpuidle
module if they can support the underlying platform.

change the intel cpuidle driver accordingly, now it's loaded by acpi
bus manager during boot, although it doesn't depend on acpi

Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-11-18 17:39:19 +01:00
Yongcong Du
57311e7bb7 acpi: add ACPI_ALLOCATE_LOCAL_BUFFER to ACPI.h
Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-11-18 17:39:19 +01:00
Yongcong Du
69f69b003a cpuidle: we should exit when cStateCount is less than 3
If only C0, C1 are available, it doesn't make any sense to enable
cpuidle

Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-11-18 17:39:19 +01:00
Yongcong Du
e467ba95b0 cpuidle: add stats reporting support
Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-11-18 17:39:19 +01:00
Yongcong Du
76877c9a51 intel_cpuidle: apply strict cpu checking to see it's snb or not
we need to check cpu vendor, family, and model

Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-11-18 17:39:18 +01:00
Yongcong Du
66b0c86ae4 cpuidle: rename CpuidleStats to CpuidleStat
Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-11-18 17:39:18 +01:00
Yongcong Du
5ae9700a12 enable cpuidle module and device driver
Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-11-18 17:39:18 +01:00
Yongcong Du
32c4d58bd3 driver: add cpuidle device driver
Currently, it's only used to load generic cpuidle module. But in the
future, we will add some features such as stats reporting etc.

Signed-off-by: Yongcong Du <ycdu.vmcore@gmail.com>
Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-11-18 17:39:18 +01:00
Yongcong Du
251f971259 cpuidle: add intel native cpuidle module
Currently, it only supports intel sandy bridge processors.

Signed-off-by: Yongcong Du <ycdu.vmcore@gmail.com>
Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-11-18 17:39:17 +01:00
Yongcong Du
2195811a84 idle: introduce cpuidle generic module
This module will load the various lowlevel cpuidle modules' implementations
during initialiation. If it finds one available module, it will change
the global gCpuIdleFunc as its own better one.

When idle, cpuidle module will select the best cstate and enter it by
calling the lowlevel module's implementation.

Signed-off-by: Yongcong Du <ycdu.vmcore@gmail.com>
Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-11-18 17:39:17 +01:00
Alexander von Gluck IV
8a6451b9fd Mesa: Update gcc4 to Mesa 9.0 release
* This is a release version of Mesa
 * A Bep exists on haikuports to generate
   the zip :)
2012-11-18 09:53:14 -06:00
Alex Smith
2913b1dbd2 Compilation fixes for x86_64. 2012-11-18 15:48:47 +00:00
Julian Harnath
49d7857e32 Fix BDirectWindow::GetClippingRect
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2012-11-18 16:38:03 +01:00
Jérôme Duval
37b14b15ab adding missing ARM_ONLY variable 2012-11-18 15:31:35 +01:00
Alexander von Gluck IV
6308afb12c GL: Make sure to use GLU headers.
* The HEADERS_DEPENDENCY isn't needed
  for GLU as Mesa is a dependency and requires
  GLU to build
* I actually didn't break the build,
  we were however using the Mesa GLU headers
  with the external GLU lib which could be bad
2012-11-18 08:22:38 -06:00
Alex Smith
11c9f9a1d6 Merge branch 'master' into x86_64
Conflicts:
	build/jam/FloppyBootImage
	build/jam/OptionalBuildFeatures
	build/jam/OptionalPackages
	headers/private/shared/cpu_type.h
	src/bin/ps.c
	src/bin/sysinfo.cpp
	src/kits/tracker/PoseView.cpp
	src/preferences/appearance/DecorSettingsView.cpp
	src/preferences/virtualmemory/Settings.cpp
	src/servers/input/AddOnManager.cpp
	src/servers/input/InputServer.cpp
	src/servers/input/InputServerMethod.cpp
	src/system/boot/Jamfile
	src/system/boot/platform/raspberrypi_arm/mmu.cpp
	src/system/boot/platform/u-boot/arch/arm/Jamfile
	src/system/kernel/arch/x86/arch_cpu.cpp
	src/system/kernel/arch/x86/arch_thread.cpp
	src/system/kernel/cache/block_cache.cpp
	src/system/kernel/vm/VMAnonymousCache.cpp
2012-11-18 14:02:07 +00:00
Alexander von Gluck IV
e85a27423c GLUT: Make sure to use GLU headers.
* Fixes build, sorry about that.
2012-11-18 07:56:22 -06:00
Philippe Saint-Pierre
46db18d199 DiskUsage: Truncating of tabs could lead to deadlock (#9170) 2012-11-17 22:00:47 -05:00
Rene Gollent
11e5194844 Add initial version of DebugReportGenerator controller class.
Not yet complete or made use of.
2012-11-17 18:50:20 -05:00
Rene Gollent
0aae2709de Factor formatting utility functions out of RegistersView and
StackTraceView.
2012-11-17 18:48:47 -05:00
John Scipione
d59fcf50e6 I meant fCurrentDateStr no fCurrentTimeStr 2012-11-16 20:41:02 -05:00
John Scipione
ec469b21a0 Refactor code from previous commit.
* Check if offset is actually an error code and attempt to compensate
  At the very least don't use it as an offset (would be bad).
* Write to the output string directly instead of copying a temp string.
* Add a ToDo to check if day of week should go after time for locale
* Replace hardcoded 64 in GetCurrentDate().
2012-11-16 19:48:46 -05:00
John Scipione
debbd7bd8a Update Deskbar Clock to use predefined time formats
... with day of week tacked on at the beginning.

This fixes #9143 by better allowing the Locale Kit to
format the time. It was localized before but now also
uses localized time separators.

There might be still a bug with day of week though,
depending on if day of week should go before or after
the time in your locale (It is hard coded to before).
2012-11-16 18:51:17 -05:00
Alexander von Gluck IV
f3d8f2a599 GLUT: Fix game_mode test
* Use external libglut
2012-11-16 13:40:06 -06:00
Alexander von Gluck IV
c5324f71f6 GLUT: Fix mistake in header license
* We felt that me adding this didn't really
   properly communicate the spirit of the
   email approval. You really can't just
   'change' a license from MIT without author
   approval... so this is superfluous.
2012-11-16 13:07:11 -06:00
Alexander von Gluck IV
4ff9f11a00 GLUT: Break GLUT out from libGL
* It was confirmed that GLUT was *not* in libGL
2012-11-16 13:02:21 -06:00
Ithamar R. Adema
fb32cff770 ARM/libroot: and more fp calls.... 2012-11-16 15:58:35 +01:00
Ithamar R. Adema
d9a0abe462 ARM/libroot: Enable sig{set,long}jmp 2012-11-16 14:20:57 +01:00
Ithamar R. Adema
2d4e1654f3 ARM/libroot: Some last fp bits-n-pieces 2012-11-16 13:16:51 +01:00
Ithamar R. Adema
a03044aa5b ARM/libroot: Add more floating point code to get UCI happy 2012-11-16 03:04:27 +01:00
Ithamar R. Adema
d9e5bb0df7 ARM/ICU: add "optional" packages for ICU on ARM 2012-11-16 03:04:27 +01:00
Ithamar R. Adema
63fe8ecdd9 wchar.h: fix header comment style.
Comment uses C++ style, while it can be compiled in a C-only environment. This
broke the ICU cross compilation (done for ARM).
2012-11-16 03:04:26 +01:00