Commit Graph

56489 Commits

Author SHA1 Message Date
Gabriel Maia
1bf0271fa0 DiskProbe: select Find window text
Select the text to find as the Find window is opened.
This makes the behavior more consistent with other apps.
Fixes the main subject of #10844.

Also removes trailing whitespace.

Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2016-09-17 11:33:54 +02:00
Adrien Destugues
ed1b81b72b Boot loader VFS: fix string termination error.
The code was resetting the pointer to NULL, instead of setting the
pointed char to null-terminate the string. The result was resolving the
current directory later on, instead of the parent as requested.

This only happened when calling open_from with O_CREAT, and a name with
sub-directories inside it. The boot loader never does that, so the code
wasn't used until now.

Fixes #12941.

Thanks to mt for spotting the problem.
2016-09-17 11:15:00 +02:00
Humdinger
99750e3182 Added icon for NAS device 2016-09-16 18:03:38 +02:00
Automatic Committer
f9273defca Update pci.ids from pciids.sourceforge.net 2016-09-15 05:20:19 +02:00
Rene Gollent
b65adbdfbc Debugger: Fix #12940.
- Add new interface TeamFunctionSourceInformation. Currently this
  exposes a single function allowing one to query for the currently
  active source code given a FunctionDebugInfo instance.
- Implement TeamFunctionSourceInformation on TeamDebugInfo.
- Pass TeamFunctionSourceInformation to Dwarf{Team,Image}DebugInfo.
  In turn, make use of it in DwarfImageDebugInfo::GetStatement() in
  order to determine whether to return the corresponding assembly
  or source statement.

With this piece of information, the debugger is now correctly able to
determine that the user is currently looking at disassembly despite debug
info being available, and consequently adjust its stepping behavior based on
that. Previously, the source code statement was always used, leading to it
not being possible to single step assembly lines in such a circumstance
without manually using run to cursor.

Other related cleanups:
- TeamDebugInfo now inherits BReferenceable directly, rather than relying on
  indirectly inheriting it from TeamTypeInformation.
- Remove BReferenceable from TeamTypeInformation. The latter is only an
  interface anyways, and inheriting that base class from multiple locations
  was causing GCC5 trouble when resolving BReference<TeamDebugInfo>, even
  when virtual inheritance was used.
2016-09-13 22:14:10 -04:00
Automatic Committer
7079e52233 Update usb.ids from www.linux-usb.org 2016-09-08 05:20:26 +02:00
Automatic Committer
f540a0fc86 Update pci.ids from pciids.sourceforge.net 2016-09-08 05:20:24 +02:00
Dario Casalinuovo
ac8ca41623 Fix StreamerPlugin reference counting
* BReferenceable deleted itself when the latest
reference was released causing a double free.
* The code now avoid to call the function when
we are about to delete the object.
2016-09-07 20:42:43 +02:00
Dario Casalinuovo
3ff901ac71 http_streamer: Fix different issues
* Cleanup object management.
* Remove Close() and use the destructor in place.
* Release listener sem on exit.
* Return when there's a request mismatch.
* Add some debugging.
* MediaPlayer crashes are fixed as result of the patchset.
2016-09-07 18:30:34 +02:00
Dario Casalinuovo
e3f2079964 AdapterIO: Remove unuseful Close() 2016-09-07 18:21:13 +02:00
Dario Casalinuovo
79bd3b4837 StreamerPlugin: Add reference count
* Keep the Streamer around until everyone released it.
2016-09-07 18:19:10 +02:00
Dario Casalinuovo
95a5e62515 MediaFile: Correctly delete the source on exit
* The delete flag of BUrl constructors was reset by _Init,
this lead to a zombie thread on the background under certain
conditions.
2016-09-07 18:02:34 +02:00
Gabriel Maia
c6b4e47a50 Screenshot: create destination folder if it doesn't exist
This ensures the artwork folder is created if it doesn't exist,
fixing the remainder of #10928.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2016-09-07 07:15:31 +02:00
Rene Gollent
584fd9619c libdebugger: Fix #12944.
LocatableFile:
- If there is no parent path, don't insert a path separator between parent
  and filename. This may be the case depending on how the source file was
  specified during compilation.

FileManager:
- When constructing an EntryPath from a LocatableEntry, ensure that the
  parent folder actually has a path string that isn't simply empty to ensure
  consistency with the raw dir/file case. Otherwise, hash lookups that are
  dependent on the parent dir being NULL if not specified will fail, causing
  us to not locate the file successfully. This was preventing us from updating
  source location information for make 4.2's main.c, as the latter was
  specified in such a way that the above combination of conditions would
  occur, and consequently when asking the FileManager to update the source
  location with the actual file, the entry couldn't be found in the table,
  and no information would be updated.
