Commit Graph

43381 Commits

Author SHA1 Message Date
Matt Madia
792c13dbf9 Added WebPositive to nightly-* build profiles. 2012-07-12 20:53:20 +00:00
Rene Gollent
639e18555f Fix indentation and match parameter names with .cpp. 2012-07-12 19:47:04 -04:00
Matt Madia
29c5696ed7 Changes relating to building WebPositive from source.
* Add WebKit optional package.
 * Make WebKit a dependency of WebPositive
 * Enable building of WebPositive from source.

Note: WebKit currently expands to lib/.  Alternative gcc-subdirectories
are not taken into consideration. Though it is trivial to change.
2012-07-12 19:45:32 +00:00
Matt Madia
dada4f4116 OptionalBuildFeatures changes for building WebPositive.
* Detect hybrid builds.
 * Only enable WebKit build feature when WebPositive is added
 * Provide a more accurate message for gcc2hybrids.
2012-07-12 19:45:30 +00:00
Rene Gollent
0e20120117 Fix build, header changes were forgotten in previous commit. 2012-07-12 19:38:09 -04:00
Hamish Morrison
639ac47052 BTextView should not accept disallowed chars being pasted.
* Patch from #6885: This filters out any disallowed characters from text
  being pasted or dropped in. If the resulting filtered text is zero
  characters long, it beeps. Works with styled text too.
* Coding style: variables renaming by korli.
2012-07-12 23:56:36 +02:00
Jérôme Duval
5e4a2efb47 ntfs: takes read only volumes into account #8449
* initial patch from kag_anil fixed by myself
* fix log message in fs_write_attrib()
2012-07-12 21:07:19 +02:00
Fredrik Holmqvist
826e58d886 Remove old leftovers. 2012-07-12 20:38:55 +02:00
Fredrik Holmqvist
a51a5f3e1e Fixes to Haiku specific code to work with ACPICA 20120711. 2012-07-12 18:32:56 +02:00
Fredrik Holmqvist
6822cda011 Update to ACPICA 20120711.
This is an update from 20110922 and A LOT has happened since then. See
https://acpica.org/download/changes.txt for all the changes.
One of the more interesting is some problems with shutdown in ACPICAhas been fixed.
There may still be problems on our side though.
2012-07-12 18:32:55 +02:00
Alex Smith
e690e5ab3b Proper fix for GCC 2 compilation error that was fixed earlier, cause pointed out by Ingo. 2012-07-12 17:16:17 +01:00
Fredrik Holmqvist
778438b20b Remove unneeded platform headers. 2012-07-12 17:48:22 +02:00
Alex Smith
8a65fedaaa Merge branch 'master' into x86_64
Conflicts:
	src/system/kernel/arch/x86/arch_debug.cpp
