Commit Graph

56655 Commits

Author SHA1 Message Date
Rene Gollent
4ee47fe9e8 BListView: Cleanup, no functional change.
- Rename _FontChanged() to _UpdateItems() to more accurately reflect its
  purpose, as discussed on commits list. Adjust callers accordingly.
2016-12-25 16:16:43 -05:00
John Scipione
8f449285f2 App Server DefaultWindowBehaviour: style fixes only
Compare bitmasks against 0 explicitly
Replace integer constant 0 with floating point constant 0.0f

No logic reversals I promise
2016-12-24 19:01:47 -08:00
Adrien Destugues
0f83996ab0 Fix dependencies on libpng16.
The libpng16 package has no "libpng" anymore, only a "libpng16". Adjust
dependencies of Haiku and Haikuwebkit to this.
2016-12-24 18:18:33 +01:00
Jessica Hamilton
d2e18d6462 efi/video.cpp: style fix. 2016-12-23 18:58:26 +13:00
Jessica Hamilton
4419d699ec partitioning: pass along reference to parent when uninitializing.
* Fixes problems with setting the partition name after uninitializing
  a partition in DriveSetup. Previously, UninitializeJob() was
  followed by SetStringJob(), but the kernel was updating the
  change counter for the parent partition when uninitializing a
  partition, leading to SetStringJob() having an incorrect change
  counter for the parent partition. Now the parent change counter
  will be correct when SetStringJob() runs.
2016-12-23 18:53:15 +13:00
Jessica Hamilton
9ba5f87313 disk_systems: set filesystem name from partition name if exists.
* With GPT, partition entries store the name of the partition, so
  use the stored name to initialise the name for the file system
  when formatting.
2016-12-23 18:53:15 +13:00
Jessica Hamilton
e495a73b39 partitioning: set partition name in partition table if supported. 2016-12-23 18:53:15 +13:00
Jessica Hamilton
222c84407a gpt: return size of created strings in to_utf8/to_ucs2. 2016-12-23 18:53:15 +13:00
Murai Takashi
32624578b6 utility.cpp: Add encoding / decoding UTF-16LE. 2016-12-23 18:53:15 +13:00
PulkoMandy
95a4aac572 Update libxml2 and libpcre. 2016-12-22 20:17:36 +01:00
Automatic Committer
14eb2e8a14 Update pci.ids from pciids.sourceforge.net 2016-12-22 05:20:16 +01:00
Adrien Destugues
deb9517601 Update NetSurf to version 3.6 2016-12-21 22:35:49 +01:00
Alexander von Gluck IV
db1dfaf891 Revert "Add SoftwareUpdater to regular image"
This reverts commit 19d8d9fa39.
2016-12-21 13:16:26 -06:00
PulkoMandy
c9ee95694e More updated packages from the buildbots. 2016-12-21 07:21:54 +01:00
Rene Gollent
078b08e4ed BListView: Fix missing update for list items.
- According to the Be Book, one of BListItem::Update()'s responsibilities
  is updating the item's internal height/width. However, while we were
  providing such updates in the case of the item initially being added
  to the view, or when the list view's font was changed, we were not doing
  so on frame resize. This would lead to items having a stale width field
  in such a circumstance, leading to possibly incorrect behavior in apps
  relying on that field to be correct.
2016-12-20 22:33:26 -05:00
Jérôme Duval
a835815beb Sync x86_64 packages with Haikuports trunk.
bash_completion-2.3 is marked broken with "!any", which is now correctly
handled by haikuporter, thus implies a downgrade to the stable 2.1.
2016-12-20 21:49:46 +01:00
Humdinger
7b119fd1f5 Update package Sanity to v0.6 2016-12-20 16:38:31 +01:00
PulkoMandy
1d7f4f4d4d Update some packages from the buildbots
There are some delays in making the actual package repo generated by the
buildbot go live. Until then, I'm going to manually update the existing
repositories with the built packages, so people can start to experiment
with them and report any new issues.

