Commit Graph

49219 Commits

Author SHA1 Message Date
Alexander von Gluck IV
fb8026e82b kernel: Add missing PPC CPU functions for idle / pause 2014-01-19 14:38:01 -06:00
Alexander von Gluck IV
524bea3553 kernel: fix missing cpu cache defines non-x86
* Regression introduced due to scheduler change
* Other other non-x86, non-ppc, and non-arm platforms
  need evalulated for this metric
2014-01-19 14:27:09 -06:00
Alexander von Gluck IV
6647d2c95a kernel: fix missing SMP_MAX_CPUS on non-x86
* Regression introduced due to scheduler change
* Drop MAX_BOOT_CPUS as it is no longer used
2014-01-19 14:09:51 -06:00
Pawel Dziepak
9d80738d95 kernel: Fix NULL dereference in has_permission_to_signal 2014-01-19 19:35:13 +01:00
Stephan Aßmus
2c906df217 Text stuff: Bugfixes in Insert and Remove methods
Still not well tested. Also some way to trigger the layouts to adopt to
the changed document paragraphs. Not yet via the new TextListener.
2014-01-19 16:33:36 +01:00
Stephan Aßmus
315dee6f22 TextEditor: Resolve TODO and call Insert() and Remove()...
... which both already exist in the TextDocument API (stubbed out or
untested as they are).
2014-01-19 15:56:07 +01:00
Stephan Aßmus
13d17b5b01 TextDocument: Implemented Remove(), untested.
Also some refactoring for ParagraphAt() into a separate ParagraphIndexFor(),
used by the former, since often an index is needed.
2014-01-19 15:56:07 +01:00
Stephan Aßmus
b7e8a24441 Paragraph: Added Remove(), untested. 2014-01-19 15:56:06 +01:00
Stephan Aßmus
ce3046974c HaikuDepot: Simple TextListener interface, not yet used. 2014-01-19 15:56:05 +01:00
Adrien Destugues
fed5e6126b LocaleRoster: race condition on catalog loading.
Using a vint32 isn't enough to safely decide if the catalog is
initialized or not. Use init_once features instead.
2014-01-19 12:12:57 +01:00
Adrien Destugues
8efd9b8d00 Remove display_mode_hook hack.
We'd better find a cleaner way to implement this, if actually needed.
2014-01-19 12:09:54 +01:00
Adrien Destugues
7e433e7cad FileRequest: set the mime type early.
WebKit may use the MIME type during incremental loading, so we better
set it before we start feeding the data.
2014-01-19 12:09:52 +01:00
Adrien Destugues
32da3d9dae Cookies: avoid timezone confusion
Cookies date are always in GMT time. Using mktime wrongly converts them
as local time instead. This would lead to cookies expiring too early or
too late.
2014-01-19 12:09:51 +01:00
Ingo Weinhold
8540ec2446 Save previous session's debug syslog during boot
Add boot loader debug menu option "Save syslog from previous session
during boot". If enabled (defaults to true), the previous session's
debug syslog data is copy to a separate buffer and passed to the
kernel, which writes it back to the file /var/log/previous_syslog.
As long as Haiku still boots, this should now be the most convenient way
to retrieve the output from a kernel crash.
2014-01-19 10:46:00 +01:00
Ingo Weinhold
be5e6fefdf Add repository config for the Haiku repository to the image
* HaikuRepository rule: Create the repository config.
* HaikuImage: Add the repository config for the Haiku image. The
repository cache is not added, though (it would only be available, if
the repository had been built before).

