Commit Graph

49342 Commits

Author SHA1 Message Date
Alexander von Gluck IV
749a60bf39 ppc: atomic is no longer volatile per 077c84eb27 2014-01-19 22:14:28 -06:00
Alexander von Gluck IV
14919567d1 kernel: Add more architecture code post-scheduler
* Fix incorrect cpu vendor name mapping
* Add additional CPU architectures
* Add additional CPU vendors
* Rework PowerPC arch_system_info passing
  PVR back for cpu model
2014-01-19 21:53:56 -06:00
Pawel Dziepak
e1720098c6 kernel: No need for arch specific ifdefs in arch/atomic.h 2014-01-20 04:09:17 +01:00
Pawel Dziepak
1a5afe0404 add-ons/kernel: Use UsePrivateKernelHeaders where appropriate 2014-01-20 04:09:12 +01:00
Pawel Dziepak
59b9b52aaf scheduler: system_time() may be unreliable
On multisocket systems as well as under virtual machines logical CPUs
may use separate TSC. We could attempt to synchronize them what probably
would solve problems on multisocket systems. Unfortunately, when running
under hypervisor there is still a chance that TSC will get out of sync
again (e.g. cpufreq enabled on host when there is no invariant TSC). As
long as we use RDTSC as our main time source the scheduler must accept the
fact that time may go backwards (what isn't really a serious problem).
2014-01-20 03:22:04 +01:00
Pawel Dziepak
73db12ab31 kernel: Align user_thread objects to CACHE_LINE_SIZE 2014-01-20 03:22:04 +01:00
Alexander von Gluck IV
88c54b5485 kernel: Rework ppc (and m68k) atomic functions post-scheduler
* Make atomic function more like current x86
* Remove fake fallback atomic code for ppc as hardware spinlocks exist
2014-01-19 19:33:21 -06:00
Alexander von Gluck IV
c9e66bfc9b kernel: Add missing smp memory barrier calls. Set max cpu to 1
* Set max cpu to 1 for PPC until atomic functions are finished
* We have atomic functions inline in the kernel and assembly
  code in libroot post-scheduler merge... isn't that a lot of
  duplication?
2014-01-19 19:33:21 -06:00
Pawel Dziepak
cf87df8ba3 libroot: Fix gcc2 build 2014-01-20 00:54:52 +01:00
Stephan Aßmus
22626dc027 TextDocument::Insert() fixed line break case.
* Always add back the second part of the split paragraph, even if it has
   a length of 0.
2014-01-20 00:50:38 +01:00
Stephan Aßmus
57246b1477 TextDocumentLayout: Fixed invalidating
* Add new ParagraphLayouts for new Paragraphs in the TextDocument.
 * Actually mark layout invalid, so that height changes in paragraphs
   are accounted for and newly added paragraphs are positioned.
2014-01-20 00:50:38 +01:00
Stephan Aßmus
fa8b5d525e TextDocument: More fixes
* Fixed ParagraphIndexFor() not returning the last paragraph when the
   requested text offset was right at the text end.
 * Fixed off-by-one error detecting inserted line-breaks.
2014-01-20 00:50:37 +01:00
Stephan Aßmus
2188476555 TextEditor: Correct line up/down on first/last line.
* Move to beginning of first line, or end of last line respectively.
2014-01-20 00:50:37 +01:00
Stephan Aßmus
e809325835 ParagraphLayout: Bugfixes.
* Fixed off-by-one errors in FirstOffsetOnLine() and LastOffsetOnLine().
 * Fixed GetLineBounds() not returning anything y2 and overwriting y1.
2014-01-20 00:50:36 +01:00
Stephan Aßmus
9fff2ecb3f List: Fixed off-by-one check in Add().
Of course we can add right at the end...
2014-01-20 00:50:35 +01:00
Stephan Aßmus
0d8b8ca63a ParagraphStyleData: Fixed line spacing not being set/adopted/compared. 2014-01-20 00:50:35 +01:00
Stephan Aßmus
300c690eb6 Text stuff: Fixed various issues with editing.
* Insert/Remove now works for simple typing.
 * Inserting multiple paragaphs not yet tested.
 * Renamed TextSpan::CharCount() to CountChars() for consistency.
2014-01-20 00:50:34 +01:00
Stephan Aßmus
7e8dde4846 CharacterStyle: Added FontSize(), IsBold() and IsItalic(). 2014-01-20 00:50:34 +01:00
Stephan Aßmus
ffed252616 Paragraph: Added Prepend(TextSpan). 2014-01-20 00:50:33 +01:00
Stephan Aßmus
523baa4fdc TextEditor: Control caret offset in Insert/Remove()...
... and fix the invalidation to happen after the operation, since it currently
updates the layout text spans synchronously.
2014-01-20 00:50:33 +01:00
Pawel Dziepak
25dcdbc2b5 libroot: Avoid conflicts with legacy CPU and platform enums 2014-01-20 00:32:57 +01:00
Pawel Dziepak
32d1afe024 Remove B_CPU_x86_VENDOR_MASK 2014-01-20 00:31:38 +01:00
Rene Gollent
6a5f0f4da6 Vision: fix missing icon. 2014-01-19 17:41:38 -05:00
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