Commit Graph

60031 Commits

Author SHA1 Message Date
Che Vu Gia Hy
a0710a23d2 btrfs: Fix get object id from disk in wrong order
Change-Id: I15ab04ec55dd4e9318eff9eef65a5030bf5241b3
Reviewed-on: https://review.haiku-os.org/c/1390
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2019-04-06 21:47:33 +00:00
Augustin Cavalier
7a15c1cbc5 kernel: Add interrupts checks for switch_lock functions. 2019-04-06 13:55:45 -04:00
PulkoMandy
0788d17ae2 Fix missing absolute dir.
The variable is used after a "cd" so it must be absolute.

Change-Id: I8d591b8642179603249ac56a1fcac082f29c870c
Reviewed-on: https://review.haiku-os.org/c/1387
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-04-06 17:37:25 +00:00
Alexander von Gluck IV
162279b680 kernel/arm: Fix a few build regressions around types
Change-Id: I577e64397610bc48e4b7646c533de95d0024dd63
2019-04-06 08:55:00 -05:00
Alexander von Gluck IV
40fcf16358 kernel/riscv64: Add missing kernel_arg ranges to get build going.
Change-Id: Idf549a5e4d01e6dc8949ec1252296337e5ef970c
Reviewed-on: https://review.haiku-os.org/c/1380
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-04-05 14:29:23 +00:00
Alexander von Gluck IV
e0ec8de753 kernel/riscv64: ATOMIC64 FUNCS are not syscalls
Change-Id: I8696939ec2fab6f3960a9a41f0b5c9fcd6949760
Reviewed-on: https://review.haiku-os.org/c/1379
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-04-05 14:29:23 +00:00
Alexander von Gluck IV
45ebdd4217 kernel/riscv64: Fix assembly to disable/enable interrupts
Change-Id: Id4dc7360650e78a9bcadec634be97b279da2d77c
Reviewed-on: https://review.haiku-os.org/c/1378
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-04-05 14:29:23 +00:00
Alexander von Gluck IV
e21b752f13 libroot/posix: Add missing riscv64 knowledge
Change-Id: I49682d79f5e4b2dd981480636e7a55d25f11c9d1
Reviewed-on: https://review.haiku-os.org/c/1377
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-04-05 14:29:23 +00:00
Alexander von Gluck IV
d5ee175d98 libroot/riscv64: Add missing sigjmp's.
Change-Id: Id353f86571ddf5bc106af7c77f0bd3d22b5b7cbd
Reviewed-on: https://review.haiku-os.org/c/1381
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-04-05 14:29:23 +00:00
Augustin Cavalier
dd0667da66 kernel/locks: Don't panic on interrupts disabled in unlock().
We don't reschedule or block in here, so checking for interrupts
is needlessly strict. Sorry for the noise, forgot to remove this
before the previous commit.
2019-04-04 21:11:29 -04:00
Augustin Cavalier
93cf12432f kernel: Add checks for interrupts in rwlocks.
recursive_locks, mutexes, and semaphores already have them.
2019-04-04 20:56:33 -04:00
SuperPrower
fe3375770e intel_extreme.accelerant: create display modes list from VBT using create_display_modes()
For cases when EDID is not available but VBT information was retrieved,
previous code generated display mode list manually, potentially
incorrectly, causing the black screen during boot. This commit
fixes this by using a dedicated function, used for the
case where EDID is available (or VBT is not available).

Fixes #14280.

Change-Id: I95cfc5313260f0b9a01a98ba78e300b4383b6e32
Reviewed-on: https://review.haiku-os.org/c/1370
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-04-05 00:36:04 +00:00
Augustin Cavalier
26723de267 runtime_loader: Remove mistakenly added "sparc" from loop.
Should fix the build.
2019-04-04 19:29:20 -04:00
Augustin Cavalier
936e89e19d libroot/os: Reshuffle stack_trace.cpp a little more.
* Add missing "generic" inclusion on x86; fixes the build there.
 * Name the file the same way as the other files in its directory.
2019-04-04 19:26:01 -04:00
Jakob L. Kreuze
0f856497bd mediaplayer: Implement AppendM3uToPlaylist
Change-Id: I60a5146cae85ab7abb92a28ad142e5510c0a940e
Reviewed-on: https://review.haiku-os.org/c/1337
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-04-04 20:39:50 +00:00
Humdinger
a9b8a220a4 Magnify: Change cursor move shortcut
As OPT + cursor keys clashes with switching between open windows
(probably since the addition of Stack & Tile), let's use ALT + cursor instead.

Fixes #14975

