Commit Graph

41217 Commits

Author SHA1 Message Date
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
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
Jerome Duval
5308f23025 usb_disk: returns B_DEV_NOT_READY for SCSI_SENSE_KEY_NOT_READY
...instead of B_DEV_NO_MEDIA. The latter seems to imply we stop testing
the unit is ready in usb_disk_device_added().
Based on a patch provided by markh in #9589.
2013-09-17 14:40:26 +02:00
Ithamar R. Adema
ed6722adc4 norflash: Add hack to hide start of NOR flash
This is a workaround for hiding U-Boot that is stored in the first 2
128k blocks, so we can put a BFS image into NOR to boot from (since
we do not have support for SD/MMC yet in Haiku).

When manually putting a BFS filesystem at block 3 we actually get
right up to the point where BootScript is attempted to be executed!
2013-09-17 14:40:26 +02:00
Ithamar R. Adema
38bd76a0e5 u-boot: make sure host makebootable builds too
Somehow missed these few lines in my last commit.
2013-09-17 14:40:25 +02:00
Ithamar R. Adema
ae4ad7037f ARM: stub out makebootable so we can build a full haiku-image 2013-09-17 14:40:25 +02:00
Ithamar R. Adema
0fa2d68cdf ARM: stub out missing int64 atomic functions
Also, add an item to the TODO list for this. Really need to figure it out soon...
2013-09-17 14:40:24 +02:00
Ithamar R. Adema
b9e8ec7bc0 debugger/debuganalyzer: Remove the explicit -Werror from Jamfile
Specifying -Werror in the Jamfiles directly prevents the build
system from disabling error-on-warning for some arch specific
warnings (or even globally), breaking the ARM build.

The "src/apps" directory is already setup to compile with -Werror
by the build system anyway, so remove the explicit setting here.
2013-09-17 14:40:24 +02:00
Ithamar R. Adema
89f89a07e1 ARM: boot: pass boot disk identifier
This to stop the vfs_boot.cpp code from complaining.
2013-09-17 14:40:24 +02:00
Jorma Karvonen
6a66acded8 Localize tgainfo
Closes ticket #7168
Signed-off-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2013-09-17 14:40:23 +02:00
Jorma Karvonen
cae234acf0 Localize bmpinfo
Closes ticket #7164
Signed-off-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2013-09-17 14:40:23 +02:00
Jorma Karvonen
736c1f8c51 Localize bitsinfo
Closes ticket #7162.
Signed-off-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2013-09-17 14:40:22 +02:00
Ithamar R. Adema
acd58c2f6c ARM: boot: Make dd on MacOS happy
Turns out dd on MacOS does not like '1M' as size descriptor, but
wants '1m'. To prevent us breaking Linux builds (as it does not
accept 1m), just use the actual number of bytes explicitely instead.
2013-09-17 14:40:21 +02:00
Jérôme Duval
5a2c5827e4 add a constant for 10G base T ethernet. 2013-09-17 14:40:21 +02:00
Jérôme Duval
28cf626d45 virtio_net: allocate queues, read macaddress, handle ioctl. 2013-09-17 14:40:21 +02:00
Jérôme Duval
eb8616334b virtio_net: add feature labels. 2013-09-17 14:40:20 +02:00
Rene Gollent
5077cb09cb Debugger: add Inspect context item to Registers view.
- Allows one to treat the value of a register as a memory
  address and jump directly to inspecting said address.
