Commit Graph

51519 Commits

Author SHA1 Message Date
Michael Lotz
63cf3cfa11 EHCI: Simplify short packet logic to use alternate pointer.
The alternate pointer is the software equivalent of the alternate
physical address in the hardware queue head part. The controller
follows that path, so we can follow the alternate pointer as well.
Simplifies and generalizes the logic.
2014-08-31 12:08:16 +02:00
François Revol
66b9a96b18 typo 2014-08-31 02:06:37 +02:00
Ithamar R. Adema
586995da47 ARM: make ARM C++ unwind stubs panic
As suggested by Francois, thanks for paying attention!
2014-08-30 16:50:46 -07:00
Ithamar R. Adema
780ca2bd15 ARM: abort() is already pulled in using kernel_util.o
It was just here to make libgcc happy.
2014-08-30 16:43:49 -07:00
Ithamar R. Adema
ad5bdbdfd4 ELF: enlarge the allowed padding between sections
Turns out the padding on ARM is slightly larger, and prevented
the kernel add-ons from being loaded.
2014-08-30 16:43:48 -07:00
Stephan Aßmus
6e48c81bad HaikuDepot: Try to use correct architecture and preferred language...
... when retrieving package info. Added listener support for setting
the summary and description. The list view updates on summary changes.
Those happen (in theory) if the web app provides a translated summary.
2014-08-31 01:31:16 +02:00
Stephan Aßmus
27dd7f6d71 HaikuDepot: Add User-Agent header to web app JSON requests. 2014-08-30 23:42:08 +02:00
Stephan Aßmus
e3fdc8940c HaikuDepot: Use web app bulk transfers.
Collect up to 50 packages and get information about them in a bulk transfer.
If that fails, do it in two smaller transfers, until only one package is
left, fall back to use the getPkg method than.

Remember packages for which there is an icon on the server. After the
first round of reading icons from the cache, only try to fetch icons from
the server for which we know one should be there.

Added quite a bit of command line output to see what is going on.
2014-08-30 23:42:07 +02:00
Stephan Aßmus
630c253b03 HaikuDepot/WebAppInterface: Support bulk transfers.
Refactor code to send different JSON requests.
2014-08-30 23:42:05 +02:00
Stephan Aßmus
e9c77bd249 JSON parser: Added TODOs. 2014-08-30 23:42:04 +02:00
Stephan Aßmus
ee942591ca JSON parser: Fixed increasing position after constants.
The first letter is already increased by the main parse loop.
2014-08-30 23:42:03 +02:00
Stephan Aßmus
ffd7c6110b JSON parser: Improve by using exceptions to get exact error
Also strip redundant "_Parser_" prefix from private methods.
2014-08-30 23:42:02 +02:00
Oliver Tappe
7f9beaf1f8 Fix #11110: problems invoking configure.
* configure without arguments used to work on Haiku, but it no
  longer did since hrev47574 - fix the usage check to make it
  work again.
2014-08-30 21:42:12 +02:00
Ithamar R. Adema
cbe5cf641d ARM: add a couple of ARM specific stubs
These are ARM EABI specific exception handling functions, referenced
from the gcc c++ libraries.
2014-08-30 21:10:27 +02:00
Adrien Destugues
196675be76 es1370: fix build.
It looks like this driver could be used by vmware. Untested.
2014-08-30 14:04:30 +02:00
Humdinger
f8d2409385 Added Intel HD 4600 ID to intel_extreme driver 2014-08-30 11:47:36 +02:00
autonielx
54a3250ae2 Update translations from Pootle 2014-08-30 06:25:03 +02:00
François Revol
19dad39ba8 pc_serial: mention my oxfordsemi 2 ports card and specs 2014-08-30 00:20:30 +02:00
François Revol
61b007a076 serial_mouse: fix string length 2014-08-29 20:30:56 +02:00
François Revol
821075b6ce serial_mouse: also check for "pc_serial#" ports
... since that's what we publish now.
Maybe we should just use the BeOS names instead.
2014-08-29 20:11:38 +02:00
François Revol
5e90a2a9c6 serial_mouse: fix debug build 2014-08-29 18:51:53 +02:00
François Revol
2cc9735a8f serial_mouse: fix build
Looks like some header changed name...
2014-08-29 18:05:07 +02:00
François Revol
4a1a879556 re-add serial_mouse input_server addon to the build
Whether it hangs input_server is not a reason to remove
it from the build anyway.
2014-08-29 17:59:03 +02:00
François Revol
039f88d807 pc_serial: more NULL checks 2014-08-29 17:09:01 +02:00
Rene Gollent
432da9e337 Debugger: Implement remaining part of #11033.
TeamDebugInfo:
- Add function to invalidate a source entry's file mapping.
UserInterfaceListener:
- Add listener hook to be able to invoke the aforementioned invalidate.
  Add corresponding implementation in TeamDebugger.
FileManager:
- When asked to locate a source entry, invalidate any existing mapping
  first.
TeamWindow:
- Always allow choosing an alternate source file.
- If we already have an existing source mapping, invalidate it first
  before attempting to establish a new one.
2014-08-29 11:04:48 -04:00
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