2012-07-12 16:32:12 +01:00
Alex Smith
7dc738b0fb Fixed ordering of registers in arch_debug_gdb_get_registers.
Current code was sending EAX, EBX, ECX, EDX..., GDB (all versions as far
as I can tell) expects EAX, ECX, EDX, EBX... Also added missing FS and GS.
2012-07-12 15:59:50 +01:00
Alex Smith
4ebc6dfa68 Moved some 32-bit specific stuff to the 32 subdirectory. 2012-07-12 14:23:55 +01:00
Alex Smith
6e06fa6f7e Added missing validity check on relocation address. 2012-07-12 14:06:29 +01:00
Alex Smith
d38f1301d1 Cleaned up 32-bit descriptors.h. 2012-07-12 13:55:03 +01:00
Alex Smith
5774b5afa4 C++ified remaining C users of arch_cpu.h. 2012-07-12 13:54:18 +01:00
Alex Smith
6ba74ba51c Fixed compilation of the boot loader on GCC 2.
Not sure why but GCC 2 seems to be ignoring the extern "C" in smp.h when
compiling smp_boot_other_cpus() resulting in undefined references. Fixed
by putting extern "C" on the definition too.
2012-07-12 12:21:09 +01:00
Alex Smith
98614a9658 Merge branch 'master' into x86_64 2012-07-12 11:33:39 +01:00
Alex Smith
c3f0fd28cd Fixed formatting of output in some debugger commands.
Currently all debugger commands assume 32-bit pointers when formatting their
output. This means that on x86_64 the output is incorrectly formatted. Fixed
this by adding a B_PRINTF_POINTER_WIDTH definition (16 on 64-bit, 8 on
32-bit), and using this to correctly format the output. Not all commands have
been fixed yet, but all VM, slab, VFS, team, thread and image commands should
be correct.
2012-07-12 11:29:33 +01:00
Ingo Weinhold
8c51cca27e Fix accidental partial revert of 0174267 2012-07-12 11:06:10 +02:00
Ingo Weinhold
b1700b2cd1 Declare syscall_numbers.h include for x86_signals.cpp
Fixes #8718.
2012-07-12 10:54:30 +02:00
Ingo Weinhold
e2d2662bc4 Automatic whitespace cleanup 2012-07-12 10:53:42 +02:00
Rene Gollent
95453175cd Fix other part of #8710.
- When binary searching functions in the source entry list,
  comparing by name and location alone isn't sufficient, since
  templates will match those for different instances, Fixes a crash on
  exit where the wrong function would get removed from the list, while
  the one we actually wanted to remove was still in the list, but then
  had its source code cleared. This would later crash the comparison
  function due to not being able to get its source location.
2012-07-11 23:39:17 -04:00
Rene Gollent
aeadcf457d Partially fix #8710.
- When an image was unloaded, its corresponding image info was never
  removed from TeamDebugInfo's list, leading to the latter containing
  a deleted object, resulting in various random crashes.
2012-07-11 23:37:36 -04:00
Rene Gollent
c4120026a5 Refactor previous commit.
- Keep knowledge of the existence and need to search the different
  frame sections contained within DwarfFile.
2012-07-11 21:56:15 -04:00
Rene Gollent
dfa21dfeab Fix #8508.
- When attempting to unwind the call frame, we now search for the appropriate
  FDE in both .debug_frame and .eh_frame. This mirrors gdb's behavior and
  works around the ever-changing whims of the gcc developers as to which
  section the requisite FDE/CIE resides in.
2012-07-11 19:12:59 -04:00
Alexandre Deckner
2218c029a5 Add localization support to WebPositive, patch by Humdinger
* Includes style fixes
* Functional fixes by myself, patch wouldn't build
2012-07-12 00:47:46 +02:00
Jérôme Duval
f190d7d580 app_server: cleanup of the previous commit 2012-07-11 23:56:38 +02:00
luroh
d0a19242a8 Add FreeType headers dependencies, #8716. 2012-07-11 23:51:49 +02:00
Alexandre Deckner
41a212d241 Update haiku-webkit build package. Use new version info 2012-07-11 22:43:22 +02:00
Jérôme Duval
9fb13e2c1e app_server: fixed FreeType headers dependency #8716
* added DrawingEngine.cpp
2012-07-11 22:12:38 +02:00
Jérôme Duval
36daae570c app_server: fixed FreeType headers dependency #8716
* added ServerFont.cpp
2012-07-11 21:44:46 +02:00
Alexander von Gluck IV
e278dc80e9 Flurry: Fix Mesa dependency for out-of-order builds
* Resolves #8717
2012-07-11 14:15:06 -05:00
Jérôme Duval
74880af10c app_server: fixed FreeType headers dependency #8716
* added source files which use ServerFont.h and ServerApp.h
2012-07-11 20:38:10 +02:00
Alex Smith
76a1175dbe Support for SMP on x86_64.
No major changes to the kernel: just compiled in arch_smp.cpp and fixed the
IDT load in arch_cpu_init_percpu to use the correct limit for x86_64 (uses
sizeof(interrupt_descriptor)). In the boot loader, changed smp_boot_other_cpus
to construct a temporary GDT and get the page directory address from CR3, as
what's in kernel_args will be 64-bit stuff and will not work to switch the
CPUs into 32-bit mode in the trampoline code. Refactored 64-bit kernel entry
code to not use the stack after disabling paging, as the secondary CPUs are
given a 32-bit virtual stack address by the SMP trampoline code which will
no longer work.
2012-07-11 18:29:15 +01:00
Fredrik Holmqvist
0174267ad4 Move ACPICA files into acpica subdir and use acpica subdir layout.
This matches layout in ACPICA and keeps a cleaner boundry between
Haiku and ACPICA code. The only haiku specific file in ACPICA is
achaiku.h and it will hopefully be included upstream soon.

