Source Activity

Syndicate content
Updated: 15 min 8 sec ago

usb: fix format string

Tue, 2014-09-02 21:35
usb: fix format string

fDebugChunkSize is an uint32.

Signed-off-by: Paweł Dziepak 
Categories: Development

Use uncached memory areas if snooping is not possible

Tue, 2014-09-02 21:10
Use uncached memory areas if snooping is not possible

* Some chipsets do not support bus-snooping for the HDA data
  transfers. So, when trying to enable snooping, verify that the
  setting was accepted.

* When snooping is not possible, set memory areas for audio buffers,
  buffer descriptor lists and command ring-buffers as uncached to
  ensure memory coherency with the HDA controller.

* This fixes KDLs during booting on some systems where snooping
  is not supported (seen on two systems with AMD chipsets, maybe
  applies to others as well).
  After setting up the buffer descriptor list for a stream, it was a
  gamble whether these writes would be visible to the HDA controller
  when subsequently enabling the stream. On some boots it was unlucky
  and then the HDA controller's DMA engine would go haywire and start
  overwriting random kernel memory with audio input data. The
  scheduler was usually the first victim and caused page fault KDLs
  due to corrupted data structures.
Categories: Development

Preserve reserved bits in registers

Tue, 2014-09-02 21:10
Preserve reserved bits in registers

* Do read-modify-write cycle to preserve bits marked as RsvdP in the
  following registers: WAKEEN, CORBWP, CORBCTL, CORBSIZE, RIRBWP,
  RINTCNT, RIRBCTL, RIRBSIZE.
Categories: Development

Use correct sequence for resetting CORB read pointer

Tue, 2014-09-02 21:10
Use correct sequence for resetting CORB read pointer

* Spec requires software to wait for hardware to acknowledge the
  reset by waiting for the bit to become set and then manually
  unset it and again wait for it to become unset.
  (cf. HDA spec 1.0a ch. 3.3.21)

* Also, do read-modify-write to protect preserved bits
Categories: Development

Read back CORB/RIRB control register to ensure DMA has stopped

Tue, 2014-09-02 21:10
Read back CORB/RIRB control register to ensure DMA has stopped

* Spec is somewhat unclear about whether that is really necessary,
  but let's play safe.
Categories: Development

update devIL and dependencies.

Tue, 2014-09-02 21:06
update devIL and dependencies.
Categories: Development

Bootloader: fix loading of ARM ELF files

Tue, 2014-09-02 16:15
Bootloader: fix loading of ARM ELF files

 * Let the loader know about PT_ARM_UNWIND (and ignore it)
 * Allow up to 32K of space between sections of an ELF files as ARM ones
need that.
Categories: Development

Fix stack alignment for bootloader.

Tue, 2014-09-02 15:01
Fix stack alignment for bootloader.

The ARM SP is pointing to the top item of the stack, not the first free
byte. This was confusing dprintf making it fail to print 64bit integers.
Categories: Development

Added check to ensure KDL does not include frames beyond kernel entry in the backtrace. This prevents KDL from faulting when printing backtrace on ARM.

Tue, 2014-09-02 11:39
Added check to ensure KDL does not include frames beyond kernel entry in the backtrace. This prevents KDL from faulting when printing backtrace on ARM.
Categories: Development

Define the minimum-mmc profile for the ARM build.

Tue, 2014-09-02 08:54
Define the minimum-mmc profile for the ARM build.

Now that the fake packages are in place, it is much easier to build the
MMC image for ARM without the need for a bootstrap build.

This image still does not manage to access the tarfs and load the kernel
modules, but it gets to KDL, at least.
Categories: Development

Fix SVGView test build (missing strings.h include)

Tue, 2014-09-02 08:16
Fix SVGView test build (missing strings.h include)
Categories: Development

Fix "strict aliasing rules" warnings

Tue, 2014-09-02 08:16
Fix "strict aliasing rules" warnings

Treated as errors when trying to build the test_app_server for x86_64.
Categories: Development

Make TargetLibstdc++ work for libbe_test target

Tue, 2014-09-02 08:15
Make TargetLibstdc++ work for libbe_test target

Needed for the test_app_server.
The logic here may need some improvements, but I'm not sure how to find
the right library name in all cases. I fixed at least the x86_gcc2 case
here.
Categories: Development

registrar ClipboardHandler: Style fixes.

Tue, 2014-09-02 08:15
registrar ClipboardHandler: Style fixes.
Categories: Development

Second attempt at fixing non-bootstrap ARM build

Tue, 2014-09-02 07:16
Second attempt at fixing non-bootstrap ARM build

- Revert the change to BuildFeature since the latest version of the zlib
sources package indeed uses the correct "sources" directory.
- Make the fake zlib package for ARM use the same revision number as the
current zlib version (4) so it can use the current version of the source
package instead of some older one.
Categories: Development

Fix zlib source directory name.

Mon, 2014-09-01 21:00
Fix zlib source directory name.

This fixes the non-bootstrap ARM build.
I'm not sure this is the right fix, the zlib package seems to come with a
"source" (not "sources") folder on both ARM and x86_gcc2 but then I
don't understand how this worked for the x86_gcc2 build before.
Categories: Development

partition/intel: Fix GPT error language.

Mon, 2014-09-01 19:41
partition/intel: Fix GPT error language.

* Yeah, intel shouldn't support GPT :-)
Categories: Development

ARM: only enable C++11 for libroot, not globally

Mon, 2014-09-01 13:28
ARM: only enable C++11 for libroot, not globally

This resembles the x86_64 build, and fixes the compilation issues
with the bootloader stdio.h header.

Fixes #11144
Categories: Development

Json: use B_PRI* constants

Mon, 2014-09-01 11:12
Json: use B_PRI* constants

This fixes the x86_64 build.
Categories: Development

SecureSocket: add OpenSSL locking.

Mon, 2014-09-01 07:54
SecureSocket: add OpenSSL locking.

This shoiuld make OpenSSL more thread safe and help with the random
network related crashes in Web+ (and anything else using SecureSocket
with more than one thread).
Categories: Development