2016-09-06 22:56:52 -04:00
John Scipione
ed99a95f35 Tracker: Add list view menu to virtual directory window 2016-09-03 12:06:45 -07:00
John Scipione
8fdd2629eb Tracker: 32x32 icon size option in list mode
16x16 is same old default
32x32 is new and fun

Adjust start offset to depend on icon size

Remove the kColumnStart variable and instead use StartOffset()
method which calculates the column start offset based on the icon
size. When you switch between icon sizes in list mode recalculate
the first column width to make room for the icon or more text.

Add some padding to list height in large icon mode.
2016-09-03 12:06:44 -07:00
John Scipione
41b9b4ad9d Tracker: Remove some left behind code
A couple of lines of code were left behind in a previous
refactor. Code just checked some list items.
2016-09-02 22:01:08 -07:00
John Scipione
b339ee18c5 Tracker: Make mini mode default for list mode
but if you are in icon mode (like Desktop) use large icons instead.

This change will be important going forwards.
2016-09-02 21:59:49 -07:00
John Scipione
ee20ff95a4 Tracker: Style fixes
More style fixes
2016-09-02 21:02:06 -07:00
Humdinger
bb5847906b Updated rdesktop package
Old one wasn't installable because of outdated libcrypto dependence.
2016-09-02 17:01:11 +02:00
Jessica Hamilton
2da1cb75a4 EFI: device support for anyboot CDs.
I have tried to get normal ISOs working, but the bootloader doesn't
seem to detect any bootable partitions.
2016-09-03 01:58:41 +12:00
Jessica Hamilton
325b1e3787 EFI: add support for graphics mode output
* We can now switch between graphics and text modes, and display
  the splash screen
2016-09-02 19:02:35 +12:00
Jessica Hamilton
dbf1363b41 EFI: naive platform_allocate_region() implementation 2016-09-02 19:02:35 +12:00
Jessica Hamilton
96f4d68b2b EFI: check for boot keys
* Only supports spacebar for the boot menu, and escape for
  enabling debug output. Shift keys will not work.
2016-09-02 19:02:34 +12:00
Jessica Hamilton
c0bdc8bef5 bootloader: build objects in $(TARGET_BOOT_PLATFORM)
This separates the objects required for the various boot
loaders, allowing the build system to be able to build
for different targets alongside each other. Currently
only done for bios_ia32 vs efi, as both loaders will be
needed for the x86_64 images.
2016-09-02 19:02:34 +12:00
Jessica Hamilton
c0002a79e7 EFI: Implement heap 2016-09-02 19:02:33 +12:00
Jessica Hamilton
e2e1558a02 EFI: stub functions so we can call loader's main() function. 2016-09-02 19:02:33 +12:00
François Revol
495efc382b loader: Drop the HashMap for partition lookup by id
The HashMap constructor was called before the heap is initialized,
ending up calling malloc from the OpenHashMap constructor.

Oddly it was still working on x86 but broke other platforms.

Instead we add a Lookup() static method to Partition,
which by default walks gPartitions for the id,
and recursively calls itself on the children lists.

This means we must add a partition even temporarily to gPartitions
before Scan()ing it though.

Signed-off-by: François Revol <revol@free.fr>
2016-09-02 19:02:33 +12:00
Fredrik Holmqvist
735f1daee9 EFI: Implement console code. 2016-09-02 19:02:32 +12:00
Fredrik Holmqvist
bd0604764e Setup -fno-pic or -fpic in Architecture Rules.
EFI boot needs -fpic but all boot code was built with -fno-pic.
This is now set accordingly in HAIKU_BOOT_CCFLAGS and
HAIKU_BOOT_C++FLAGS.

Also setup compile flags for EFI platform.
2016-09-02 19:02:32 +12:00
Fredrik Holmqvist
211483cb51 EFI: Initial test EFI application
* Only set HAIKU_BOOT_PLATFORM to bios_ia32 if not defined
* Add gnuefi build feature
* Introduce BOOT_LDFLAGS, and move options for passing to linker
  into ArchitectureSetup
* x86_64 compile fixes for warnings in boot loader
* loader/elf.cpp: don't include ELF32 support when targeting EFI
* relocation_func.cpp: copy of the relocation code from gnuefi
  to make _relocate extern "C", and avoid including <efilib.h>
* boot_loader_efi.ld: copy of gnuefi's elf_x86_64_efi.lds,
  modified to include support for C++ constructors, etc. Keep in
  sync with the gnuefi package

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2016-09-02 19:02:29 +12:00
Automatic Committer
a8b89fbd8a Update pci.ids from pciids.sourceforge.net 2016-09-01 05:20:21 +02:00
John Scipione
8f3b807d64 A few more PRI macro substitutions
Tested on x86_64 build thanks to jessicah.

