Commit Graph

58232 Commits

Author SHA1 Message Date
Adrien Destugues
7dba237f7f BSecureSocket: re-enable RSA cipher suite
my.justenergy.com allows only RSA, so we can't connect there without
this. Other websites may have a similar problem.

Also improve the handling of the error, as it was giving a generic
"general system error" to the user.

Fixes #13975.
2018-05-05 08:48:22 +02:00
Jessica Hamilton
f599721237 bootloader/efi: remove partition before adding to new list.
* A Node/Partition cannot be member of two lists at once. This
  resolves an issue where a partition cannot be found later
  due to corruption of a NodeList.
2018-05-05 14:14:35 +12:00
Jessica Hamilton
bb96d47d9b Revert "efi: force boot menu to show."
This reverts commit 3ceaa03c60.
2018-05-05 14:14:21 +12:00
Jessica Hamilton
3ceaa03c60 efi: force boot menu to show. 2018-05-05 14:11:26 +12:00
Alexander von Gluck IV
dd485ed444 elf: Add aarch64 and riscv defines
* Add some additional defines as well.

Change-Id: I0a40f6b80a634ddaf83a8c22b9726a6e1f49bd34
2018-05-04 18:32:33 +00:00
Alexander Coers
c334ab215a cpu_type.h: small fix for CPU detection
* since Core i5/Core i3 can have same model/family/stepping values
  additional string evaluation is needed

This fixes #12695
2018-05-04 06:32:48 +00:00
Philippe Houdoin
91077c485a /bin/shutdown: fixed bug, was returning non zero even on shutdown
success. Spotted by mcandre, thanks!
2018-05-03 12:22:45 +02:00
Jérôme Duval
1894e9b6a7 Add runtime_loader in secondary bootstrap packages.
add grist to runtime_loader source files.

Change-Id: I09c58b5cc1d57034632df99b4fb3c80e3ff49e3e
2018-05-02 16:46:02 +00:00
Jérôme Duval
fe11711026 virtio: add driver for the virtio balloon device
* how-to for qemu: command line option: -balloon virtio
* in the monitor view
    - to switch the vm size to 500MB: balloon 500
    - to display balloon info: info balloon
2018-05-02 14:24:40 +00:00
Niels Sascha Reedijk
2284eb4875 Add ALLPERMS and DEFFILEMODE to enable building on hosts with the musl c library 2018-04-30 11:11:11 +00:00
Jérôme Duval
eaa5720b74 Add x86 secondary arch to x86_64 cross repository.
Change-Id: I8b6ff4effa1469a56a02b0a6f30821bbbc3c62b6
2018-04-29 17:29:27 +00:00
Adrien Destugues
401c837afc multi_audio: remove some unused debug macros
We were #defining DEBUG here, which leads to some system-wide debugging
macros being always enabled as well (PRINT_OBJECT and the like). This
should be managed only using SetConfigVar in UserBuildConfig.

Remove the unused UNIMPLEMENTED and BROKEN macros because everything is
implemented, and nothing is currently known to be broken :)
2018-04-29 17:25:46 +00:00
Augustin Cavalier
648f0d5f08 libroot_build: Properly remap fs_attr_* functions.
This was done using macros before, which isn't the way we have things set up.
In theory that method should work, however if not all consumers include the
libroot_build headers properly, then it breaks in subtle but confusing ways,
which is not what we want at all.

Thanks to Jessica for advice.

Change-Id: Idd45df5547daecf8239932957088da03ddfccf87
2018-04-29 17:25:18 +00:00
Jérôme Duval
88c1a9d048 virtio_net: improve performance.
* use so many buffers as the queue can contain.
* queue receive requests as soon as possible.
* don't wait for transmit completion.
* interface can now be brought down and up.
* add locking around access to lists and virtio queues.
* iperf results: guest->host 400MBits/sec.

Change-Id: I6423e4afcb59f280d702893cc8d22a9ef908113a
2018-04-26 18:46:06 +02:00
Jérôme Duval
e1ac2a3e45 virtio_pci: write config in IO-space instead of PCI config space. 2018-04-26 18:07:42 +02:00
Jérôme Duval
988f999816 virtio_block: fix build nach API change. 2018-04-26 16:36:04 +02:00
Jérôme Duval
61cd7e85d7 virtio: add API to uninit a device.
* free interrupts, free queues, return to init state.
* this will be used by virtio_net on interface uninit.

Change-Id: I7c1e6facc37cf6bfe19628576fdf2c0bac9e5c38
2018-04-26 06:25:41 +00:00
Jérôme Duval
6e82e42859 virtio: refactor to have a handler per queue.
* enable to iterate on available entries in one interrupt call.
* negociate -> negotiate, (void *) -> (void* ), thanks axel and philippe!

Change-Id: Ie2d290797abcbf4c0f3cb5bfff71d091bb800fa6
2018-04-26 06:25:15 +00:00
Axel Dörfler
30764e3821 launch_daemon: Fixed getting data of stopped service
* If you stopped a service, and ran it manually, it would hang forever
  waiting for its port data.