2013-09-17 14:40:20 +02:00
Rene Gollent
1ea8fd5216 Debugger: Add missing std::nothrow. 2013-09-17 14:40:19 +02:00
Ithamar R. Adema
672b2600bc ARM: kernel: Fix compilation issue with new gas.
Turns out the new gas does not like spaces :(
2013-09-17 14:40:19 +02:00
Rene Gollent
5594217b7f Fix accidentally truncated addresses in call frame unwind. 2013-09-17 14:40:19 +02:00
Jérôme Duval
a933ad6dbc virtio_net: initial skeleton driver. 2013-09-17 14:40:18 +02:00
Jérôme Duval
28390f6964 ext2: access the parent variable once checked it's non null
* cleanup
* add some inode flags we don't use
2013-09-17 14:40:18 +02:00
Pawel Dziepak
278f66b6b1 x86[_64]: Enable NX on non-boot CPUs as soon as possible 2013-09-17 14:40:17 +02:00
François Revol
c55cff0acc Whitespace cleanup 2013-09-17 13:51:38 +02:00
François Revol
228524afb6 Merge branch 'master' into sam460ex 2013-09-17 13:22:26 +02:00
Rene Gollent
5ad39153e3 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 12:07:52 +02:00
Rene Gollent
4ce4250be0 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 11:17:31 +02:00
Rene Gollent
a82e311cf1 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 11:14:38 +02:00
Ithamar R. Adema
f2479c22a8 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 05:52:54 +02:00
Ithamar R. Adema
00e13e215e norflash: do not accept any device as a valid 'norflash'
Seems the original code was a little *too* simple ;-)
2013-09-17 05:26:29 +02:00
Ithamar R. Adema
af1c0b55ca 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 03:03:17 +02:00
Ithamar R. Adema
7418443d12 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 02:44:32 +02:00
John Scipione
c21a3b20c9 Revert "ScreenSaver: ScrollToSelection off-by-one"
This reverts commit fb90f7ffe4.

Underlying issue fixed in hrev46066
2013-09-16 18:45:56 -04:00
Pawel Dziepak
74018092d0 libroot: Make sure PTHREAD_STACK_MIN is in the allowed range 2013-09-16 23:23:28 +02:00
Stephan Aßmus
e69b2374f2 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-16 23:20:32 +02:00
Stephan Aßmus
bdd7ba66b5 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-16 23:20:31 +02:00
Rene Gollent
206313697f Fix gcc2 build. 2013-09-16 22:39:18 +02:00
Stephan Aßmus
bb4c532b77 HaikuDepot: Fixed selecting the right package when the list is sorted. 2013-09-16 22:18:22 +02:00
Stephan Aßmus
b0fbddbd03 HaikuDepot: Also lock the model when updating the list 2013-09-16 22:18:21 +02:00
Stephan Aßmus
5f82742858 HaikuDepot: Package information can be retrieved asynchronously 2013-09-16 22:18:20 +02:00
Rene Gollent
f831939874 Fix previous format problem more correctly.
Thanks Ingo, Oliver and Ithamar for the hint.
2013-09-16 21:29:32 +02:00
Rene Gollent
fb916bc870 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-16 20:22:24 +02:00
Rene Gollent
af967edb7d Build fix. 2013-09-16 19:59:33 +02:00
Rene Gollent
6c5893fbbf 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-16 19:45:27 +02:00
Rene Gollent
29fdf5e8ae Debugger: Implement #9961.
- FileManager now saves any explicitly located file mappings,
  and properly restores them when reloading the same team/files later.
2013-09-16 15:29:19 +02:00
Rene Gollent
37fc9962f8 Fix incorrect name usage. 2013-09-16 15:29:19 +02:00
Rene Gollent
b9b126139a 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-16 15:29:18 +02:00
Jerome Duval
e968e4b090 intel_extreme: don't expose overlay in accelerant when not allocated
... in the driver.
2013-09-16 15:07:58 +02:00
Jerome Duval
a20d645226 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-16 13:27:42 +02:00
Jerome Duval
367d254419 usb_disk: fixes 64bit trace build 2013-09-16 11:48:22 +02:00
Siarzhuk Zharski
81cdbc6ae6 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-16 00:05:28 +02:00
Stephan Aßmus
83f9d3c431 HaikuDepot: Added some listener support to PackageInfo 2013-09-15 17:47:35 +02:00
Jerome Duval
a07d888425 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-15 15:39:01 +02:00
Rene Gollent
396a3d082f Merge branch 'debugger_report_add_disassembly' 2013-09-15 15:35:38 +02:00
Stephan Aßmus
d1d48f6483 HaikuDepot: Add interface for PackageInfoListener.
Also defines PackageInfoEvent.
2013-09-15 17:24:15 +02:00
Stephan Aßmus
d2c9f2e651 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-15 17:21:11 +02:00
Rene Gollent
92d6655640 Debugger: Implement #9960.
- DebugReportGenerator now retrieves and dumps disassembly for the crashing
  function up to the crashing line.