Should fix x86_64 build.
2016-08-30 16:54:03 -07:00
John Scipione
22fa1929e0 Use appropriate format macros in ERROR macro
(hopefully fixing x86_64 build)
2016-08-30 15:43:23 -07:00
John Scipione
5cf9407148 Revert "Tracker: Add some zoom padding in list mode"
This reverts commit f76147aa9a.
2016-08-30 13:40:48 -07:00
John Scipione
27c911e8bb Revert "Tracker: Add zoom padding in list mode take 2"
This reverts commit 7d009616aa.
2016-08-30 13:40:35 -07:00
Kacper Kasper
020362191a PowerStatus: Show extended info window on middle button click.
* Fixes #7473.
* Minor style cleanup.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2016-08-28 10:50:22 +02:00
Adrien Destugues
915ff0f535 intel_extreme: fix a warning on 64bit platform. 2016-08-27 09:38:06 +02:00
Adrien Destugues
2080509cb0 Fix some missing parentheses
* Problem found by gcc4.
2016-08-27 09:31:16 +02:00
Adrien Destugues
96658eaed9 elf.h: add some defines from Linux version
For completeness and compatibility.
2016-08-27 09:10:01 +02:00
Adrien Destugues
6980817672 Remove pthread.h include from netdb.h
- It is not needed in the .h, and makes gawk build fail.
2016-08-27 09:04:22 +02:00
Adrien Destugues
8a3177ff3f intel_extreme: enable Werror and fix warnings. 2016-08-27 09:03:56 +02:00
Adrien Destugues
8dd9b6f0cf intel_extreme: style fixes and clarifications
Thanks to Axel for review.
2016-08-27 08:34:45 +02:00
John Scipione
7d009616aa Tracker: Add zoom padding in list mode take 2
Add 16px to right and bottom of content when zoom

fixup of last commit
2016-08-26 23:07:18 -07:00
John Scipione
f76147aa9a Tracker: Add some zoom padding in list mode
Add some padding to the right and bottom of the content when
you zoom.

16px the size of a mini-icon
2016-08-26 23:00:14 -07:00
Axel Dörfler
d5f016704d app_server: Also log the incorrect version. 2016-08-26 21:29:00 +02:00
Adrien Destugues
187ad82a62 intel_extreme: fix wait_for_vblank on SandyBridge
There was some mixup with the interrupt registers, still:
- The driver uses 16-bit read/write, but on SandyBridge the register is
  32 bits
- There is a global interrupt enable bit, which must be set to unmask
  everything else
- The bits for vblank interrupt are not the same on SNB and later PCH
  based devices, and the code mixed the two.

Move the computation of the interrupt bits to an helper function, and
use it everywhere to make sure we always use the right bits.
2016-08-26 21:45:38 +02:00
Adrien Destugues
580cd77d0c PS/2: remove all the dead code
Sorry, missed that this would also become useless after removing the
resyncs. Thanks to Kacper for reviewing.
2016-08-26 19:04:35 +02:00
Adrien Destugues
8ae5ad2ccd PS/2: fix dead code.
hrev50506 extended the range of acceptable X and Y movement for PS/2
mouse. However, the value is sent on 1 byte (+ sign) so the check would
now always be valid.

Remove the check completely, we now rely only on bit 3 of the first byte
to be set (and not missing packets) to remain in sync with the mouse.

Thanks to Marcus Overhagen for reviewing the changes.
2016-08-26 07:10:01 +02:00
Adrien Destugues
adc0f76e64 More SandyBridge fixes and cleanups
Modesetting
===========

My previous hack was setting the transcoder registers, instead of the
display ones. Do that the way it is designed in the driver instead:

- If there is a transcoder, set its registers, but do not set the
display timings. The display will remain set at its native (and only)
resolution, and panel fitting will adjust the output of the transcoder
to match.
- If there is no transcoder, set the display registers directly to the
native resolution, as it was done on previous generation devices.
- fPipeOffset hacks no longer needed

DPMS
====

It seems the panel control register is not readable on PCH? Anyway, the
code would loop forever waiting for the bit to become unset when turning
the display off. Waiting seems to not be needed, so just remove it as
well as the "unlock" bit, which does not work for me and results in a
black screen.

Remaining hacks
===============

I still need to force HEAD_MODE_A_ANALOG to get output on pipe B (LVDS
display) working. I suspect something is common to the two pipes or not
allocated to the right one.

This version will have less side effects on other generations and help
with getting things to work on SandyBridge and possibly later devices.
Please test and report.
2016-08-25 23:17:12 +02:00