Commit Graph

38027 Commits

Author SHA1 Message Date
Rene Gollent 53342f94c9 Factor out report name generation as a utility function. 2012-11-22 23:41:11 -05:00
Ithamar R. Adema 99d027cd02 ARM/ltrace: add stubs 2012-11-22 20:09:10 +01:00
Ithamar R. Adema 79a34d6fc6 ARM/debug: add ARM stubs 2012-11-22 20:09:09 +01:00
Ithamar R. Adema 2beda3bb5b ARM/runtime_loader: add stub to make it compile 2012-11-22 20:09:09 +01:00
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 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 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 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
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
Alex Smith 5ccc0cb224 Merge branch 'master' into x86_64 2012-11-18 16:42:27 +00: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 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 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
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
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 9ffc3c3d8a ARM/libroot: stub out the missing functions for now
This will get libroot.so to build, which should give us much more compilation
coverage for ARM now too. Will have to go through all the libroot code with
a tooth comb anyway once userland comes up...

(Will consider replacing the glibc mess with bsd for all non gcc2 platforms)
2012-11-16 03:04:26 +01:00
John Scipione 6c54ebe5d5 Set fSeparatorItem NULL initially fixing #9151 on gcc4 2012-11-15 19:39:04 -05:00
John Scipione c6bc755d6c delete fBarMenuBar on destruction preventing memory leak 2012-11-15 19:38:14 -05:00
Alexander von Gluck IV c3eddfc068 GLUT: Relicense Mark Kilgard's GLUT components
* A copy of the email approving this change is
  in the LICENSE.txt file
* This clears up several concerns
* We now have permission to clean / update GLUT
  code and redistrubute its binaries.
* We have to ensure all of Mark's work is *not*
  GPL licensed as per his wishes.
2012-11-15 17:31:39 -06:00
Joseph R. Prostko caddc641c1 Changes to allow Haiku source to build with GCC 4.7
* GCC 4.7 is more picky than GCC 4.6, so have to make changes accordingly
* Changes include addressing issues with scoping, redeclaration, etc.
Thanks Rene and Ingo for your input on these changes
2012-11-15 17:59:19 -05:00
Ithamar R. Adema 4f66136005 ARM/libroot: Add ARM specific Jamfile
This gets us to compiling/linking libroot almost completely, except
for some Haiku/ARM specific hooks that need to be done....

Almost there!
2012-11-15 15:22:44 +00:00
Ithamar R. Adema 7d2a37737d ARM/libroot: more stubs for floating point related things
Will sort this out properly when userland is coming up. Need to get
a basic libroot version working first, so I can build a proper HaikuImage
to boot from ;)
2012-11-15 15:18:42 +00:00
Ithamar R. Adema e27a224fb2 ARM/libroot: copy some headers from x86
These are pretty generic 32bit target files, so just copy them over.
Once we get userland properly starting, we can review these to see
if they need any changes.
2012-11-15 15:16:03 +00:00
Ithamar R. Adema 40b16ecb97 generic/libroot: Add missing generic functions
This adds a few generic implementations of basic arithmetic functions. These
would normally be implemented in assembly, but add them for easy bringup of
new architectures.