Implements #10287. The Haiku repository is now available in Haiku by
default.
2014-01-19 00:49:11 +01:00
Ingo Weinhold
f0b99b54bb RepositoryConfig rule: Make a bit more generic
Instead of the repository the URL can now be passed. It can use the
"$version" placeholder, which will be replaced by the content of the
given version file. If the URL is not given, the one from the repository
info will be used.
2014-01-19 00:49:11 +01:00
Ingo Weinhold
1221b67d07 create_repository_config: Make URL argument optional
If not specified, the URL from the repository info is used.
2014-01-19 00:49:11 +01:00
Ingo Weinhold
12c19e6362 Move creating the Haiku repo info to jam
* PreprocessPackageInfo rule: Pull out new rule
PreprocessPackageOrRepositoryInfo which does the sed substituation and
optionally the filtering through the C preprocessor.
* HaikuRepository rule: Generate the repository info file (from the
given template). No longer do that in the build_haiku_repository
script.
2014-01-19 00:49:10 +01:00
Ingo Weinhold
af559cd6ee Add DetermineEffectiveHaikuRevision rule
Simplifies PreprocessPackageInfo a bit.
2014-01-19 00:49:10 +01:00
Ingo Weinhold
d4bfbab374 Implement generic Sed rule 2014-01-19 00:49:10 +01:00
Rene Gollent
e5ebc99d20 Update gcc4 webkit package to 1.2.3. 2014-01-18 12:20:45 -05:00
Ingo Weinhold
495b360b6b Add support for explicitly preventing rebuilding packages
Due to depending on dynamically built files, package files will always
be rebuilt when they are needed (e.g. when an image is built). The build
variable HAIKU_DONT_REBUILD_PACKAGES can be defined to prevent
rebuilding existing package files (even ones that are out-of-date).

Main target for this change is buildbot. We want to make sure that the
packages in the repository it builds are exactly identical to the ones
in the images, which may not be the case when the packages are rebuilt
(due to different timestamps of contained files). The respective build
order should be:

1. Build repository.
2. Without cleaning the generated directory, build different image types
   with HAIKU_DONT_REBUILD_PACKAGES defined.
2014-01-18 16:08:57 +01:00
Rene Gollent
c1bcd68267 Update Vision x86{_gcc2} packages to r949.
Updated to no longer rely on deprecated get_system_info() call.
2014-01-18 09:36:27 -05:00
Rene Gollent
428bbe8906 DwarfFile: Add missing continue for skip case. 2014-01-18 09:35:27 -05:00
Humdinger
7409123922 Removed function to add screensavers
Removed "Add..." button and drag&drop awareness, as discussed in
http://www.freelists.org/post/haiku-development/Adding-screensavers-and-fonts
In short: all apps and add-ons will come as proper hpkg.
2014-01-18 13:21:06 +01:00
Stephan Aßmus
48ee828ae3 HaikuDepot: Disable editing for read-only text views. 2014-01-18 10:34:36 +01:00
Stephan Aßmus
1bce247b22 Fleshed out more TextEditor functionality.
TextDocumentView now always has a TextEditor, but editing can be disabled.
The selection code lives only in TextEditor. Implemented more cursor
navigation code.
2014-01-18 10:34:36 +01:00
Stephan Aßmus
00d04bc7f2 TextDocumentLayout: Added more utility methods
* CountLines(), FirstOffsetOnLine(), LastOffsetOnLine(), GetLineBounds().
* Common code for finding a line in _ParagraphLayoutIndexForLineIndex()
2014-01-18 10:34:35 +01:00
Stephan Aßmus
e97d9097da ParagraphLayout: Added more utility methods
* FirtOffsetOnLine(), LastOffsetOnLine(), and GetLineBounds()
2014-01-18 10:34:34 +01:00
autonielx
8ed16a6959 Update translations from Pootle 2014-01-18 06:16:02 +01:00
Stephan Aßmus
a512ed9a8f HaikuDepot: Implement support for a blinking cursor.
However, since the selection is actually maintained in TextEditor,
the cursor can't be navigated. The code needs to shuffle around a bit.
2014-01-17 23:33:30 +01:00
Stephan Aßmus
02d77b77aa HaikuDepot: Implement a BScrollView which works.
Need to investigate why the original one wouldn't layout the
TextDocumentView to the inner size...
2014-01-17 23:33:30 +01:00
Stefano Ceccherini
3828ba8a3f Fix build of the hpet driver.
It's not in the image so it doesn't get built by default.
2014-01-17 19:33:15 +01:00
Pawel Dziepak
955e4cff94 scheduler: Weaken time slept assertion 2014-01-17 18:07:47 +01:00
Adrien Destugues
a61211c698 Remove FIND_NEXT message for find text control
BTextControl calls Invoke() when it loses the focus and the text has
changed. We don't want this to trigger a search, and instead rely on the
user pressing enter to run the search.

