Commit Graph

46103 Commits

Author SHA1 Message Date
Jérôme Duval
25b723638d PCI: the x86 module now exports an MSI-X API. 2013-07-09 23:53:29 +02:00
Jérôme Duval
8cd7d43670 PCI: implemented reading, configuring and enabling MSI-X. 2013-07-09 23:53:28 +02:00
Jérôme Duval
0c0f333a67 PCI: added MSI-X and HyperTransport definitions
* renamed PCI_cap_id_ldt to PCI_cap_id_ht
2013-07-09 23:53:27 +02:00
Jérôme Duval
86340fcef3 kernel/int.cpp: typo fix 2013-07-09 23:53:26 +02:00
Rene Gollent
91c6c2ec21 Debugger: fix value reading problem.
When reading a variable value from a register, if the value's size is
smaller than the size of the register and the architecture is little
endian, we need to adjust the bit offset we read from in addition to
byte swapping, otherwise we wind up reading the wrong bytes.

This was mainly noticeable in the case of functions that returned
boolean values, which would consequently sometimes show up incorrectly.
2013-07-09 17:37:35 -04:00
Alexander von Gluck IV
991183511b RadeonHD: Drop marketing names
* They are all over the place.. I give up
* Going off of engineering names and DCE is more accurate
* A lot of this info came from the x.org wiki
* I'd like to transition some of the engineering
  name checks to use DCE versions.. they tend to be more
  accurate and exact. (in some cases we can't, but most of
  the time we can)
2013-07-09 12:40:29 -05:00
Alexander von Gluck IV
7de678860d RadeonHD: Fix some marketing names
* Finally got Sea Islands sorted out
  (unless they add new chipsets to the line)
2013-07-09 11:59:43 -05:00
Ingo Weinhold
e141e67596 Debugger: ElfFile::_CheckRange(): fix check 2013-07-08 21:24:26 -04:00
John Scipione
080bf8fe19 Fix rest of warnings, doxygen now runs cleanly.
The BTextView::SetText() methods were included twice, update the first and
remove the second.
2013-07-08 19:30:45 -04:00
John Scipione
e724b26f23 Remove enum elaborated type specifier
...from orientation params. Elaborated type specifiers are not needed
for C++ code and removing them makes doxygen happy. Verified working
on both gcc2h and gcc4h builds.
2013-07-08 19:29:11 -04:00
Rene Gollent
5d4ef3e417 TeamDebugger: When stopping after an image load...
...set a stop reason to indicate the responsible image.
2013-07-07 12:56:30 -04:00
Rene Gollent
ea84db9e2f ThreadHandler: allow an optional stop reason to be passed to...
...HandleThreadDebugged().
2013-07-07 12:55:23 -04:00
Rene Gollent
9a14c8a25d Implement configuration for stop on image load with names.
- BreakConditionConfigWindow is now a team listener so it can watch for
the appropriate events.
- Implement reading/maintaining state in response to the various
notifications.
- Implement adding/removing names and enabling/disabling the use of the
name list.
2013-07-07 00:39:04 -04:00
Rene Gollent
cae8421db8 Implement debugger infrastructure for stop on...
...image load with name matching.

- Move the stop on image load setting to Team, along with a new setting
governing the use of the (also newly added) name list.

- Add accessors for maintaining the name list, and events/notifications
for listeners with regards to changes to all stop on image load
settings.

- Adjust user interface listener hooks for additional functionality.
2013-07-07 00:39:04 -04:00
Rene Gollent
adc742c508 Rework layout of BreakConditionConfigWindow.
- Place exception-related settings into their own BBox.
- Add another box for image load-related settings. This will eventually
  allow one to constrain the stop on image load option to limit itself
  to specific image names. Not yet functional.
2013-07-07 00:39:03 -04:00
Rene Gollent
ef2d649d76 ExceptionConfigWindow -> BreakConditionConfigWindow.
Stop on image load removed from BreakpointsView, pending adding it to
BreakConditionConfigWindow with some additional options.
2013-07-07 00:39:02 -04:00
Niels Sascha Reedijk
9cb70c69b6 Update translations from Pootle 2013-07-06 06:14:11 +02:00
Alexander von Gluck IV
53f26450a3 RadeonHD: Bit-bang LVDS for edid
* Older cards have to use the LVDS_Info table,
  newer cards also have an ddc pin for EDID.