There are more updates coming, but I'm doing them gradually so we can see
which set of packages triggers a regression, should one happen.
2016-12-19 21:12:05 +01:00
Jessica Hamilton
4ff3f10852 UEFI: improve setting up of the framebuffer.
* Even if we get dropped into the boot menu, we still want
  to have the framebuffer enabled, else we never switch
  back into graphics mode.
2016-12-19 20:18:31 +13:00
Humdinger
ebdee3ef35 Update BurnItNow package for gcc2hybrid 2016-12-18 19:20:00 +01:00
Dario Casalinuovo
51844723d3 MediaConnection: Remove redundant IsInput/IsOutput 2016-12-18 15:15:30 +01:00
Jérôme Duval
9969137ced fork(): Follow-up fix to 17b2a3cfc.
* Ingo rightly noticed that the defer_signals counter is reinitialized on
  thread's user area creation. Setting the flag THREAD_CREATION_FLAG_DEFER_SIGNALS
  indeed gives the expected behavior, deferring signals until undefer_signals() is
  called in the child thread. Thanks for the review and fix suggestion.
* Added a simple test showing the values of the defer_signals counter after fork().
2016-12-18 09:44:03 +01:00
Jessica Hamilton
941c240ab0 libroot/fork: fix gcc2 compilation. 2016-12-18 14:42:06 +13:00
Jessica Hamilton
80bc54a59a partitioning_systems/gpt: write the protective MBR & bootloader
* This fixes booting Haiku when creating a brand new GPT
  partition layout with the BIOS/MBR.
* This also fixes boot issues with UEFI based on OVMF, which
  rejects GPT partitions that don't have the protective MBR.
2016-12-18 14:42:05 +13:00
Jessica Hamilton
bad25b4baa disk_systems/gpt: Remove unused dependency on Header.cpp 2016-12-18 14:42:05 +13:00
Fredrik Holmqvist
9e487d8d74 UEFI: serial debugging support.
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2016-12-18 14:41:54 +13:00
Jérôme Duval
17b2a3cfcb fork(): Defer signals and lock the heaps while _kern_fork().
* Also defer signals while registering fork hooks.
* While malloc provides fork heap hooks which lock the heaps and unlock/reinit,
  malloc_debug provides empty hooks.
* Ideas suggested by Ingo, patch reviewed by him. Thanks a lot!
* Also call fork parent hooks on failure.
* Solve locks-up when combining multithreading and process forking, should help
  with #13111.
2016-12-17 21:11:15 +01:00
Jérôme Duval
194afffd85 user_thread.h: use struct keyword to be usable in C. 2016-12-17 20:17:38 +01:00
Augustin Cavalier
4b235ebeb9 test_app_server: Fix the build.
It doesn't work, however; it throws an error message about failing to connect
to a port, which I presume was caused by the launch_daemon changes. If
Axel could take a look at it, that'd be much appreciated...
2016-12-17 14:03:13 -05:00
Augustin Cavalier
7127f7320a FontEngine: Fix warnings (and thus the build) of subpixel rendering code. 2016-12-17 14:03:13 -05:00
Dario Casalinuovo
75b90c42e5 MediaConnection: Fix buffer size and duration redudancy
* There's no need to supply ways to mismatch the buffer duration
and size. Anything should reflect the media_format, this is at least
fixed on API level.
2016-12-17 19:10:50 +01:00
Dario Casalinuovo
2fdc256d60 BMediaOutput: API cleanup 2016-12-17 19:10:50 +01:00
Dario Casalinuovo
63cb26c536 MediaClient: Hide timesource related API
* There's no point actually in providing BTimeSource dependant
functionality. If and when there will be need for something like
that, possibly never, an higher level solution will be integrated.
2016-12-17 19:10:50 +01:00
Dario Casalinuovo
a9a63d1ba5 MediaClient: First valid ID for connections is 1 2016-12-17 19:10:50 +01:00
Humdinger
b31b4c62d0 Updated quicklaunch to an installable package. 2016-12-16 09:04:51 +01:00
Automatic Committer
1dab31cf4f Update pci.ids from pciids.sourceforge.net 2016-12-15 05:20:14 +01:00
Alexander von Gluck IV
015754479e softwareupdater: Start filling in package kit code 2016-12-12 20:52:46 +00:00
Jérôme Duval
b2251661bc Add rtmpdump package for x86_64.
* update libgcrypt and wpa_supplicant packages for x86_64.
2016-12-13 20:15:28 +01:00
Henry Harrington
e2b610b4b3 UEFI: CR0.WP must be set before entering the kernel.
If WP is not enabled then the kernel can freely write to read-only user
pages, which breaks copy-on-write.

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2016-12-14 06:02:19 +13:00
Jessica Hamilton
b521a45ec2 Revert "vm: Try harder to allocate early physical pages."
This reverts commit 21e3ac6cf5,
which was accidentally applied twice, missed during rebase.

