57974 Commits

Author SHA1 Message Date
Automatic Committer
42b3847379 Update translations from Pootle hrev51800 2018-02-23 13:15:49 +01:00
Jérôme Duval
ee1521b957 pci: map msix maps for the kernel only. hrev51799 2018-02-22 22:44:56 +01:00
Automatic Committer
a477cca575 Update translations from Pootle hrev51798 2018-02-17 07:04:34 +01:00
John Scipione
940a3a2322 Revert "build/libgnuregex: Remove."
This reverts commit ca087b05323d3c05f7fe807df017ce4133604b67.

Mac OS X requires libgnuregex for Keymap
hrev51797
2018-02-16 16:45:11 -08:00
Alexander G. M. Smith
f12d3b3477 Update BListItem::SetHeight() docs with selection box warning.
The cached top coordinate of each BListItem isn't updated when you
change the height of the item, leading to confusing highlighting and
incorrect mouse clicks.  Rather than fixing it, this just documents a
workaround or two to force an update of the cached coordinates.
hrev51796
2018-02-17 00:26:34 +00:00
Autocommitter
a298f79ff9 Update translations from Pootle hrev51795 2018-02-11 10:21:10 +01:00
Jérôme Duval
bec80c1ced white space cleanup hrev51794 2018-02-10 19:34:43 +01:00
Jérôme Duval
718d7149b1 white space cleanup hrev51793 2018-02-10 16:15:37 +01:00
Jérôme Duval
e2e571c035 usb_raw: use user_memcpy to read/write the user buffers.
also check buffer addresses passed through structures. For transfers, first compute
the direction of the transfer, to copy before or after the actual transfer.
hrev51792
2018-02-08 13:54:06 +01:00
Jérôme Duval
f1549b1611 usb_hid: use user_memcpy to read/write the user buffers.
also check buffer addresses.
2018-02-08 13:31:15 +01:00
Humdinger
2539550c6e Improved Belarus flag hrev51791 2018-02-05 21:21:04 +01:00
Rene Gollent
770075026c Debugger: Rework type handlers to allow for custom selection.
TypeHandler:
- Add name field for presentation purposes. Adapt subclasses accordingly.

TypeHandlerRoster:
- Add methods to count and retrieve all type handlers for a given type,
  and adjust CreateValueNode to allow for passing in an explicit handler.
  Adjust callers accordingly.

VariablesViewState:
- Add helpers to store an explicitly chosen type handler for a node.

TypeHandlerMenuItem:
- ActionMenuItem subclass that takes care of reference management
  for its contained type handler.

VariablesView:
- Add context menu for choosing type handlers if applicable. Implement
  support for invoking said type handlers in a similar manner to explicit
  typecasts.
- Adjust saving/restoring the view state so that hidden nodes are taken
  into account as well. This is necessary since it may be the case that
  the handler had to be applied to the hidden child rather than the visible
  node (i.e. the BMessage handler when applied to a pointer to a BMessage).

All together, these changes allow choosing to switch between views of a type
when the Debugger has multiple handlers for it. For example, for BMessages
this allows switching between displaying the raw underlying structure vs
the decoded message content.
hrev51790
2018-02-04 14:13:01 -05:00
Jérôme Duval
401fb209ea kernel: use x2apic on hypervisor, or if already enabled.
* this can be disabled per safe mode setting.
hrev51789
2018-02-04 19:08:53 +01:00
Jérôme Duval
ac690cf148 glue: correctly support different architectures.
* use MergeObject even if we don't need the merged object: the rule does what
is needed and is standardly used for instance in libroot.so.
* add a grist to source files for the bootstrap glue.
hrev51788
2018-01-31 22:57:56 +01:00
Andreas Faerber
b71f9969c9 Fix OpenPIC hrev51787 2018-01-31 20:27:34 +00:00
Andreas Faerber
0ae2a0c4d7 Fix device type check
B_DEVICE_TYPE is a 16-bit numeric ID.
hrev51786
2018-01-31 20:26:11 +00:00
Jérôme Duval
66fa3b1847 kernel: Add set_clac and clear_ac() definitions on non-x86 platforms. hrev51785 2018-01-31 19:32:46 +01:00
Jérôme Duval
272a3e2ced Build: in ArchitectureSetup, use the cpu variable instead..
of the HAIKU_ARCH variable, which is the primary architecture cpu.
hrev51784
2018-01-31 18:32:35 +01:00
Filip Maryjanski
51290f11aa ScreenSaver: add live update of screensavers list.
Fixes #13956