* Some buggy sbios don't inject the EDID into
  the vbios as they should
* This corrects hrev45812 as we need to still
  call connector_read_mode_lvds to obtain the
  spread spectrum data for the lvds.
* Call connector_read_mode_lvds, bit-bang the
  connector, choose the best outcome.
2013-07-05 11:53:46 -05:00
Jerome Duval
055a62645e intel_extreme: only init overlay registers
... when memory allocation succeeded.
2013-07-05 16:25:01 +02:00
Rene Gollent
54bd958039 Cleanups, no functional change. 2013-07-05 09:51:44 -04:00
Rene Gollent
193c869185 Style fix. 2013-07-05 08:44:24 -04:00
Rene Gollent
bd503ae4cf Relocate "Stop on image load" option.
Rather than a menu item, it's now a checkbox located in the breakpoints
tab.
2013-07-05 08:41:27 -04:00
Rene Gollent
0635bcc98f Media prefs: layout fixes. 2013-07-04 13:46:29 -04:00
Rene Gollent
3007aa0092 MediaPlayer settings: layout fixes. 2013-07-04 13:44:10 -04:00
Rene Gollent
cd28fb0331 Expander: Fix layout regression.
- Adjust ExpanderWindow to use BLayoutBuilder.
- Adjust content pane layout to explicitly use unlimited size, since
it no longer implicitly gets it due to the recent checkbox changes.
2013-07-04 13:15:21 -04:00
Jerome Duval
575f2f598a intel_gart: fixed bridge detection
... for bridges used with multiple displays.
Should fix #9853
2013-07-04 18:02:43 +02:00
Rene Gollent
5b402aa2a3 Implement #9855.
The Team menu now has a menu item allowing one to tell the debugger to
stop whenever a new executable image is loaded by the debugged team.
This setting is not currently persisted, though that can be changed if
desired.
2013-07-04 10:41:38 -04:00
Alex Smith
e818b9707c Call debug_cleanup() before converting kernel_args to 64-bit addresses, fixes #9842.
In debug_cleanup(), if the debug syslog buffer is disabled (the default when
KDEBUG_LEVEL is 0), then a new buffer is allocated with kernel_args_malloc().
This is done after kernel_args addresses have been converted to 64-bit, so
the address the kernel gets will be 32-bit, resulting in the page fault seen
in #9842. Fixed by moving the call to debug_cleanup() to before
convert_kernel_args().
2013-07-04 13:01:07 +01:00
Rene Gollent
df75e436dd Don't try to read data for output capture if the syscall didn't succeed. 2013-07-04 07:44:45 -04:00
Rene Gollent
3c26fbf06b Fix #9854.
The post syscall debug events used for output capture have an
unfortunate side effect: when asked to debug a thread, the thread is
interrupted, which, if currently blocked in a syscall will cause it to
unblock and send a post syscall event indicating such. However, this
will also absorb the debug stop flag that was set by the initial debug
request, and so we won't actually get the separate event indicating
thread debugged.

Consequently, we now set a pending stop request flag on the
corresponding Thread object, and check if it's set when processing
syscall events. If so, we treat such an event as having triggered a
debug stop even though the received event type is not explicitly
B_DEBUGGER_MESSAGE_THREAD_DEBUGGED.
2013-07-04 07:39:42 -04:00
Rene Gollent
cc6b4a3cb1 Add StopRequestPending field/accessors to Thread. 2013-07-04 07:34:41 -04:00
Rene Gollent
d376554674 BBox: propagate alignment from child for the...
...FULL_{VERTICAL,HORIZONTAL} case.
2013-07-03 23:41:44 -04:00
Jérôme Duval
d3b108c53d virtio_scsi: added to the image.
* device_manager: scans busses/scsi for generic drivers.
2013-07-02 22:48:25 +02:00
Jérôme Duval
e19769d296 virtio_block: replaced __packed with _PACKED 2013-07-02 22:45:08 +02:00
Jérôme Duval
82fda49e52 Virtio: added a driver with basic support for SCSI devices.
* Here is the Qemu command line option for Virtio SCSI devices:
-drive if=none,id=hd,file=haiku.image -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=hd
* virtio_scsi.h is copied unchanged from FreeBSD, except for the _PACKED directive.
2013-07-02 22:44:51 +02:00
Jérôme Duval
46bfab031f virtio: free fDescriptors on VirtioQueue destruction. 2013-07-02 22:30:18 +02:00
Jérôme Duval
f0c63f83d2 scsi: fixed 80 characters limit as noticed by John. 2013-07-02 22:15:49 +02:00
Jérôme Duval
3c47ce8421 DMAResource: mutex_lock() before calling mutex_destroy(). 2013-07-02 19:00:43 +02:00
Jérôme Duval
f87871e3f9 scsi_disk: Deletes info->dma_resource in uninit_driver()
... because it is owned by the driver, not the device.