Change-Id: I3e039e6afaa031453fb256cf642fc29633bd12e3
Reviewed-on: https://review.haiku-os.org/c/1345
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-04-04 20:35:21 +00:00
Jakob L. Kreuze
354e11bf3c Add mime_db entry for application/vnd.apple.mpegurl (M3U)
Change-Id: I80657fd815450003c0ae116bc16137375ee06837
Reviewed-on: https://review.haiku-os.org/c/1351
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-04-04 20:34:39 +00:00
PulkoMandy
b1ec65fcfe sparc: link the runtime_loader
Change-Id: Id30476480f4e4141935d6735209ecc0872dd6696
Reviewed-on: https://review.haiku-os.org/c/1367
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-04-04 20:31:25 +00:00
PulkoMandy
1cba023e0a sparc: fix support for elf in boot mode
Change-Id: I901a4e494dd5273a0aa433f08b94363b486c58e1
Reviewed-on: https://review.haiku-os.org/c/1366
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-04-04 20:31:25 +00:00
PulkoMandy
815a1596a6 openfirmware: support a.out bootloader
Apparently each architecture and manufacturer uses a different binary
format (I heard current POWER hardware uses elf).

Change-Id: I4f1b9977d0a9d5a700c2d50b36844d6e4640b68b
Reviewed-on: https://review.haiku-os.org/c/1365
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-04-04 20:31:25 +00:00
PulkoMandy
fea91fdc77 sparc: pci bus manager
Copied from PPC with the hooks for Apple hardware removed.
To be completed with the actual PCI bus implementation for Sun machines.
This is where we start doing machine specific stuff, apparently.

Change-Id: I06af4de9621e9d40593d153642478d928083e49a
Reviewed-on: https://review.haiku-os.org/c/1364
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-04-04 20:31:25 +00:00
PulkoMandy
d0ff1a1f2f openfirmware: fix mismatched prototype
Change-Id: I294608aa739bedef47c6c1f34fba0241444a8901
Reviewed-on: https://review.haiku-os.org/c/1363
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-04-04 20:31:25 +00:00
PulkoMandy
2f2d56e2e3 Move stack_trace.cpp to generic directory.
4 architectures are using it, so it is generic enough.
Make it error out for platforms where the stack grows in the other
direction. Another implementation can be added for them.

Change-Id: Ia52b5dd34da7b5ebcca0782af079c43d72ba3a8e
Reviewed-on: https://review.haiku-os.org/c/1340
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-04-04 20:31:25 +00:00
PulkoMandy
e8f58ba4be sparc: fix bootloader build
- Add various missing jamfiles
- Add required implementation stubs
- Update openfirmware jamfiles for multiboot support
- Update linker rules for sparc loader

Change-Id: I2d06c7a4d33827f58d82946687003f9a0dcb1b7d
Reviewed-on: https://review.haiku-os.org/c/1329
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-04-04 20:31:25 +00:00
waddlesplash
834a613e53 AboutSystem: Move Dario from the Current to the Past maintainers list. 2019-04-04 14:16:17 -04:00
Augustin Cavalier
b934184a12 packagefs: Remove some more HPKGv1-related classes.
These were now unreferenced following the removal of GlobalFactory
and the other v1-related code, so this commit should not be any
functional change.
2019-04-04 14:07:02 -04:00
Alexander von Gluck IV
d7c7d50e8f kernel/debug: Add riscv64 to core_dump 2019-04-04 09:09:54 -05:00
Alexander von Gluck IV
566e253f24 kernel: Fill remaining riscv64 architecture headers 2019-04-04 09:09:49 -05:00
Alexander von Gluck IV
04fbff9fdd build: Add 64-bit host detection for riscv64 hosts 2019-04-04 09:09:45 -05:00
Alexander von Gluck IV
117af7ca90 build: Fix BOOT_PLATFORM to KERNEL_PLATFORM on rv64/arm64 2019-04-04 09:09:41 -05:00
Alexander von Gluck IV
5e06ebe141 kernel/arch/riscv64: Correct some architecture headers 2019-04-04 09:09:38 -05:00
Alexander von Gluck IV
45b21f00ce riscv64: Drop duplicate KERNEL_LOAD_BASE 2019-04-04 09:09:34 -05:00
Alexander von Gluck IV
c0bb51001f HaikuPortsCross: Bump riscv64 bootstrap package version 2019-04-04 09:09:29 -05:00
Alexander von Gluck IV
c59cde3d69 riscv32: Drop any remaining mentions
* I added this early on, but to be honest, any interesting
  workstation class hardware would be riscv64.
* Since riscv32 is mostly embedded or low power, just drop.