Change-Id: Icfc26c1617541f030ece31d36f1e3bb0c2ec96b0
hrev51783
2018-01-31 03:16:41 +00:00
Jérôme Duval
9dd4d2dd05 kernel: support for Intel SMAP and SMEP on x86_64.
SMAP will generated page faults when the kernel tries to access user pages unless overriden.
If SMAP is enabled, the override instructions are written where needed in memory with
binary "altcodepatches".
Support is enabled by default, might be disabled per safemode setting.

Change-Id: Ife26cd765056aeaf65b2ffa3cadd0dcf4e273a96
hrev51782
2018-01-30 20:05:39 +00:00
Jérôme Duval
43e75989a6 libnetwork: link against the arch specific libbsd and libutil. hrev51781 2018-01-30 19:19:18 +01:00
Jérôme Duval
1a77020df1 libutil: add hybrid support. 2018-01-30 19:19:18 +01:00
Jérôme Duval
7e4c719dbb Fix x86 bootstrap on x86_gcc2. 2018-01-30 19:19:18 +01:00
Axel Dörfler
08a4536b1f BMessage: Added missing [Get|Set]Pointer()
* SetPointer() was declared, but not defined.
hrev51780
2018-01-29 21:43:21 +01:00
Jérôme Duval
857d600ae1 Add missing libroot stub on x86 (different from x86_64). hrev51779 2018-01-29 17:47:41 +01:00
Jérôme Duval
c676a5c19e Make the Haiku package not depends on noto_sans_cjk_jp ...
except for regular builds.
hrev51778
2018-01-29 15:59:00 +01:00
Jérôme Duval
86ae71e8ee bootstrap: add missing curl and less packages for x86_gcc2. 2018-01-29 15:58:39 +01:00
Andrew Lindesay
80a272eed8 HaikuDepot : Changelog, Remove old API and Version Bump
This change re-instates the change-log function (TRAC#13827) that was
dropped in earlier changes.  Also now-disused API handling logic is
removed.  A small code-style fix is made and the version of the
application has been incremented so that this version's logic can later
be detected by the HDS application server.
hrev51777
2018-01-28 12:43:26 +01:00
Jérôme Duval
1603eec4a4 kernel: vm: allow mmapping of the last page of the userspace. hrev51776 2018-01-27 17:15:52 +01:00
Jérôme Duval
3bcf027203 auich: use user_memcpy to read/write the user buffers.
* also check buffer addresses passed through structures.
* map registers kernel only.
* alloc dma descriptors kernel only.
hrev51775
2018-01-25 20:35:39 +01:00
Jérôme Duval
13daa9299e Fix initial stack alignment on 64-bit systems.
gcc does re-align the stack in the main() function prologue, however,
we still need to set the right alignment for other cases: thread entry,
.init and .fini code that is executed before main() is called or after
it has returned, and signal handlers which may use a separate stack.

Part of #10509
hrev51774
2018-01-24 07:59:55 +00:00
Jérôme Duval
34cdda1dd5 kernel: x86: enable writes before patching.
Follow up for commit a2021292d4778d374b601333976c75fad0522a73.
Binary patching would otherwise fail after the kernel text area
becomes read-only.
hrev51773
2018-01-23 17:59:41 +01:00
Jérôme Duval
c8fcb2a04e udis86: Add clac/stac instructions for SMAP.
still in a PR:
e9dfa2d79a
hrev51772
2018-01-22 20:06:55 +01:00
Fredrik Holmqvist
ff2e2f8198 Upgrade to ACPICA 20180105
Tested on x86_64 and x86_gcc2, works on my machine and most likely fixes
that was most likely due to missing lock sync in previous ACPI upgrade.

 * Redid some of kallisti5's work as it was easier to start from earlier
   version.

 * Evaluating 64 bit physical addressing on 32 bit Haiku again as this
   was likely the cause of pagefaults (#12377):
"Implemented internal support for full 64-bit addresses that appear in all
Generic Address Structure (GAS) structures. Previously, only the lower 32
bits were used. Affects the use of GAS structures in the FADT and other
tables, as well as the GAS structures passed to the AcpiRead and
AcpiWrite public external interfaces that are used by drivers. Lv Zheng."

 * Mostly bugfixes in ACPICA
hrev51771
2018-01-21 20:09:45 +01:00
Fredrik Holmqvist
3f04c8352e Revert "acpica: Upgrade to 20170303"
This reverts commit 0bc647d605e2731a1b88d970eb755c0a514df128.
2018-01-21 20:09:45 +01:00
Ho Tuan Kiet
9c1f9724c2 Fix various unsafe usages of strcat/strcpy
Coverity ID: 608930, 743872, 743873, 743874, 608932, 608933, 1424961, 609034
Change-Id: I2702dfb402df7eee500617cb9b8d6f567296fc13
hrev51770
2018-01-19 06:32:43 +00:00
Jérôme Duval
4f2fac067d hda: use user_memcpy to read/write the user buffers.
also check buffer addresses passed through structures.

Sponsored-by:	https://liberapay.com/korli
hrev51769
2018-01-18 21:19:03 +01:00
Jérôme Duval
755bade8ba Factorize multi audio drivers control function.
With user buffer checks and copies about the same for every driver, it seems logical
to avoid duplicate this code.

Sponsored-by:	https://liberapay.com/korli
2018-01-18 21:19:03 +01:00
Leorize
1a59e1d91c gnu: introduce memmem(3)
Implementation imported from OpenBSD

Change-Id: If2620dc7ed373650bb3dabb0f22c2cd84b9e0ef9
hrev51768
2018-01-17 19:39:18 +00:00
Jérôme Duval
964fb0c378 kernel: make arch_kernel.h for x86 C safe. hrev51767 2018-01-17 19:20:59 +01:00
Jérôme Duval
8d794763d5 dprintf: remove redondant user address check.
check user_memcpy success.
2018-01-17 19:19:36 +01:00
Jérôme Duval
181bcc8c78 Include libedit by default for Debugger. hrev51766 2018-01-16 20:48:05 +01:00
hyche
3f43dd8710 btrfs: Fix btrfs_dir_entry doesn't read data from disk correctly. hrev51765 2018-01-16 16:21:46 +00:00
Jérôme Duval
483c45843d kernel: x86: add some more cpuid flags. hrev51764 2018-01-15 20:18:43 +01:00
Jérôme Duval
05a859ebd7 usb: map registers or allocate area for the kernel only. hrev51763 2018-01-15 19:52:13 +01:00
hyche
ce029df2d8 btrfs: Fix wrong function name in log error hrev51762 2018-01-14 15:02:20 +00:00
hyche
5686d4e190 btrfs: Init status, prevent from unitialized check 2018-01-14 15:02:20 +00:00
hyche
b568492fbd btrfs: Make SearchSlot() look cleaner 2018-01-14 15:02:20 +00:00
Leorize
cedb0e1179 uchar: Introduce C11 uchar.h
Currently this implementation only supports UTF-32
hrev51761
2018-01-14 14:42:34 +00:00
Jérôme Duval
a2021292d4 kernel: Binary code patches on x86.
This will be used to support SMAP.

Sponsored-by:	https://liberapay.com/korli
2018-01-14 13:20:38 +01:00