* Fixed 64bit build with TRACE_SCSI_DISK
2013-07-02 18:51:08 +02:00
Jérôme Duval
09bac83c5d scsi: uses B_PRI* macros 2013-07-02 18:44:42 +02:00
Alexander von Gluck IV
db5af29c82 RadeonHD: Prefer edid over LVDS_Info
* Some oem sbios implementations are buggy
  and don't overwrite the LVDS panel info over
  LVDS_Info in vbios as they should.
* Bit-bang EDID info from LVDS connector before
  falling back to the LVDS_Info table.
* Partially fixes #8457
2013-07-01 22:28:35 -05:00
Ingo Weinhold
2eb2b522bf Enforce team and thread limits
Also fixes incorrect team accounting in case of error when creating
a team. The previously incremented sUsedTeams wasn't decremented again.
2013-07-02 01:57:30 +02:00
Ingo Weinhold
cbcde3ba80 kernel team.cpp: fix unbalanced io_context ref management
... in case of team creation error. Once assigned to Team::io_context
the Team object takes responsibility of the I/O context object and
releases the reference on destruction. load_image_internal() and
fork_team() were thus releasing one reference too many.

Fixes #9851.
2013-07-02 01:57:30 +02:00
Rene Gollent
a97ff1bb60 Adjust apps to conform to previous layout changes.
The Deskbar and Time preferences were both relying on BCheckBox's
previous unlimited max width to get their containing BBoxes to be the
right size. Adjust the box constraints to make this happen at the level
of the box instead.
2013-07-01 19:08:57 -04:00
Rene Gollent
46d6e9d9ed Interface Kit: Adjust max size and default alignment...
...on controls where it makes sense:
- BRadioButton and BCheckBox now return their preferred size as their
maximum.
- BRadioButton, BCheckBox and BTextControl now use left alignment by
default, as this is the most common use case for them.
2013-07-01 11:30:49 -04:00
Rene Gollent
621ae6bd72 Revert 7910d8b for now.
Quite a few layouts seem to depend on the previous behavior, and there
isn't really an elegant way to resolve that for now, unless I miss
something in the lauout APIs. However, this does  need to be looked at
at some point, for some other controls as well, since it effectively
makes it impossible to properly use such controls in horizontal groups
and get an expected result.
2013-07-01 08:46:30 -04:00
Rene Gollent
596fe0b6f5 Fix redrawing issue.
If we had a source code change that resulted in a new file that was shorter than
the entire view, the section below the last line wouldn't get repainted properly.
2013-06-30 19:53:36 -04:00
Rene Gollent
a7376ac175 Fix remaining flickering for #9841.
- Revert hrev45802. However, implement the same essential logic in
  the TeamWindow itself, and have it guard the StackTraceView,
  VariablesView, and step control buttons. This fixes flickering
  in between short steps since it prevents the intermediate clear
  from happening unnecessarily.
- Implement appropriate guards for the interim wait state.
2013-06-30 19:53:34 -04:00
Rene Gollent
c2d6b9fa8e Reduce flickering in VariablesView.
Since the individual _AddNode() invocations notify their node additions,
NotifyTableModelReset() isn't really appropriate here after all, since
the net effect will be seeing all the nodes getting added, then removed
again, then re-added. Also fixes the fact that the variables wouldn't get
cleared when picking Run, until we stopped again.
2013-06-30 17:16:57 -04:00
Rene Gollent
4841128535 MarkerView: rework drawing to reduce flicker.
Addresses another part of #9841.
2013-06-30 17:16:56 -04:00