Commit Graph

47940 Commits

Author SHA1 Message Date
Ingo Weinhold 6508ce9f52 X86VMTranslationMapPAE::Map(): More info in assert 2013-09-18 00:42:44 +02:00
Ingo Weinhold bcb7463650 arch_vm_translation_map_early_map(): Fix debug output 2013-09-18 00:42:44 +02:00
Ingo Weinhold 93495b0354 X86PagingStructuresPAE: clear fVirtualPageDirs in constructor
... not just the first element. Fixes a crash in X86VMTranslationMapPAE
destructor when running out of memory when initializing the map.
2013-09-18 00:42:44 +02:00
Ingo Weinhold 34d0d4d85e dump_page_queue(): fix output
* Determine the cache type per page instead of printing the first page's
  cache type for all pages.
* Use vm_cache_type_to_string().
2013-09-18 00:42:43 +02:00
Ithamar R. Adema cc65466f0d ARM: kernel: Make KDL more useful on ARM
This adds the -mapcs-frame compiler flag for ARM to have "stable"
stack frames, adds support to the kernel for dumping stack crawls,
and initial support for iframes. There' much more functionality
to unlock in KDL, but this makes debugging already a lot more
comfortable.....
2013-09-17 23:04:59 +02:00
Ithamar R. Adema 740490ba82 ARM: libroot: fix setjmp/longjmp implementation.
Just a couple of lines of code, but a head full of pain ;-) Finally
got it right and now KDL can properly recover from invalid accesses.
2013-09-17 22:26:48 +02:00
Rene Gollent d6f41e8920 Debugger: Fix off by one error in report generator.
- The disassembly dump would consequently stop at the instruction
  prior to the actual crash culprit, and also erroneously mark it
  as such.
(cherry picked from commit 7de035619b)
2013-09-17 18:19:35 +02:00
Rene Gollent 7de035619b Debugger: Fix off by one error in report generator.
- The disassembly dump would consequently stop at the instruction
  prior to the actual crash culprit, and also erroneously mark it
  as such.
2013-09-17 18:18:59 +02:00
Rene Gollent 176041c517 Build fix. 2013-09-17 16:02:43 +02:00
Rene Gollent 1f67148f70 Automatic whitespace cleanup. 2013-09-17 16:01:50 +02:00
Rene Gollent 6f17e7a7b3 Remove references to HAIKU_LOCALE_LIBS.
- No longer exists in PM branch, and isn't really necessary any
  more as it only refers to liblocalestub anyhow.
2013-09-17 15:58:56 +02:00
Ithamar R. Adema 34ed0fe74a ARM: kernel: fix system_time() when being called too early. 2013-09-17 15:57:36 +02:00
François Revol 09d213f3b3 PPC: OF: Make sure kernel args match the U-Boot one
Since both platforms can boot the same kernel we must accept either
arg, so we make sure they are identical for now.

TODO: use a union or KMessage maybe?
2013-09-17 15:49:49 +02:00
Rene Gollent eeebe2843a Manually merge 1410faca6c. 2013-09-17 14:42:08 +02:00
Rene Gollent 89d18e912d Debugger: MemoryView - Tweak target address drawing.
- Since we actually draw a selection now, change the target address
  highlight to clearly distinguish it. Rather than inverting it, it's
  now drawn with a normal background and red text in the hex display.
  The text mode subcomponent still shows it as an invert though, since
  the latter doesn't currently indicate the selection.
2013-09-17 14:42:07 +02:00
Rene Gollent 98c5cb2682 Debugger: Fix RegistersView context menu.
- Always grab the address value from the actual register value column,
  rather than the one that's in fact under the mouse. Fixes the "Inspect"
  item sending you to inspect address 0 if you happened to right click over
  the register name rather than the value.
2013-09-17 14:42:07 +02:00
Rene Gollent 2c130f09bf Debugger: Fix calculation in MemoryView.
- The offset calculation for mapping the current point wasn't taking
  into account the number of bytes per hex block, causing it to be
  proportionally further off if one switched to 16/32/64-bit hex mode.