This enables new platforms to start with a minimal set of changes to libroot.
2012-11-15 15:15:34 +00:00
Ithamar R. Adema e054288f9d ARM/libroot: import files from glibc-ports-2.9
There is no ARM port for the glibc version we're using mostly, so I'm picking
up files from more recent glibc and will probably need to hack around in them,
as glibc seem to have cleaned up their arch support a lot these days.
2012-11-15 15:15:32 +00:00
Philippe Saint-Pierre 5dcd116f40 DiskUsage: avoid leaking the saved scan snapshot 2012-11-14 23:07:22 -05:00
Philippe Saint-Pierre 3e52a3d5e5 DiskUsage: added ability to cancel an ongoing scan. fixes #6801.
Also, progress now goes from 0.0 to 1.0 rather than from 0.00 to 100.00
(to avoid a * 100, followed by a / 100)
2012-11-14 22:33:44 -05:00
Philippe Saint-Pierre 9029fc709b DiskUsage: update status view after zoom in or zoom out. fixes #6756. 2012-11-14 22:33:44 -05:00
Philippe Saint-Pierre a4ef1e81ce DiskUsage: remove path monitoring and "outdated view" notification
Was unreliable, too many files to monitor (would exceed too easily the 4096 files limit).
2012-11-14 22:33:44 -05:00
John Scipione 08282eb476 Remove cast to BMenuItem* it is not needed 2012-11-14 14:43:29 -05:00
John Scipione fc18a4f5b3 Alter Add and Remove methods to return whether or not the add or remove succeeded. 2012-11-14 14:39:10 -05:00
John Scipione 11f46c6d37 Assume AddItem and RemoveItem could fail and handle those cases.
This is some defensive coding that assumes that the AddTeamMenu(),
RemoveTeamMenu(), AddSeperatorItem(), and RemoveSeperatorItem()
methods might fail and tries to compensate. Although it is unlikely
to be the case that these methods could fail I am trying to prevent
the bug that caused #9151 to happen.
2012-11-14 14:29:09 -05:00
John Scipione cb7c5f05bb Use a static_cast when removing menu item from BarMenuBar
... instead of a C-style cast. Also some minor style fixes.

Might fix #9151 although since I can't reproduce the bug here I have
no way of knowing.
2012-11-14 14:00:25 -05:00
Michael Lotz 963d68a632 Fix typo. 2012-11-14 15:16:47 +01:00
Michael Lotz ad53cd29cb Fix iterator in hash_remove_current() to not skip elements.
When iterator->current is NULL, hash_next() assumes we've reached the
end of a bucket (linked list) and moves to the next one. Wehn the first
element of a linked list was removed in hash_remove_current()
iterator->current was set to NULL, causing the next call to hash_next()
to skip over the rest of the list of that bucket.

To fix this we now decrement iterator->bucket by one, so the next call
to hash_next() correctly arrives at the new first element of the same
bucket. Doing it this way avoids having to search backwards through the
table to find the actual previous item.

This caused modules to be skipped in module_init_post_boot_device()
when normalizing module image paths so some of the module images ended
up non-normalized. This could then cause images to be loaded a second
time for modules that were part of an actually already loaded image.
This setup is present for the PCI module with the pci/x86 submodule
and would lead to a second copy of the PCI module image to be loaded
but without being initialized, eventually leading to #8684.

The affected module images were pretty much random, as it depended on
the order in which they were loaded from the file system, in this case
the boot floppy archive of the El-Torito boot part of ISO and anyboot
images. The r1alpha4 release images unfortunately had the module files
ordered in the archive just so that the PCI module image would be
skipped, allowing #8684 to happen on many systems with MSI support.