2013-09-15 15:32:19 +02:00
Jerome Duval
c11cdf8d88 dpc: fix comments spelling. 2013-09-15 14:41:43 +02:00
Ithamar R. Adema
4ace94e6b1 beos_mime: add sniffer rule for .mp3 files
Patch from markh (ticket #9790), thanks!
2013-09-15 11:45:40 +02:00
Ithamar R. Adema
b9f280cb8c 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-15 11:35:31 +02:00
Ingo Weinhold
0af009d250 package daemon: Fix use of destroyed objects
Fixes #9957.
2013-09-15 11:21:42 +02:00
Ingo Weinhold
33dc65c7ff package daemon: Ignore only entry events of packages to remove 2013-09-15 11:21:42 +02:00
Jerome Duval
b119365b21 usb_disk: returns B_DEV_NOT_READY for SCSI_SENSE_KEY_NOT_READY
...instead of B_DEV_NO_MEDIA. The latter seems to imply we stop testing
the unit is ready in usb_disk_device_added().
Based on a patch provided by markh in #9589.
2013-09-15 11:21:01 +02:00
Ithamar R. Adema
b9fa914d1e norflash: Add hack to hide start of NOR flash
This is a workaround for hiding U-Boot that is stored in the first 2
128k blocks, so we can put a BFS image into NOR to boot from (since
we do not have support for SD/MMC yet in Haiku).

When manually putting a BFS filesystem at block 3 we actually get
right up to the point where BootScript is attempted to be executed!
2013-09-15 07:26:02 +02:00
Ithamar R. Adema
c00e42d577 u-boot: make sure host makebootable builds too
Somehow missed these few lines in my last commit.
2013-09-15 04:55:07 +02:00
Ithamar R. Adema
a1d6968848 ARM: stub out makebootable so we can build a full haiku-image 2013-09-15 04:39:37 +02:00
Ithamar R. Adema
ef5e0ba938 ARM: stub out missing int64 atomic functions
Also, add an item to the TODO list for this. Really need to figure it out soon...
2013-09-15 04:22:04 +02:00
Ithamar R. Adema
20d9063c36 debugger/debuganalyzer: Remove the explicit -Werror from Jamfile
Specifying -Werror in the Jamfiles directly prevents the build
system from disabling error-on-warning for some arch specific
warnings (or even globally), breaking the ARM build.

The "src/apps" directory is already setup to compile with -Werror
by the build system anyway, so remove the explicit setting here.
2013-09-15 04:21:39 +02:00
Ithamar R. Adema
90742b59be ARM: boot: pass boot disk identifier
This to stop the vfs_boot.cpp code from complaining.
2013-09-15 04:18:31 +02:00
Jorma Karvonen
9d79ce816b Localize tgainfo
Closes ticket #7168
Signed-off-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2013-09-14 22:52:43 +02:00
Jorma Karvonen
ba4746794a Localize bmpinfo
Closes ticket #7164
Signed-off-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2013-09-14 22:47:58 +02:00
Jorma Karvonen
d05bb5a8e6 Localize bitsinfo
Closes ticket #7162.
Signed-off-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2013-09-14 22:43:44 +02:00
Ithamar R. Adema
cfa8ecbc86 ARM: boot: Make dd on MacOS happy
Turns out dd on MacOS does not like '1M' as size descriptor, but
wants '1m'. To prevent us breaking Linux builds (as it does not
accept 1m), just use the actual number of bytes explicitely instead.
2013-09-14 20:15:33 +02:00
Jérôme Duval
b31f2d53e0 add a constant for 10G base T ethernet. 2013-09-14 18:11:43 +02:00
Jérôme Duval
4b308f30ca virtio_net: allocate queues, read macaddress, handle ioctl. 2013-09-14 18:05:54 +02:00
Jérôme Duval
d038239669 virtio_net: add feature labels. 2013-09-14 18:05:54 +02:00
Rene Gollent
729075a5e8 Debugger: add Inspect context item to Registers view.
- Allows one to treat the value of a register as a memory
  address and jump directly to inspecting said address.
2013-09-14 17:55:33 +02:00
Rene Gollent
20c5fc4aa6 Debugger: Add missing std::nothrow. 2013-09-14 17:55:32 +02:00
Ithamar R. Adema
fda9d308e1 ARM: kernel: Fix compilation issue with new gas.
Turns out the new gas does not like spaces :(
2013-09-14 17:27:17 +02:00
Rene Gollent
74e89b3446 Fix accidentally truncated addresses in call frame unwind. 2013-09-14 17:07:55 +02:00
Jérôme Duval
b5082c11cc virtio_net: initial skeleton driver. 2013-09-14 11:48:37 +02:00
Jérôme Duval
0ce7ab1ebe ext2: access the parent variable once checked it's non null
* cleanup
* add some inode flags we don't use
2013-09-14 11:00:07 +02:00
Pawel Dziepak
b8dc812f3e x86[_64]: Enable NX on non-boot CPUs as soon as possible 2013-09-14 05:28:50 +02:00
François Revol
c14bca2958 Merge branch 'master' into sam460ex 2013-09-14 01:16:51 +02:00
Oliver Tappe
c911075e52 Drop debug output. 2013-09-14 00:22:30 +02:00
Ingo Weinhold
cf70d345b2 Merge remote-tracking branch 'haiku/master' into package-management
This reverts 8f7f28a7c3 (OpenGL: Upgrade
to
Mesa 9.2).

Conflicts:
	build/jam/BuildFeatures
	build/jam/HaikuImage
	build/jam/OptionalPackages
	build/scripts/build_cross_tools_gcc4
	src/add-ons/opengl/swpipe/Jamfile
	src/apps/diskusage/Jamfile
	src/kits/tracker/ContainerWindow.cpp
	src/kits/tracker/DeskWindow.cpp
	src/kits/tracker/Jamfile
2013-09-13 01:02:28 +02:00
Ingo Weinhold
cc0838da34 VFS boot: Mount packagefs when booting off an image
... and the mounted boot volume looks like a PM Haiku. This gets the CD
boot going.
2013-09-13 00:06:21 +02:00
Ingo Weinhold
3465e718e7 boot tarfs: Support resolving "." and ".." directory entries
This makes resolving the boot module symlinks work.
2013-09-13 00:06:21 +02:00
Rene Gollent
426f721b81 Fix default alignment on BCheckBox.
Was most readily noticeable in WebPositive's Find pane, where the
CheckBox was incorrectly top-aligned. Thanks to Humdinger for reporting.
2013-09-11 18:23:07 -04:00
Ingo Weinhold
6c88312170 package daemon: Replace changes alert by a window 2013-09-11 15:06:44 +02:00
Ingo Weinhold
f2cba19f53 package daemon: ProblemWindow: Fix message constant types 2013-09-11 15:05:30 +02:00
Pete Goodeve
78e450554e Fix to std dev calculation in ping 2013-09-11 14:30:47 +02:00
Ingo Weinhold
9f12d254b1 package daemon: ProblemWindow: Simplify getting the font height 2013-09-11 13:39:58 +02:00
Ingo Weinhold
c159d0cfd1 BActivationTransaction: Fix unarchiving constructor 2013-09-11 05:07:14 +02:00
Ingo Weinhold
b53a2e6af5 package daemon: ProblemWindow: Use a scroll view 2013-09-11 04:53:06 +02:00
Ingo Weinhold
88f12ad84f Add private BViewPort class
* It simplifies putting regular layout-aware views or layout items into
  a BScrollView.
* Not quite complete yet: Height-for-width support is missing, but that
  also requires fixing BScrollView in this respect. Scroll bar auto-hide
  support would be nice as well.
2013-09-11 04:51:03 +02:00
Ingo Weinhold
5c56812d90 BControlLook::ComposeSpacing(): Avoid non-integers 2013-09-11 04:47:28 +02:00
Ingo Weinhold
4a8da96088 BLayoutUtils: Add GetLayoutTreeDump()
Returns a debug output string listing the basic layout properties of
the view/item hierarchy.
2013-09-11 04:46:36 +02:00
Ingo Weinhold
b1c3379c7e _user_debug_output(): Fix for long strings
The wrong length was passed to debug_puts().
2013-09-11 04:43:47 +02:00
John Scipione
fb90f7ffe4 ScreenSaver: ScrollToSelection off-by-one
For some reason calling PopulateScreenSaver() list in AllAttached()
scrolls the selection off-by-one, so, call PopulateScreenSaverList()
in AttachedToWindow() and then call ScrollToSelection() again in
AllAttached() which seems to fix the problem.
2013-09-10 18:46:09 -04:00
John Scipione
5041c8ae6e ScreenSaver: Set min window height by font height
...rather than font spacing which only scales linearly in the horizontal
direction. This sets the min window height nicely at 11pt font while
continuing to work at 12pt, 8pt, and 18pt.
2013-09-10 18:09:50 -04:00
John Scipione
c8e6af02f2 ScreenSaver: Open screensaver initially via message
..instead of calling _OpenSaver() directly.

At least one screensaver, Message, depended on the Bounds() of the
preview to be set when run, which wasn't established when you first
started the app causing the app to quit while trying to draw.

Also call PopulateSaverList() in AllAttached()  so that ScrollToSelection()
works without having to be called again.

Also, fix pointer style in ScreenSaverWindow::MessageReceived()
2013-09-10 18:09:50 -04:00
John Scipione
e73001dc80 ScreenSaver: Refactor list item selection
Split out the list emptying into an EmptyScreenSaverList() method and use it in
various places where it should happen.

Call PopulateScreenSaverList() in ModulesView::AttachedToWindow() instead
of in the constructor because some of the methods depend on the view being
attached.

Don't try to select Blackness saver by name, instead if no other selection
is located select it as the default. Also, a tiny optimization, once we've found a
selection there's no reason to continue to keep looking for another one.
2013-09-10 18:09:49 -04:00
John Scipione
b3aa1c10f5 ScreenSaverApp: Style fixes
Update copyright info
2013-09-10 18:09:49 -04:00
John Scipione
4843382d02 ScreenSaver: Convert ScreenSaverItem.h to utf-8 encoding
For some reason this file was encoded as a MacRoman or some sort
of high ASCII non utf-8 encoding that made my editor sad.

Also, update the copyright and style while I'm at it.
2013-09-10 18:09:48 -04:00
Siarzhuk Zharski
726e47bb80 vfs:Remove extra put_vnode call on error B_LINK_LIMIT exit
Fixing the autoconf test: attempt to create file in place of already
existing symlink. On error exit put_vnode was called explicitly before
returning error. The second, implicit call to put_vnode was issued on
destroying the VNodePutter instance that references the same vnode. At
this time the vnode has references count equal to 0 so corresponding
panic was executed. Great thanks to Ingo for pointing it out!

Fixes #9140.
2013-09-10 19:47:36 +02:00
Ingo Weinhold
38c62dfb8b package daemon: Implement dependency resolution support
... for package changes performed manually by the user (i.e.
adding/removing files in a packages directory). Currently only done for
the system root. Alternative roots should still work as before, so this
shouldn't affect haikuporter (not tested yet).

Needs some more work (e.g. the GUI part).
2013-09-10 19:14:21 +02:00
Ingo Weinhold
383ac67cfa package daemon: Let Root know whether it is the system root 2013-09-10 19:14:21 +02:00
Ingo Weinhold
99f9333a2a BPackageManager::_CommitPackageChanges(): Fix error handling
The error returned by CommitTransaction() is just indicates whether
transactionResult has been initialized.
2013-09-10 19:14:21 +02:00
Ingo Weinhold
d3c96ad809 BPackageManager: Support pre-added packages
... as needed for the package daemon. _PreparePackageChanges() doesn't
try to clone them in this case.
2013-09-10 19:14:21 +02:00
Ingo Weinhold
36204024cf BPackageManager: Add InstalledRepository::EnablePackage() 2013-09-10 19:14:20 +02:00
Ingo Weinhold
018173a2f5 BPackageManager: Add ResultComputed() callback 2013-09-10 19:14:20 +02:00
Ingo Weinhold
c032903abc BPackageManager: Add VerifyInstallation() 2013-09-10 19:14:20 +02:00
Ingo Weinhold
7e0d2c4f94 BPackageManager: Add alternate Install()/Uninstall()/Update() 2013-09-10 19:14:20 +02:00
Ingo Weinhold
5a5d146510 BPackageManager: Make _InstallationRepository() protected 2013-09-10 19:14:19 +02:00
Ingo Weinhold
56b1376090 BActivationTransaction: Make BArchivable 2013-09-10 19:14:19 +02:00
Ingo Weinhold
9b2fd34196 Add BSolverPackageSpecifierList::AppendSpecifiers() 2013-09-10 19:14:19 +02:00
Ingo Weinhold
46d77ed7da package daemon: Delay handling node monitor events to group them 2013-09-10 19:14:18 +02:00
Ingo Weinhold
43bd5a49c7 <package/Request.h>: Don't leak JobQueue into public namespace 2013-09-10 19:14:17 +02:00
Ingo Weinhold
cf3bb0d753 BPackageManager: Abstract installed repository initialization
* Rename TransactionHandler -> InstallationInterface and
  DaemonClientTransactionHandler -> ClientInstallationInterface.
* Add InstallationInterface::InitInstalledRepository(). Use in
  _AddInstalledRepository() to get the repository packages instead of
  using the package roster. The ClientInstallationInterface
  implementation does it that way.
2013-09-10 19:14:17 +02:00
Ingo Weinhold
c138f1f2af BRepositoryBuilder: Add constructor for pre-init'ed repository 2013-09-10 19:14:17 +02:00
Jerome Duval
378a2b8580 updated usbdevs from NetBSD revision 1.653 2013-09-09 21:35:01 +02:00
Siarzhuk Zharski
c68e172312 usb_audio:fix parameters web compilation logic
* parameters web compilation improved - harvest the feature units
  assigned to non-streaming output terminals in the same way as ones
  assigned to streaming output terminals.

Fixes #9950
2013-09-09 08:56:20 +02:00
Stephan Aßmus
2520ac68a8 HaikuDepot: Introduced LinkView utility class
* Inherits BStringView
 * Highlights string on hover and changes cursor shape.
 * Sends message when clicked.
2013-09-08 19:09:14 +02:00
Stephan Aßmus
d6bd4f068d HaikuDepot: TextDocument-Layout and -View optimize drawing...
... by drawing only the paragraphs that intersect with the
 update rect.
2013-09-08 19:08:26 +02:00
Stephan Aßmus
375dff4eaa HaikuDepot: Use TextDocumentView for package description.
* The rating items are also justified for consistency.
 * Refactored usages of TextDocumentView and MarkupParser into
   MarkupTextView.
2013-09-08 18:41:45 +02:00
Stephan Aßmus
6c5c4d8437 HaikuDepot: Added TextView::ParagraphStyle() ...
... to get the initial/default paragraph style.
2013-09-08 18:41:08 +02:00
Stephan Aßmus
cb97f2349f HaikuDepot: Make MarkupParser a bit more flexible...
... by allowing to append markup to an existing document.
2013-09-08 18:39:56 +02:00
Stephan Aßmus
97c332e107 HaikuDepot: Added TODO. 2013-09-08 18:39:13 +02:00
Stephan Aßmus
cf94e360d5 HaikuDepot: Beef up the Sequitur changelog with more markup.
* The bullet paragraphs were already working, now we have
   bold and italic plus the heading style. The links in the
   original changelog are not yet supported.
2013-09-08 14:40:43 +02:00
Stephan Aßmus
0e61e1ef80 HaikuDepot: Use a TextDocumentView for the Changelog.
* This allows simple media wiki markup in the changelog.
2013-09-08 14:40:42 +02:00
Stephan Aßmus
2a059affa4 HaikuDepot: TextDocumentView: SetInsets(), control scroll bars.
* Added SetInsets() to allow for a margin around the text.
 * Update BScrollBars if they exist.
2013-09-08 14:40:42 +02:00
Stephan Aßmus
1fb1d2103b HaikuDepot: MarkupParser: Added SetStyles().
* Also include the terminating \0 in the loop
   over the characters, in order to consume the
   last paragraph correctly when it's not finished
   by a line break.
2013-09-08 14:40:41 +02:00
Jérôme Duval
7d5632a0da agp_gart: added message logs on errors. 2013-09-07 12:04:11 +02:00
Jérôme Duval
c4a8ae38d4 realtime_sem: fixed a compiler warning.
* the variable is initialized anyway on the success code path.
2013-09-07 11:34:21 +02:00
Stephan Aßmus
df10644048 HaikuDepot: MarkupParser: Fixed off-by-one error...
... when finishing a paragraph to include the last character.
2013-09-07 00:14:29 +02:00
Stephan Aßmus
59b52a1163 HaikuDepot: Added very simplistic markup parser.
* Follows MediaWiki or TracWiki style.
 * Supports only level 2 headings, bold, italic and top-level
   bullet paragraphs.
 * Line break handling would need to be changed.
 * Outputs a TextDocument.
2013-09-07 00:12:01 +02:00
Stephan Aßmus
c6a0782a8f HaikuDepot: Paragraph: Added IsEmpty(). 2013-09-07 00:12:00 +02:00
Stephan Aßmus
720f7fdf54 HaikuDepot: ParagraphLayout: Fix work around
* Bail early if the TextSpan length is 0.
 * When the span starts with a space, the work
   around for the app_server bug, which I should fix,
   needs to offset by the other delta.
2013-09-07 00:11:59 +02:00
Jérôme Duval
8a1f303840 ffmpeg: release the reader context on destruction.
* avformat_open_input() is to be balanced with a avformat_close_input().
* should help with #9945.
2013-09-06 23:36:58 +02:00
Oliver Tappe
a84cf45805 Add missing search path for <build>package_repo. 2013-09-06 22:49:08 +02:00
Jérôme Duval
ba654b1b91 virtio_pci: try at fixing build on Haiku x86_64
see #9912.
2013-09-06 17:16:07 +02:00
Stephan Aßmus
d94326b1c6 HaikuDepot: CharacterStyle: SetBold() and SetItalic()
* Added convenience methods to derive the bold and italic
   font face from the currently set font. May not yield
   results depending on wether a specific face is available
   for the font.
 Ü * Changed test accordinly.
2013-09-06 10:49:37 +02:00
Stephan Aßmus
e75fda0202 HaikuDepot: List.h: Coding style fix 2013-09-06 10:10:39 +02:00
Stephan Aßmus
00861147be HaikuDepot: Removed first iteration of text layout classes. 2013-09-06 10:04:04 +02:00
Stephan Aßmus
8d0c791d5f HaikuDepot: Switched TextView to use new ParagraphLayout
* The ParagraphStyle can be set as well.
2013-09-06 10:04:03 +02:00
Stephan Aßmus
822872d6c3 Paragraph: Added Clear() method to remove all TextChunks. 2013-09-06 10:04:02 +02:00
Evgeniy Abdraimov
fcc745e0e7 Reopening FreeBSD's compat devices was broken due to a missing flag
clear. Patch part of #7040. Thanks.
2013-09-06 01:11:31 +02:00
Stephan Aßmus
6576e6c774 HaikuDepot: Text stuff: Support for simple bullet lists.
Also:
 * Fixed off-by-one bug when extracting wrapped TextSpans until the
   line's end text offset.
 * ParagraphStyle::FirstLineInset() is now additional to LineInset().
 * Potential Bullet::Spacing() is added to all lines as inset.
2013-09-05 22:07:44 +02:00
Stephan Aßmus
ccfedbc4fa HaikuDepot: text stuff: Layout all document paragraphs.
* Use TextDocumentLayout in TextDocumentView.
 * Extend test case demonstrating paragraphs with
   different alignments, something unsupported in
   BTextView.
2013-09-05 18:07:14 +02:00
Stephan Aßmus
8e8d1b55d3 ParagraphLayout: Don't ignore the given drawing offset. 2013-09-05 18:06:39 +02:00
Stephan Aßmus
f1a08c0848 HaikuDepot: ParagraphLayout: Alignment and justify support. 2013-09-05 16:54:28 +02:00
Stephan Aßmus
169de499b5 HaikuDepot: Removed no longer needed info from GlyphInfo. 2013-09-05 15:52:55 +02:00
Stephan Aßmus
68dfaf0f9d HaikuDepot: New TextDocumentView and test app.
* TextDocumentView still only shows the first paragraph
   of a TextDocument, but this time using the new
   ParagraphLayout. A class for layouting all paragraphs
   of a TextDocument is up next.
 * A simple test app shows that TextSpans with different
   CharacterStyles already work in one Paragraph. The test
   is nowhere extensive and does not test for bugs in
   corner cases.
2013-09-05 13:26:15 +02:00
Stephan Aßmus
24523b867b HaikuDepot: ParagraphLayout: Debugged and now working.
* The biggest problem was that adding the wrapped
   sub-TextSpan to the LineInfos was missing. Other
   problems included missing handling of ascent and
   descent per CharacterStyle.
2013-09-05 13:24:31 +02:00
Stephan Aßmus
4b810a1e92 HaikuDepot: TextDocument: Added Paragraph access by index. 2013-09-05 13:24:01 +02:00
Stephan Aßmus
d922357fa1 HaikuDepot: CharacterStyle: Added convenience methods 2013-09-05 13:21:32 +02:00
Stephan Aßmus
15990b01a2 HaikuDepot: Text stuff: ParagraphLayout compiles and maybe works 2013-09-05 10:59:39 +02:00
Stephan Aßmus
f668e7dd19 HaikuDepot: Text stuff: Switched from TextStyle to CharacterStyle 2013-09-05 10:59:03 +02:00
Stephan Aßmus
036fabe903 HaikuDepot: List: Changed parameter order for Replace()
(index first)
2013-09-05 10:58:16 +02:00
Stephan Aßmus
a452d51705 HaikuDepot: Text stuff: Added line spacing to ParagraphStyle 2013-09-05 10:57:19 +02:00
Stephan Aßmus
2b7ea89d14 HaikuDepot: Give access to glyph spacing
* The implementation for the get-accessors was missing
   from CharacterStyle.
2013-09-05 10:23:11 +02:00
John Scipione
9fc9619079 ScreenSaver: Set target for turn off display checkbox
I noticed while testing the nightly on vmware which, unlike vbox, includes
a video driver with DPMS support that this checkbox wasn't working.
This should fix it.
2013-09-04 11:14:07 -04:00
John Scipione
9bf1ba7dcf ScreenSaver: Just for good measure allow 4 lines of text here.
... just in case a long translation needs an extra line to fit
(in English 3 is enough) and because we've got enough room next
to the screen image to fit another line of text anyway.
2013-09-04 11:10:02 -04:00
John Scipione
28a2faa30a ScreenSaver: use ceilf instead of ceil
... to restrict to single float precision. This is a little pedantic and silly
but bare with me for the sake of consistency.
2013-09-04 11:06:30 -04:00
Stephan Aßmus
bc61e26366 USB HID: Restore previous handler sorting.
* Since additional handlers put themself in the front the
   handler list, asking the tablet handler last actually puts
   its handler in the first position, as before my changes.
2013-09-04 09:53:41 +02:00
Stephan Aßmus
72c029ea37 USB HID: Changed/removed wrong comment.
* The HID driver publishes devices for all handlers that claim
   to know how to work with a device. I see how that is good for
   a combo device like keyboard with built-in touch pad or a single
   USB receiver for a keyboard and mouse. But I wonder about devices
   that publish multiple alternative HID configurations. I think
   my Wacom Tablet has a configuration for a regular mouse and the
   configuration for the actual tablet. And the driver should publish
   a device for one, but not the other. I also don't see in the code
   how a specific configuration is made the active one before the
   protocol is used.
2013-09-04 09:53:07 +02:00
Siarzhuk Zharski
42cb481fe4 StyledEdit:supress unlock if the file is on RO volume
Show the "Read-only" status for documents that are living on read-only
volumes and do not show unlock menu for such files.

* The enhancement pointed out by Sergei Reznikov (Diver). Thanks!
2013-09-03 20:41:16 +02:00
Stephan Aßmus
6e47dfbeaf USB HID: Split out tablet support into TabletProtocolHandler
* The previous approach of combining tablet and mouse support
   in MouseProtocolHandler was unintuitive and had the potential
   problem that if a device has multiple HID descriptors, one
   simulating a simple mouse, that one may be found first and
   there is no mechanism of choosing the best handler for a device.
   Now we can look for tablets before looking for mice.
 * Implement pressure, eraser and tilt support. Untested. This
   mostly comes from the patch in #7354, but eraser support should
   work more like intended by the Be API.
 * It appears that my Wacom Intuos 2 cannot be accessed via the
   HID framework, except as regular mouse. So I couldn't actually
   test these changes. I believe what worked before, i.e. QEMU
   absolute mouse position support, should work as good as before.
   Please shout if not!
 * If more recent Wacom tablets /could/ work with these changes,
   they will not, because the HID driver still explicitely ignores
   Wacom devices and the dedicated Wacom driver will not pick up
   newer devices, with its hard-coded and un-generic device support.
2013-09-03 17:55:02 +02:00