Gets mouse selection working properly in said modes.
2013-09-17 14:42:07 +02:00
Ithamar R. Adema dfa5aa0c98 device_manager: Move init_node_tree to after kdl cmd registration
This helps when debugging, since when a driver/module causes a crash
while registering with the device manager, you can actually look at
the device manager state ;-)
2013-09-17 14:42:06 +02:00
Ithamar R. Adema 102ce4652a norflash: do not accept any device as a valid 'norflash'
Seems the original code was a little *too* simple ;-)
2013-09-17 14:42:06 +02:00
Ithamar R. Adema ba06f07660 ARM: kernel: fix timer resolution and implement basic timekeeping.
The previously used method for programming the timer did not take
into account that our timespec is 64bit while the register we poke
it into is 32 bit. Since the PXA (SoC in Verdex target) has a limited
scale of resolution (us,ms,second) we dynamicly determine the one
that we can most closely match, and set that.

For f.ex. snooze to work however, we also need system_time to work.
The current implementation uses a system timer at microsecond
resolution to keep track of time.

Although the code is far from perfect, committing it now before
it gets lost, since I'm working on the infrastructure code
to properly factor out the SoC specific code out of the core
ARM architecture code (so the kernel can support more then
our poor old Verdex QEMU target ;))
2013-09-17 14:42:05 +02:00
Ithamar R. Adema 4f4270c990 loader/u-boot: fix alignment of uimage components.
The "blobs" in a U-Boot uimage are aligned at 4 bytes, which we
did not take into account. Found this when adding a 3rd blob
containing the Flattened Device Tree for ARM.
2013-09-17 14:42:05 +02:00
John Scipione c315b2b18a Revert "ScreenSaver: ScrollToSelection off-by-one"
This reverts commit fb90f7ffe4.

Underlying issue fixed in hrev46066
2013-09-17 14:42:05 +02:00
Pawel Dziepak 4efb0a6d36 posix: Update PTHREAD_STACK_MIN to match MIN_USER_STACK_SIZE
Thanks for pointing this out Pete!
2013-09-17 14:42:04 +02:00
Pawel Dziepak 772568c476 system: Use B_PAGE_SIZE to define stack sizes
As korli suggested use B_PAGE_SIZE for defining stack size related
definitions what seems to be more natural for them  and also may
help if we ever support an architecture with page size different than
4kB.
2013-09-17 14:42:04 +02:00
Pawel Dziepak 533036dde7 libroot: Make sure PTHREAD_STACK_MIN is in the allowed range 2013-09-17 14:42:03 +02:00
Stephan Aßmus b748950b74 HaikuDepot: Update package list when necessary
* Pass the Model lock to the PackageListView.
 * Register a PackageInfoListener with every listed package.
 * Update the rating when it is fetched.
2013-09-17 14:42:03 +02:00
Stephan Aßmus ed6f171aa6 BColumnListView: Enable invalidating rows, fix SetField()
* Seems like there was no easy way to simply invalidate
   a given BRow. Introduced BColumnListView::InvalidateRow().
 * BRow::SetField() tried to invalidate the row, but invalidated
   the listview instead of the BOutlineView responsible for
   drawing the list contents. Use the new InvaalidateRow().
2013-09-17 14:42:03 +02:00
Rene Gollent 72b9e4a7bc Fix gcc2 build. 2013-09-17 14:42:02 +02:00
Stephan Aßmus f7628f839d HaikuDepot: Fixed selecting the right package when the list is sorted. 2013-09-17 14:42:02 +02:00
Stephan Aßmus b9898c45f4 HaikuDepot: Also lock the model when updating the list 2013-09-17 14:42:01 +02:00
Stephan Aßmus 7eec822d5e HaikuDepot: Package information can be retrieved asynchronously 2013-09-17 14:42:01 +02:00
Rene Gollent 62b27e6277 Fix previous format problem more correctly.
Thanks Ingo, Oliver and Ithamar for the hint.
2013-09-17 14:42:01 +02:00
Rene Gollent 153c6c4a40 Debugger: Fix data copy issue.
- B_PRIx8 unfortunately doesn't necessarily strictly stay within the bounds
  of an 8-bit hex constant, so force the size passed to snprintf to make it
  that way.