Originally applied in 601b2f7eda.
2016-12-13 22:24:12 +13:00
Jessica Hamilton
48494219eb Add a dumb framebuffer driver.
This is separate to the VESA driver, as the VESA driver requires
using the VBE BIOS. Under UEFI, we don't have the VBE BIOS, nor
are we able to switch modes after leaving UEFI Boot Services, so
a dumb framebuffer driver seemed like the easier way to approach
the problem.

The framebuffer & vesa drivers now test for the presence of the
VESA_MODES_BOOT_INFO boot item to distinguish between which driver
to use. Also added check for the VESA mode count to determine
whether to add the VESA_MODES_BOOT_INFO item.

UEFI video updated to explicitly zero out the VESA and EDID
boot data.
2016-12-13 21:41:10 +13:00
Dario Casalinuovo
ab96594f4c MediaEncoder: Fixes CID 1347183: Control flow issues (NO_EFFECT)
* An unsigned value was checked for negative values.
2016-12-13 00:22:06 +01:00
John Scipione
3db3193290 BNode: CID 602323 explicitly ignore fCStatus return value in ctor
This is what it this whole push was all about
2016-12-12 10:36:59 -08:00
Jérôme Duval
5967215c7b Sync x86_64 packages with Haikuports trunk. 2016-12-12 17:35:23 +01:00
Michael Lotz
1f7e5bde38 kernel: Fix NULL dereference in ThreadTimeUserTimer::Schedule().
The SpinLocker was always initialized to fThread->time_lock even though
fThread may be NULL. This looks like a simple oversight as the rest of
the method handles fThread being NULL and the team variants of these
timers have very similar logic and do the NULL check as well.

This fixes the last remaining KDL in the posixtestsuite.
2016-12-12 11:55:06 +01:00
Dario Casalinuovo
83cd87d033 SimpleMediaClient: Use virtual inheritance to reduce duplication 2016-12-11 19:16:19 +01:00
Dario Casalinuovo
d1742cc336 MediaInput/Output: Inherit base virtually 2016-12-11 19:16:18 +01:00
Alexander von Gluck IV
1e8a560196 SoftwareUpdater: Handle message events, Exit on cancel press. 2016-12-11 10:19:06 -06:00
Rene Gollent
c5dcedecae Debugger: Fix oversight.
DebugReportGenerator:
- In the case where the function was already disassembled beforehand,
  we weren't retrieving the statement, leading to a null pointer
  dereference.
2016-12-11 11:09:53 -05:00
Michael Lotz
40044981eb FreeBSD compat: Align allocations according to FreeBSD man page.
According to the FreeBSD kernel malloc man page the allocator is
expected to return power of two aligned addresses for allocations up to
one page size. While it also states that this shouldn't be relied upon,
at least our (directly copied) bus_dmamem_alloc expects it and drivers
may depend on it as well. Looking through the FreeBSD commit logs, this
expectation seems to be rooted quite deeply.

This fixes watchdog timeouts in the ipro1000 driver under KVM and may
help with #11953. It might also be related to #9099 and #9601 as those
seem memory allocation related as well.
2016-12-11 01:09:17 +01:00