Commit Graph

51594 Commits

Author SHA1 Message Date
François Revol
8ee781bf7b pc_serial: fix gcc4 warnings (hopefully) 2014-08-29 16:58:08 +02:00
François Revol
474174f6f3 pc_serial: add to haiku package. It's working \o/ 2014-08-29 15:21:44 +02:00
François Revol
a9ccc3a5ec pc_serial: mask THRE again when we're out of data 2014-08-29 15:21:43 +02:00
François Revol
b6708d7c47 pc_serial: wait for writes to complete on a sem
This avoids close being called too early and discarding output.
2014-08-29 15:21:42 +02:00
François Revol
6e7189d9b2 pc_serial: toggle THRE in IER to make VirtualBox happy
Not sure it's needed on real hardware yet.
2014-08-29 15:21:42 +02:00
François Revol
e9bbba8b84 pc_serial: cache IER and temporarily mask IRQs until dpc done
No need to be flooded by IRQs while filling in the FIFO...
2014-08-29 15:21:10 +02:00
François Revol
9ab497059d pc_serial: apply lcr parameters even when unmasking latch reg
No need to change line params even more if it was already the same before.
2014-08-29 15:21:08 +02:00
Adrien Destugues
9bc823ff5c HaikuWebKit 1.4.3.
Fixed for real, this time...
2014-08-29 12:34:33 +02:00
François Revol
02f6c664cc pc_serial: try to enable 64 byte FIFO
We should probably detect the UART type properly first,
but the IRQ handler also checks for the available FIFO length anyway.
2014-08-29 12:30:20 +02:00
François Revol
efbc894614 pc_serial: skip waiting for pending DPC in free hook
Since it's possible to fail queuing them, the count doesn't go down to 0,
and the process just hangs forever on exit. It might not be necessary anyway.
2014-08-29 12:30:19 +02:00
François Revol
aa05d85ca6 pc_serial: break instead of continue in irq handler
We don't want to busy loop, do we?
2014-08-29 12:27:52 +02:00
François Revol
f71a01ad56 pc_serial: add a termios member to store config across open cycles 2014-08-29 12:27:51 +02:00
François Revol
ddee8aa960 pc_serial: invoke scheduler when queuing DPC
We really want this to be done ASAP...
2014-08-29 12:27:51 +02:00
François Revol
c5c041a5ba pc_serial: fix KDL on close
It's working \o/
Just need to figure out why it waits for \n to transmit.

We now only destroy the cookies in the free hook.

Mention pending DPC as soon as when inside the irq handler.

Also limit the number of loops in the IRQ handler to avoid busy looping.
It only happened when testing with normal priority but you never know...
2014-08-29 12:27:51 +02:00
François Revol
7b97fd6dd8 pc_serial: use the tty module directly from the deferred IRQ
It still crashes on close sometimes but writing seems to work.
2014-08-29 12:27:50 +02:00
François Revol
a5d33e1ab1 pc_serial: try to skip the port used for kernel debugging output
Not that easy to handle all cases correctly,
but should work for the default case.
2014-08-29 12:27:50 +02:00
François Revol
1a6072a0a1 pc_serial: manually probe the default ISA ports
Since config_manager is basically a stub, and even VirtualBox
doesn't publish the serial ports as PCI devices, we must probe for them.

Ideally config_manager would find them in the device manager tree
which would have been populated from the PnP BIOS or even ACPI tables...
2014-08-29 12:27:49 +02:00
François Revol
7e613b4759 pc_serial: convert irq handler to use DPC
Let's hope we won't loose data because it.

We have to cache the value of IIR read from IsInterruptPending(),
because some conditions are acknowledged only by reading it...
2014-08-29 12:27:49 +02:00
François Revol
c6870d53dc pc_serial: WIP: kinda supports writes through tty module
It's still not fully working, and the tty module doesn't help
since it's not callable from an irq handler.
2014-08-29 12:27:49 +02:00
Stephan Aßmus
4a02fc4f42 HaikuDepot: Sync defined categories with web-app.
Also test all (currently) possible categories when retrieving package info.
2014-08-29 10:45:54 +02:00
Adrien Destugues
2d5dbc78c4 Add support for my Core i3 integrated graphics. 2014-08-29 09:37:44 +02:00
Adrien Destugues
9e616c6b9e Fix HaikuBuildCompatibility to not define atmics anymore.
This reverts commit 34dbbb65fd.
Instead, we can remove thos from HaikuBuildCompatibility and things will work fine, unless one try t build Haiku on BeOS (this isn't
supported anymore) or a very old Haiku which esdon't have those.
2014-08-29 09:37:44 +02:00
Julian Harnath
72ec5a3630 Use correct PCI register base address for newer Radeon chips
* Radeon chips since Bonaire use a different PCI register base
  address. Select the correct one depending on chipset generation
  (values from Linux driver).

