Commit Graph

47899 Commits

Author SHA1 Message Date
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
John Scipione
a7e9ce676f Use uname -s instead of uname -o
...since BSD uname (on OS X at least) doesn't have a -o param, only a -s,
Haiku has both, and both print "Haiku".
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
Niels Sascha Reedijk
1a6ebaa02e Update translations from Pootle 2013-09-17 14:40:17 +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
aca204991f posix: Update PTHREAD_STACK_MIN to match MIN_USER_STACK_SIZE
Thanks for pointing this out Pete!
2013-09-16 23:23:29 +02:00
Pawel Dziepak
f06af2e2f8 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-16 23:23:29 +02: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