Merging will be simpler as we can just replace acpica contents and
fix Jamfile and build errors in our code.
2012-07-11 18:50:06 +02:00
Alex Smith
97f5a0bd35 Fixed case-sensitive filesystem check. 2012-07-11 17:41:52 +01:00
Fredrik Holmqvist
e9bad6ecf5 Remove duplicate include. 2012-07-11 16:56:41 +02:00
Alex Smith
659bacac26 Compile arch_real_time_clock.cpp and arch_system_info.cpp for x86_64. 2012-07-11 14:43:44 +01:00
Alex Smith
d776fd53f7 Implemented arch_cpu_user_*() for x86_64, based on the x86 versions. 2012-07-11 14:19:19 +01:00
Alex Smith
fc644104ac Merge branch 'master' into x86_64 2012-07-11 12:24:47 +01:00
Alex Smith
609b308e64 Return B_NOT_SUPPORTED for shutdown if ACPI is unavailable (no APM on x86_64). 2012-07-11 12:23:18 +01:00
Rene Gollent
3691496222 Fix #8709.
- The buffer that the debugger used to retrieve messages from
  the debug port was slightly too small for the largest of the message
  data structs (currently 1100 bytes), causing some types of debug events
  to get truncated. This resulted in image creation/deletion events being
  received with a truncated image_info struct, which would result in several
  fields being returned with random values, most notably the text/data base
  and size fields. Consequently, searching those images for an address within
  them would fail, leading to #8709. It's possible but not yet confirmed
  that this bug is also responsible for #8710, need to test further.
2012-07-10 22:06:01 -04:00
Rene Gollent
36c85ca8df Fix add-on image unloading for shelf replicants (ticket #8708).
- The version of instantiate_object() that returns the image id from which
  the object was reinstantiated was not correctly returning it in all
  circumstances, only if it had to find/load the add-on itself. This caused
  problems for BShelf since the latter relies on that image id in order to
  determine what image to unload when replicants are removed. To remedy this,
  introduce an additional version of find_instantiation_func() that returns
  the image id in which the instantiation function was found, and make use
  of it in instantiate_object() in order to also be able to return the image
  id in that case.
2012-07-10 18:41:49 -04:00
Alex Smith
0962132cc6 Fixed Mac OS X 10.7 as a build platform (for GCC 4).
* Use gcc and g++ rather than cc and c++, as the latter now point to
  clang with recent Xcode versions and compilation of the host tools
  fail for various reasons with it.
* Replace the case-sensitive filesystem check with a more basic one,
  as diskutil no longer supports the behaviour of getting info for the
  volume that any path is on.
* Updated ReadMe with a correct list of prerequisites for OS X.
* GCC 2 builds are still broken due to a strange error that only
  occurs with a GCC 2 built on OS X 10.7
2012-07-10 19:33:39 +01:00
Matt Madia
f4eb5cf7e1 Process the sub-jam's opt packages before OptionalBuildFeatures
Several build features (including a future patch for WebKit)
are enabled only if a respective optional package is added.
Prior to this, none of those build features could be activated
in a sub-jam process.
2012-07-09 20:38:20 +00:00
Alex Smith
5670b0a8e4 Moved the 32-bit page fault handler to arch_int.cpp, use it for x86_64.
A proper page fault handler was required for areas that were not locked
into the kernel address space. This enables the boot process to get
up to the point of trying to find the boot volume.
2012-07-09 19:18:09 +01:00
Alex Smith
c8049a88a3 Enabled hardware interrupt handler, timers now work and threads are preempted. 2012-07-09 17:42:34 +01:00