Since the block cache uses hash_remove_current() as well in some cases,
it is possible that transactions in its list could've been skipped.
Cursory testing didn't reveal this to be a usual case, and it is
possible that in the pattern it is used there, the bug wouldn't be
triggered at all. It's still possible that it caused rare misbehaviour
though.
2012-11-14 15:09:54 +01:00
threedeyes 1a6f1cb937 NTFS: Fix an issue when fs_initialization re-calling.
* Reset global variables for mkntfs module.
* Add error handling for mkntfs call.
2012-11-14 03:34:25 +00:00
threedeyes bcb081f0fe NTFS: Fixed an issue with seek and read calls
Use B_GET_PARTITION_INFO and B_GET_GEOMETRY instead of libntfs' home-brewn
device size detection. This avoids KDL in AHCI module. By the way the mentioned
problem with seek a  should be investigated separately - it looks like a bug in AHCI module.
2012-11-14 03:34:24 +00:00
John Scipione 0f10682f8b Small style fix 2012-11-13 18:51:57 -05:00
Rene Gollent 618ae8a8f6 Fix #9148 and probably #9128.
uninit_timers() needs to wait for the timer thread to exit before
deleting the timer mutex.
2012-11-13 17:42:14 -05:00
Alexander von Gluck IV fb7f48a9eb OpenGL Kit: Use GLU-9.0 for gcc2 and gcc4
* As of Mesa3D 9.0+, GLU is a seperate project
 * Our in-tree GLUT builds with GLU-9.0  without
   modification.
 * We ignore the GLU libraries that Mesa-7.8.2 and
   Mesa-8.1-devel provide and use the glu-9.0 ones
 * This is kind of a limbo state, but works for now.
 * Eventually we will be on Mesa 9.0 (which requires
   the external GLU) and Mesa 7.8.2 (which works with
   the newer external GLU) and will rip GLU out of the
   7.8.2 OptionalBuildPackage.
 * I don't *think* we are using the Mesa GLU headers...
   we will know for sure when I pull'em out of the
   OptionalBuildPackages :D
2012-11-13 10:52:06 -06:00
Ithamar R. Adema 344b3218d4 ARM/u-boot: Add support for FDTs passed in the uImage
Since we're using multi-part uImage format, we can add the FDT as
a seperate "blob" in the uImage, if the used U-Boot version is not
"FDT enabled".

This is used for example for our Verdex target. Currently I've got
a local hack in the platform/u-boot/Jamfile, looking into pulling
in the FDT files and a proper Jam setup to do that properly...
2012-11-13 12:27:11 +01:00
Ithamar R. Adema 1df5784a22 ARM: Add ARM architecture detection to generic bootloader ARM code.
This detects everything up to ARMv6 right now. Need to check more
recent ARM ARMs for ARMv7 detection.

The detected details get passed on to the kernel, which can use
the pre-detected info for selecting right pagetable format and such.

Copyright removal of Axel done after agreement with Axel @ BeGeistert
that for files that were copy/pasted from x86 arch and then fully
replaced the implementation, removal of original copyright holder is
allowed, since their actual code is gone ;)
2012-11-13 12:04:35 +01:00
Ithamar R. Adema 959e7602bc ARM: fix copyright of NOR driver
Signed-off-by: Ithamar R. Adema <ithamar@upgrade-android.com>
2012-11-13 11:44:47 +01:00
John Scipione 67bc15211f Make about window a bit taller so it fits the average amount of text
... without scrolling.

This completes my about window treatment for all replicants. It is my
hope that BAboutWindow will be used by all apps that need an about
dialog instead of using a BAlert.
2012-11-13 02:03:02 -05:00
John Scipione df02847b49 Update Workspaces about dialog 2012-11-13 01:53:31 -05:00
John Scipione b23f8cd41f Destroy AboutWindow on destruction 2012-11-13 01:42:01 -05:00
John Scipione c191daa816 remove uneeded comment 2012-11-13 01:41:25 -05:00
John Scipione d4d5bf6c50 Update PowerStatus about window 2012-11-13 01:37:30 -05:00
John Scipione 5070e7e222 Init fAboutWindow NULL first 2012-11-13 01:29:10 -05:00
John Scipione 83baea76a8 Update copyright info for ProcessController 2012-11-13 01:24:18 -05:00
John Scipione be7c552a50 Bring AboutRequested() method back, not sure why I removed it. 2012-11-13 01:18:37 -05:00
John Scipione 730a45ee8f Rework NetworkStatus to use a non-modal BAboutWindow 2012-11-13 01:12:44 -05:00
John Scipione 5bf91175bc Haiku may be alpha quality, but DeskCalc isn't 2012-11-13 00:45:01 -05:00
John Scipione cea3811974 Remove About DeskCalc... from right click menu.
We decided not to include about dialogs in system apps (right?)
2012-11-13 00:36:33 -05:00