2013-09-17 14:42:00 +02:00
Rene Gollent 59cef1fa18 Build fix. 2013-09-17 14:42:00 +02:00
Rene Gollent f7e1dc6c46 Debugger: Add selection support to MemoryView.
- The Inspector's memory view now supports selecting chunks of the hex display in
  the manner one would in a TextView. The selection can also be copied to the clipboard,
  or if it matches the size of a target address, can be used as input for an address to
  inspect directly.

Still needs some fine tuning, but basically works.
2013-09-17 14:41:59 +02:00
Rene Gollent ad054cf1e1 Debugger: Implement #9961.
- FileManager now saves any explicitly located file mappings,
  and properly restores them when reloading the same team/files later.
2013-09-17 14:41:59 +02:00
Rene Gollent 64aae11716 Fix incorrect name usage. 2013-09-17 14:41:58 +02:00
Rene Gollent af8e2aa473 Debugger: add settings manager for source location mappings.
- If it was necessary to help the debugger locate a particular source
  file due to it not being found on disk at the location specified in
  the debug information, the associated user-supplied path mappings
  are now saved and restored in the team settings. The file manager still
  needs a bit of extra work to apply these as files are added though.
2013-09-17 14:41:58 +02:00
Jerome Duval 8f284ef32d intel_extreme: don't expose overlay in accelerant when not allocated
... in the driver.
2013-09-17 14:41:58 +02:00
Jerome Duval 1a07e84d03 usb_disk: fixed mounting a USB disk on x86_64
* usb_disk_prepare_partial_buffer() was miscalculating the offset in the temp buffer,
which led to a page fault later when copying to the user buffer.
2013-09-17 14:40:41 +02:00
Jerome Duval 6b48fa0994 usb_disk: fixes 64bit trace build 2013-09-17 14:40:40 +02:00
Siarzhuk Zharski 1c38517e25 ListView: More safe ScrollToSelection implementation
The Problem was observed in the Time Preferences Zone view - the
selection was set inside of TimeZoneView::DoLayout() call on
the OutlineListView control that had zero-sized Bounds. After
the control was resized the selection stay mainly hidden "under"
the upper edge. The Problem looks like generic so should be fixed
in the interface kit code. Proposed fix introduces additional check
for the scroll position to not cross the top edge of control.
2013-09-17 14:40:40 +02:00
Stephan Aßmus 92dbf1869f HaikuDepot: Added some listener support to PackageInfo 2013-09-17 14:40:40 +02:00
Jerome Duval 697c0d7c63 hdaudio: check pin sense on init, don't wait for a switch event
with headphones plugged on boot, sound was still enabled on speakers.
see #9956
2013-09-17 14:40:39 +02:00
Stephan Aßmus 9202a719e1 HaikuDepot: Add interface for PackageInfoListener.
Also defines PackageInfoEvent.
2013-09-17 14:40:39 +02:00
Stephan Aßmus 779d8213e9 HaikuDepot: Use PackageInfoRefs instead of PackageInfos
Instead of storing PackageInfo objects directly in the
 PackageLists, store PackageInfoRefs instead. This makes a
 lot of operations much cheaper, and it also allows making
 changes to a PackageInfo (which now exists only once)
 and have those changes reflect everywhere. In particular,
 it will be easier to populate some information of the
 PackageInfo lazily, and to listen for changes on a
 PackageInfo object.
2013-09-17 14:40:38 +02:00
Rene Gollent 02cac49250 Debugger: Implement #9960.
- DebugReportGenerator now retrieves and dumps disassembly for the crashing
  function up to the crashing line.
2013-09-17 14:40:38 +02:00
Jerome Duval c75ca47d05 dpc: fix comments spelling. 2013-09-17 14:40:38 +02:00
Ithamar R. Adema dc377ab522 beos_mime: add sniffer rule for .mp3 files
Patch from markh (ticket #9790), thanks!
2013-09-17 14:40:37 +02:00
Ithamar R. Adema 92ab471c49 ntfs: make sure our confidence is higher then the intel partition add-on
This as the intel partition addon just does a very weak test, and the
NTFS test is much safer. This prevents NTFS filesystems that have a
valid boot sector signature but no partition table, from being
picked up by the intel partition table add-on instead of the ntfs
add-on.

Patch provided by markh, thanks!
2013-09-17 14:40:26 +02:00