Change-Id: Id36274c882c46e766268f2ab53eb1bd5f95227be
Reviewed-on: https://review.haiku-os.org/c/1352
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-04-04 13:23:32 +00:00
Alexander von Gluck IV
7a180033de docker/bootstrap: Fix sysroot stage variable
Change-Id: Icb7d83fd60d85a107601012f906ed7bf63f0eb61
2019-04-03 20:47:12 -05:00
Alexander von Gluck IV
e8b4366330 docker/bootstrap: Add sysroot stage flag to chroot tool
Change-Id: I7a6303cb11756b66d6d3379063f2402b3b38b7c6
2019-04-03 20:43:45 -05:00
Augustin Cavalier
95587710d1 Debugger: Call the GCC2 get_next_argument directly.
This codepath is only hit when we are using the GCC2 demangler,
so we should not use get_next_argument which tries to autodetect
what kind of symbol this is.
2019-04-03 10:42:35 -04:00
François Revol
eae1e95256 Add a proper (but ugly) icon for ThemeManager
Feel free to propose a better one ;-)

Change-Id: I481b730d8d715415dfdfc07c16aaa302b5724a7b
2019-04-02 21:55:17 +02:00
Alexander von Gluck IV
382c3f6e0c headers/config: Fix RISCV64 define typoed to 32
Change-Id: I20890218f5edd279ab1080432a4d91f5a7f64dee
2019-04-02 14:46:28 -05:00
Augustin Cavalier
9061e43c7d packagefs: Remove another reference to GlobalFactory.h.
Missed in previous push.
2019-04-01 19:23:31 -04:00
Augustin Cavalier
11e3c6dd26 packagefs: Open HPKG files as O_NOCACHE.
We have not one but two internal caches in packagefs for *uncompressed* data;
we do not need the underlying filesystem to cache the *compressed* data
needlessly.

This seems to be a negligible memory and boot speed improvement at best,
although it will likely help in low-memory situations in reducing
the pressure on the file cache (... actually it doesn't look like
the file cache responds to low resource notifications at all, which
may be relevant here.)
2019-04-01 19:02:00 -04:00
Augustin Cavalier
d1a0bc4fb5 packagefs: Remove support for HPKGv1.
The current version is "v2", and it has been since the final PM branch
was merged back in 2013, so it's unclear if anyone actually uses this
file format. The "package" command can still of course read these
files, it's just that packagefs will now not be able to.

It's very unlikely anyone is impacted by this change.
2019-04-01 13:58:30 -04:00
brjhaiku
f10ebdb1f7 btrfs
* Fixed coding style for all files under /src/add-ons/kernel/file_systems/btrfs
* rewrote crc_table.cpp to generate CRCTable.cpp that conforms to coding style.

Change-Id: I90fcc143320c7a7e9a6dc174f0ad82f40bb8a9b6
Reviewed-on: https://review.haiku-os.org/c/1194
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2019-04-01 09:30:08 +00:00
Augustin Cavalier
ad38b80fd5 BMessage: Fix R5 checksum calculation on 64-bit.
Change-Id: I0d418883bb66c6ad9e351c955e213f5cbc975e56
Reviewed-on: https://review.haiku-os.org/c/1336
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-03-31 17:39:11 +00:00
Alexander von Gluck IV
72a021f516 login: Add libbsd for explicit_bzero libmultiuser_utils.a 2019-03-30 19:30:06 -05:00
Augustin Cavalier
18a8edbf0e docs/develop: More reorganization.
* There is now a 'busses' folder, and the extant USB/SDHCI/Bluetooth/etc.
   docs now live in it, instead of various other places.
 * kernel/ports is now kernel/arch, like it is in src/system.
   SPARC documentation is now in there, too.
 * VM files (these are rather outdated) are now in kernel/vm.
 * SCSI ASC info removed, this is easily available online and
   it doesn't seem to be very relevant.
2019-03-30 18:00:46 -04:00
Augustin Cavalier
454b04ca27 HaikuConfig: Change _BEOS_COMPATIBLE_TYPES to only be defined on i386.
Hopefully soon we will have our first 32-bit non-x86 architectures.
No functional change for x86 32- and 64-bit intended.
2019-03-30 16:57:05 -04:00
Augustin Cavalier
5c93058ad7 BuildSetup: Stop defining __INTEL__ for the host tools.
Nothing in the tree uses __INTEL__ anymore, so this is no longer
needed.
2019-03-30 16:55:27 -04:00
Augustin Cavalier
5ffbe7d778 Change all references to "__INTEL__" to "__i386__".
They are functionally identical, but the former is a BeOS/Haiku-specfic
macro that we include in the compiler specs, and the latter is defined
by GCC.
2019-03-30 16:54:01 -04:00
Augustin Cavalier
1e60bdeab6 Remove all invocations of SetSubDirSupportedPlatformsBeOSCompatible. 2019-03-30 15:19:38 -04:00