2018-04-25 22:56:22 +02:00
Fredrik Holmqvist
86901205d0 Avoid arithmetic operations on void pointers
See what I did there?
2018-04-25 21:42:16 +02:00
Fredrik Holmqvist
6d34de21b8 Missing else in else if. 2018-04-25 21:41:33 +02:00
Fredrik Holmqvist
72c715ecbe Another while (( ..) 2018-04-25 21:41:33 +02:00
Fredrik Holmqvist
a7affb9189 The ' = ' character is no more. 2018-04-25 21:41:33 +02:00
Fredrik Holmqvist
b18b18ac3e Wrong order of arguments in header.
It is called from KernelInterface with Mount(&fs, server, serverName, path..
That is also what FileSystem.cpp says.
2018-04-25 21:41:33 +02:00
Axel Dörfler
a77aa747ea launch_daemon: Added basic logging facility
* The daemon now stores many events in am internal log.
* You can use "launch_roster log" to retrieve it.
2018-04-25 10:10:43 +02:00
Axel Dörfler
6d7b8a3088 launch_daemon: Renamed TeamRegistrator to TeamListener 2018-04-25 10:10:43 +02:00
Jérôme Duval
95cebb26c7 fat: fix gcc2 build 2018-04-24 20:32:40 +02:00
Jérôme Duval
7760bb460f ntfs: fake_read_attrib used the user buffer directly
It now uses user_strlcpy()
2018-04-24 20:06:05 +02:00
Jérôme Duval
b0bcd96bd7 fat: use the return value of strlcpy instead of strlen. 2018-04-24 19:54:00 +02:00
Fredrik Holmqvist
e3becd53ee Ternary operator proper precedence.
Going through PVS Studio blogs on Haiku.
2018-04-23 23:25:16 +02:00
Jérôme Duval
3a764d6a12 kernel: x86: add some msr and cpuid features
* for arch capabilities.
* for spec ctrl and pred cmd.
2018-04-22 18:03:16 +02:00
Axel Dörfler
7750fdcf18 vfs: _user_flock() did not use FS advisory locking calls
* The kernel's advisory locking implemenation must not be used if the
  file system has its own (ie. network file systems).
* Added ASSERT to free_vnode() that assures there is no locking left;
  I recently had a lot of them around.
2018-04-22 15:13:29 +02:00
Fredrik Holmqvist
58c99ce4d4 malloc_referenced adds +1 to int32 pointer so use its release 2018-04-22 12:47:30 +02:00
Fredrik Holmqvist
c0ceea9c79 Remove unused var and always true check. Clean redeclaration. 2018-04-22 12:09:56 +02:00
Fredrik Holmqvist
aa2c061c3d cppcheck: Shifting 32-bit value by 63 bits is undefined. 2018-04-22 11:47:15 +02:00
Fredrik Holmqvist
99400bbed0 Objs in array was deleted, but not array itself. 2018-04-22 00:12:08 +02:00
Zoltán Mizsei
c74be242c4 iwn: add working pci id for Intel 6235 2018-04-21 22:06:04 +00:00
Fredrik Holmqvist
c7fad27a8b Free ci on error 2018-04-21 23:37:01 +02:00
Fredrik Holmqvist
29208af825 Redundant '(' 2018-04-21 23:36:04 +02:00
Fredrik Holmqvist
5676dce83c memcmp on sizeof(x)==0 bytes fix 2018-04-21 23:34:16 +02:00
Adrien Destugues
1b4fdf606d intel_extreme: fix C++ syntax.
Thanks to tqh and cpcheck for finding this.
2018-04-21 22:12:26 +02:00
Jérôme Duval
853a76f1f3 vt612x: sync with FreeBSD 11.1. 2018-04-21 22:07:48 +02:00
Jérôme Duval
e68394b978 ar81xxx: sync with FreeBSD 11.1. 2018-04-21 21:55:58 +02:00
Jérôme Duval
dde876f9f8 kernel: pae paging: align *TableEntry() with 64bit paging
use SetTableEntry() in PutPageTableInPageDir() and PutPageTableEntryInTable().
2018-04-21 10:06:51 +00:00
Automatic Committer
6675afbae2 Update translations from Pootle 2018-04-21 07:13:23 +02:00
Automatic Committer
76a3fe60e2 Update translations from Pootle 2018-04-21 07:13:23 +02:00
Jérôme Duval
03df8bfcf2 kernel: vm: reduce stack usage in swap_init_post_modules().
* avoid a struct copy in PartitionScorer.
* reduce stack usage in get_mount_point().

Change-Id: I60a3161ba39e9a50eaae972b7ff5b4a26d6292fa
2018-04-18 12:37:02 +00:00
Jérôme Duval
1fb59be1d1 Fix some usages of BStackOrHeapArray.
Validates the buffer with IsValid() before actually using it. Thanks Rene!
2018-04-16 14:30:34 +00:00
Augustin Cavalier
43f5f35a80 configure: Make sure the output directory exists before running xattr tests. 2018-04-14 20:30:05 -04:00
Jérôme Duval
4b588b36ad virtio_scsi: avoid unbounded stack usage in ExecuteRequest(). 2018-04-11 23:45:50 +00:00