* Makes radeon_hd work for newer APUs/GPUs (tested with Kabini APU).
2014-08-28 22:21:50 +02:00
Fredrik Holmqvist
49b9fce5ec strcpy had the wrong arg order. 2014-08-28 22:01:25 +02:00
Fredrik Holmqvist
f63a0d873e Use strcpy, fix style issues. 2014-08-28 19:54:37 +02:00
Adrien Destugues
34dbbb65fd Make atomics extern "C" again.
Pawel changed the implementation but I see no reason to make those available only from C++, so it must be an oversight.
Fixes building Haiku on Haiku which otherwise hits a mismatch in build compatibility headers.
2014-08-28 17:44:09 +00:00
Fredrik Holmqvist
fbe9d6de53 Add a global log GPE handler, enable all runtime GPE's.
For now we only log messages.
2014-08-27 22:54:23 +02:00
Fredrik Holmqvist
c5baf46055 DRY - Use a helper function to check and log failures. 2014-08-27 22:54:22 +02:00
Fredrik Holmqvist
0842eba04e Use ACPICA defaults, don't set interpreterslack to true anymore.
ACPIA has internal code to detect and fix most problems now.
2014-08-27 22:54:22 +02:00
Fredrik Holmqvist
278d57f27b Fix warning printf should use %d. 2014-08-27 22:54:22 +02:00
Adrien Destugues
22491e1491 WebPositive: Fix build
I'm not so happy with this solution, but I'm out of ideas for a better
one.
2014-08-27 19:05:33 +02:00
Jérôme Duval
88ef93a33c RegularImage: filter translators based on features. 2014-08-27 17:49:52 +02:00
Jérôme Duval
fb35c07a7e Add lib dependencies to Haiku packages.
* Thanks Augustin for the reminder!
2014-08-27 17:48:19 +02:00
Adrien Destugues
55149ef0ed HaikuWebkit 1.4.2 for x86_gcc2.
While the slowness problems from 1.4.1 are gone, there are still many
problems of text not being drawn when the page is scrolled.
2014-08-27 15:33:06 +02:00
Adrien Destugues
742b3fdd4c More packages for ARM microcontrollers development.
* Complete version of arm_none_eabi_gcc with newlib
* arm_none_eabi_newlib package
* dfu-util (for flashing stm32 chips) and libusb
2014-08-27 07:46:45 +02:00
luroh
d64b771b96 Fix offline installation of iprowifi2100 and iprowifi2200 firmware.
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2014-08-26 23:10:37 +02:00
luroh
d76361c8a8 Add iprowifi2100 firmware to image.
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2014-08-26 23:10:31 +02:00
Jérôme Duval
c4696b3071 PSDTranslator: Localization. 2014-08-26 21:28:14 +02:00
Jérôme Duval
82e60cd5ec ICNSTranslator: use outsourced package libicns
* clean up Copyrights section.
* libicns becomes a default package
2014-08-26 20:39:10 +02:00
Jérôme Duval
d977c0da56 BuildFeatures: add a feature for libicns 2014-08-26 20:26:31 +02:00
Jérôme Duval
9cd9e5651b Update jasper packages 2014-08-26 20:14:36 +02:00
Paweł Dziepak
72a446e10b libroot/x86_64: implement get_cpuid() in user mode
cpuid is available in user mode as well and it doesn't look like there
are going to be any x86 platforms with significantly different CPUs anytime
soon.

Signed-off-by: Paweł Dziepak <pdziepak@quarnos.org>
2014-08-26 19:01:37 +02:00
Paweł Dziepak
6d70d75a8e libroot/x86_64: rewrite system_time[_nsecs]() to C++
No functional change intended, just code deobfuscation.

Signed-off-by: Paweł Dziepak <pdziepak@quarnos.org>
2014-08-26 19:01:37 +02:00
Jérôme Duval
58ec759995 Add libicns packages. 2014-08-26 18:35:29 +02:00
Jérôme Duval
fdfe641dca JPEG2000Translator: use outsourced Jasper package
* fixes for API changes with newer version of Jasper.
2014-08-26 17:47:25 +02:00
Jérôme Duval
e14f00e5e6 WebPTranslator: fix build breakage introduced in hrev47739. 2014-08-26 17:05:46 +02:00
Paweł Dziepak
2268a48350 kernel/x86_64: use C++11 style static assert
Signed-off-by: Paweł Dziepak <pdziepak@quarnos.org>
2014-08-25 23:07:32 +02:00
Paweł Dziepak
4b75a1e237 kernel/x86_64: implement x86_swap_pgdir in C++
No reason not to inline this function.

Signed-off-by: Paweł Dziepak <pdziepak@quarnos.org>
2014-08-25 23:07:29 +02:00
Paweł Dziepak
1eba40776d kernel/x86_64: rewrite cpuid.S -> cpuid.cpp
Just getting rid of some assembly, no functional change.

Signed-off-by: Paweł Dziepak <pdziepak@quarnos.org>
2014-08-25 23:07:22 +02:00
Paweł Dziepak
721a07ac24 libroot: remove ATOMIC_FUNCS_ARE_SYSCALLS
GCC knows whether these functions need to be implemented using syscalls
(or more clever solutions like in Linux) and calls libgcc in such case.

Signed-off-by: Paweł Dziepak <pdziepak@quarnos.org>
2014-08-25 23:07:18 +02:00