Commit Graph

44376 Commits

Author SHA1 Message Date
Ithamar R. Adema
b190a54c40 activitymonitor: remove B_MAX_CPU_COUNT reference
It has no use, since we don't know its value and the list of colors
might be longer (for example, for ARM currently B_MAX_CPU_COUNT is
only 1). The modula operator later on makes sure we keep within the
bounds of the kColors array anyway.
2012-11-22 20:09:09 +01:00
Rene Gollent
ba71ae7552 Prompt user for location to save report to. 2012-11-22 12:09:46 -05:00
Rene Gollent
2bf866783c Cleanups. 2012-11-22 11:44:20 -05:00
Rene Gollent
19ea0235be Formatting tweaks to loaded image output. 2012-11-22 10:57:11 -05:00
Rene Gollent
3d09339ddd Added convenience formatting function for image types. 2012-11-22 10:56:26 -05:00
Rene Gollent
37ddff87ec Add option to save a debug information report.
- The Tools menu now contains an option to save a debug report for the currently
  debugged team. For now this report contains the following:
  	A list of all loaded images, their base address and their size.
  	A list of all threads active in their team, and their state.
  		* For each thread that is in a debug or exception state,
  		  a stack trace, and a register dump at the top frame will also be emitted.

  Feedback on report format + included details welcome.

  For now, when the option is requested, the report is saved to the desktop
  with an auto-generated name based on the target team and the current
  date/time.
2012-11-22 00:21:18 -05:00
Rene Gollent
f20eea8ca9 Fix various parameter errors and improve output formatting. 2012-11-22 00:05:30 -05:00
Rene Gollent
6656d950c4 Fix extraneous semicolon. 2012-11-21 23:40:20 -05:00
Ithamar R. Adema
8f6bf9abf6 ARM: create CPU addon Jamfile 2012-11-22 00:00:16 +01:00
Ithamar R. Adema
e25f9cbb24 ARM: add ISA support code 2012-11-22 00:00:16 +01:00
Ithamar R. Adema
39b546702c ARM: fixup header comment 2012-11-22 00:00:16 +01:00
Ithamar R. Adema
c59d7b390f ARM: add optional packages 2012-11-22 00:00:15 +01:00
Ithamar R. Adema
8b33059d8c ARM/libroot: fixup string functions 2012-11-22 00:00:15 +01:00
Ithamar R. Adema
0495c9313a ARM/libroot: last missing bits-n-pieces to get a full image built 2012-11-22 00:00:14 +01:00
Ithamar R. Adema
379aaaab11 ARM/libroot: small workaround for crash
The whole system_time support will have to be revisited anyhow, since
the only base we have for timing is SoC specific, not ARM core specific :(
2012-11-22 00:00:14 +01:00
Ithamar R. Adema
7a66f06442 ARM/libroot: add (l)rintf functions 2012-11-22 00:00:14 +01:00
Ithamar R. Adema
64e4a8207f norflash: Style fixes
As pointed out by Axel, thanks!
2012-11-22 00:00:13 +01:00
Ithamar R. Adema
066688dcac ARM/haiku_loader: Style fixes
As suggested by Axel, thanks!
2012-11-22 00:00:13 +01:00
Oliver Tappe
0c13e65e47 Drop syslog output from Locale Kit add-ons, too 2012-11-21 00:14:51 +01:00
Oliver Tappe
9761f00b1b Fix build of set_haiku_revision.cpp with gcc2 (on haiku)
* move template method implementations out of class body, as otherwise
  gcc2 bails with internal compiler error - thanks to Christof Lutteroth
  for reporting
2012-11-20 21:51:27 +00:00
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