Fixes the search happening again when closing the search bar (escape key
or otherwise), or clicking on the page after searching. Fixes #10168.
2014-01-17 15:42:53 +01:00
Adrien Destugues
ab390d3af3 Style fixes and allocation checks 2014-01-17 15:08:57 +01:00
Adrien Destugues
bb03a92ef6 Some style fixes.
More work is needed for this new file to completely follow the style
guidelines. Also added several FIXMEs and TODOs.

This doesn't seem to break anything on my machine however, and was
confirmed to help by several users, so we may as well use it.
2014-01-17 14:46:42 +01:00
Adrien Destugues
a35f568273 Revert part of previous patch
Checking only the visible resolution and colorspace isn't enough to call
two modes equal, otherwise it is not possible to change the refresh rate
anymore.
2014-01-17 14:45:11 +01:00
Adrien Destugues
ef726c687a Intel_extreme: improve i855 support.
https://github.com/druga/haiku-stuff/tree/master/intel_extreme
Rebased against current sources.

* The BIOS video mode sometimes reports a scaled mode instead of the
physical panel dimensions. Get the data from the VBT table as well, and
use it if the reported resolution is bigger.
* On first boot, force the panel native mode so the user doesn't have to
set it manually.
* Only allow a single head at a time on i855gm, as the card can't drive
both heads at the same time.
* Detect when a new requested mode is the same as the current one, and
skip modesetting in that case. Avoids screen flickering when changing
workspaces.
* Fix some cases of misdetecting which pipes to enable
2014-01-17 12:42:20 +01:00
Adrien Destugues
9e9ccf69c0 Yet anoter noSSL build fix. 2014-01-17 12:13:27 +01:00
Adrien Destugues
76b3c7f420 More noSSL build fixes. 2014-01-17 11:21:13 +01:00
Adrien Destugues
0876ab98f9 fixed gcc2 package, following atomic_add change. 2014-01-17 10:53:29 +01:00
Adrien Destugues
e1caa56b1e Add another mssing string::compare prototype.
Matches buildtools change 8b70c20ed25f905e7e217376c9e2f65a8dee6729.
2014-01-17 10:00:32 +01:00
Pawel Dziepak
d0f2d8282f Merge branch 'scheduler'
Conflicts:
	build/jam/packages/Haiku
	headers/os/kernel/OS.h
	headers/os/opengl/GLRenderer.h
	headers/private/shared/cpu_type.h
	src/add-ons/kernel/drivers/power/acpi_battery/acpi_battery.h
	src/bin/sysinfo.cpp
	src/bin/top.c
	src/system/kernel/arch/x86/arch_system_info.cpp
	src/system/kernel/port.cpp
2014-01-17 04:06:15 +01:00
Pawel Dziepak
0269dd284e Revert "scheduler: SCHEDULER_EXIT_FUNCTION() is not needed"
This reverts commit 667617ad043a4587d8d366d5192d9ad291cfa37a.

Scheduler profiler uses CPU local data to store function information, hence
arch_thread_context_switch() usually is not a problem. However, when
we switch to a new thread we end up scheduler_new_thread_entry() instead
of scheduler_reschedule() what may corrupt data collected by the profiler.
2014-01-17 01:55:42 +01:00
Pawel Dziepak
3dce49af0e scheduler: Cache quantum length 2014-01-17 01:55:42 +01:00
Pawel Dziepak
4835c216f7 scheduler: low_latency: Try to keep all cores busy 2014-01-17 01:55:42 +01:00
Pawel Dziepak
0d27a57cf1 scheduler: Fix divide by zero on CPU disable 2014-01-16 23:26:10 +01:00
Pawel Dziepak
f978518a52 scheudler: Cache ThreadData::IsCPUBound() result 2014-01-16 23:26:10 +01:00
Pawel Dziepak
b7d404c2df scheduler: Add ThreadData::{GetPriority, IsIdle, IsRealTime}() 2014-01-16 23:26:09 +01:00