Commit Graph

10151 Commits

Author SHA1 Message Date
Axel Dörfler
9d06770cdc The iframe stack is now in a special structure iframe_stack.
Introduced a gBootFrameStack that is used until the first thread structure
is available - this allows stack crawls and useful register dumps during
early startup. Could also be solved differently by making sure there is
always a thread structure installed in %dr3 (ie. the boot thread would
get a static thread structure instead of a static iframe stack only).
This might be a better solution as i386_handle_trap() would no longer
need to check for an existing thread structure.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12230 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-04 14:13:25 +00:00
Axel Dörfler
edb5566393 Fixed struct tss; there is no ss3/sp3.
Moved ptentry/pdentry to arch_vm_translation_map.c and renamed them to
page_table_entry and page_directory_entry.
Fixed a race condition that happened when memory was remapped (which
can currently happen because lock_memory() does not work correctly, and
there might be other conditions as well, like certain vm_store fault
handlers). Now, page table and directory entries are updated atomically.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12229 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-04 14:07:24 +00:00
Axel Dörfler
311049d751 Added a new PartitionMap::CountNonEmptyPartitions() - now, a partition map
is only accepted when there is at least one valid partition in it.
Before, the module would accept even the BFS boot loader which is now less
likely (IOW you can now boot with Bochs again).
Also, if there was one invalid partition, the partitions that come after
it are no longer ignored.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12228 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-04 14:01:34 +00:00
Axel Dörfler
597c7235b9 Made the current debug stuff in our two keyboard drivers (one is used
by consoled by default, the other is used by the input_server) more consistent:
Now, F12 will get you into the kernel debugger. The escape key was somehow not
too happy with vim before :))


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12227 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-04 13:58:19 +00:00
Axel Dörfler
b31c89d6e3 elf_lookup_symbol_address() can now safely be called before elf_init() has been called.
This is helpful in getting a stack crawl during early startup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12226 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-04 13:40:10 +00:00
Axel Dörfler
0c2ca2f1bf shutdown() is the main kernel shutdown function that also syncs disks, etc.
It cannot be called with interrupts off, and is likely to fail in the debugger;
arch_cpu_shutdown() reboots the machine directly which is what we want here.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12225 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-04 13:38:31 +00:00
Andrew Bachmann
6e061f37b4 document and support both -h and --help for help
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12224 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-03 00:53:23 +00:00
Andrew Bachmann
1c7379cd43 remove annoying warnings provoked by echo headers
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12223 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-02 23:56:22 +00:00
Andrew Bachmann
1f13471244 support -h in addition to --help for help
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12222 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-02 22:18:07 +00:00
Axel Dörfler
d305ab35ac Added the get_boot_item() call similar to what BeOS exports (have a look at
the APM driver to see it at work).
The frame buffer console now creates such a boot item to give a potential
VESA driver access to the boot frame buffer configuration.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-01 15:09:09 +00:00
Axel Dörfler
7cac40a1f2 A tiny cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12220 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-01 14:24:19 +00:00
Axel Dörfler
e02e12de8a Updated radeon driver to the latest BeBits release 5.1.0.1.
Probably only works under Haiku due to the new area flags.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12219 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-01 14:16:38 +00:00
Axel Dörfler
eb2068515f This fixes the build again; due to the glibc includes, math.h would not
be used from posix/math.h but some glibc headers. This is not nice, but
it works.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12218 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-01 13:12:19 +00:00
Stephan Aßmus
8940f93c1d AccelerantHWInterface now uses a MallocBuffer as RenderingBuffer for the back buffer instead of a BitmapBuffer, which under Haiku does not work.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12217 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-01 10:36:23 +00:00
Michael Lotz
7d5778defa Added support for GetEscapements() too. Still unfinished. Maybe this should be moved elsewhere?
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12216 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-01 09:18:25 +00:00
Michael Lotz
c2da902f2e Implemented BPortLink::AttachShape and BPortLink::ReadShape and used them for passing the shapes in AS_GET_GLYPH_SHAPES.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12215 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-01 07:29:04 +00:00
Michael Lotz
ebf8af66c9 Added support for BFont::GetGlyphShapes. Not finished yet and untested, delivery method as to be changed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12214 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-01 07:00:32 +00:00
Michael Lotz
3661cae99c Aren't these supposed to be chars?
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12213 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-01 04:03:11 +00:00
Michael Lotz
69353f3c4c Added ColorControl.cpp to the build. Also enabled PrintJob.cpp again, it doesn't break anything, why was it disabled? Sample applications can now be compiled unmodified using libopenbeos.so.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12212 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-01 03:33:43 +00:00
Michael Lotz
20337f3165 Corrected reply handling of FlushWithReply in many places what should fix some strange bugs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12211 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-01 03:02:15 +00:00
Michael Lotz
54f7283aa0 Appearantly StrokeLineArray is used in BButton rendering.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12210 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-01 02:06:07 +00:00
Ingo Weinhold
c6ba97963c We didn't Unlock(), if setting the display mode failed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12209 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-01 01:11:38 +00:00
Ingo Weinhold
3aae5bd9a5 Added floorf() and ceilf() (from FreeBSD, style-adjusted). Needed by the Painter.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12208 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-01 01:10:42 +00:00
Ingo Weinhold
07f6a74c53 There is no <math_ldbl.h> at the moment, so we shouldn't include it.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12207 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-01 01:09:43 +00:00
Ingo Weinhold
73d3cc98f6 Be a bit more robust, when encountering partition descriptors that
describe partitions that are out of bounds. We simply ignore those now,
instead of letting the complete scanning fail.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12206 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-01 01:07:30 +00:00
Axel Dörfler
929db8377e Minor tweaks to the menu.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12205 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 23:33:08 +00:00
Axel Dörfler
c1e0d8cf5e The safe mode options now actually do what they should do, ie. the
selected "/safemode/" options are now passed to the kernel.
Added help texts to some safe mode options.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12204 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 20:10:19 +00:00
Axel Dörfler
29150acff7 console_set_cursor() now clips to screen size. This actually works around a
possible compiler bug that exposes with -O2 only.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12203 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 20:06:31 +00:00
Axel Dörfler
207fb0b1ea Fixed _user_get_safemode_option(): the bufferSize passed in got overwritten
with the number of the actual string length, but it was still used for a
subsequent user_strlcpy() to the user buffer - therefore, it cut off one
byte from the result string.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12202 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 19:32:50 +00:00
Axel Dörfler
b58f01cef7 Fixed the buggy hoard lock implementation:
- we must not use static C++ locks: the heap is initialized before the
  global constructors are called which means that our sLockList was
  initialized twice, and lost all locks added inbetween
- *but* the lock implementation was completely wrong anyway: Hoard used
  to allocate superblocks, but it never freed them - instead, their memory
  was recycled when their time came. That caused semaphores to be in fact
  thrown away, but also corrupted the lock list
- I've now implemented the locks like they are implemented in the other
  architectures supported by Hoard: via a spinning (busy waiting) lock.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12200 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 19:18:37 +00:00
Axel Dörfler
d3be3f2cb1 The open_count/close hook stuff is now (hopefully) finally correct:
- vfs_exec_io_context() did not close descriptors
- no variant of dup() did increment the open_count

This allows "VARIABLE=`command`" bash lines to work again.
Removed redundant PRINT() macro from fd.c.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12199 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 17:22:33 +00:00
Adi Oanca
c737183da9 Updated test app as app_server clears the BViews' background color now
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12198 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 16:51:07 +00:00
Adi Oanca
a2bc7be9ed This fixes up the last known remaining issues with the update code. It works perfectly now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12197 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 16:48:51 +00:00
Adi Oanca
9f7e77bd63 Forgot a warning message
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12196 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 16:39:18 +00:00
Adi Oanca
52bd978684 Send only one AS_BEGIN/END_UPDATE message, not for every view
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12195 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 16:36:34 +00:00
Jérôme Duval
a39f4c6365 updated version info
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12194 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 15:43:58 +00:00
Jérôme Duval
fcb997860b Updated to coreutils-5.3.0, still including previous patches
Removed m4, po directories
UTF8 filenames don't seem to be displayed well with ls in Terminal


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12192 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 15:19:03 +00:00
Axel Dörfler
2d7ad656ec Added "Disable IDE DMA" safemode option.
MenuItem::SetData() now asks for a const parameter.
The safemode menu options now set their MenuItem::Data() to the safemode option string.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12191 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 15:16:09 +00:00
Axel Dörfler
a350a0f58e A stripped down to the bare minimum app_server, so that we no longer need
to compile our libbe.so with RUN_WIHTOUT_APP_SERVER for the image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12190 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 15:09:02 +00:00
Ingo Weinhold
79757df990 Adapted according to the semantics change for the identify()/scan()/free_identify_cookie() disk system hooks.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12189 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 11:29:58 +00:00
Ingo Weinhold
0a0a999076 We now also find a boot partition, if nested inside another partition. Booting from logical partitions should now work properly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12188 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 11:28:33 +00:00
Ingo Weinhold
a7c536d8ba * Now we set partition_data::content_type correctly. The intel
partitioning system module relies on it, otherwise extended
  partitions won't be recognized.
* Be a little less lazy and do the priority partition recognition,
  i.e. all partitioning systems are asked to identify a partition and
  the one that believes it can handle the partition best, wins the pot.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12187 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 11:26:27 +00:00
Ingo Weinhold
f2162522b0 * More debug output.
* We apparently cannot use constants like kPartitionTypeIntelExtended
  in static array initializers in the kernel.
* Fixed misunderstanding between Axel (boot loader) and me (Intel
  partitioning system module) how to deal with the cookie the
  identify() hook returns. We switch to a someone cleaner method by
  always invoking free_identify_cookie() for it, even if it were passed
  to scan(). Since we want to keep the cookie, we add a reference
  counter to it.
This should fix a couple of issues with recognizing the boot partition.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12185 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 11:20:31 +00:00
Axel Dörfler
8e6163ac4d Now uses the B_SAFEMODE_SAFE_MODE definition instead of the string directly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12184 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 11:11:17 +00:00
Ingo Weinhold
d7037cbd2c Now, we support a value of 0 for the RUN_WITHOUT_APP_SERVER variable in the libbe Jamfile. In makehdimage we don't override the variable's value, if it is already set anymore. This conveniently allows to set it to 0 in a wrapper script that invokes makehdimage -- no need to change makehdimage itself.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12183 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 11:09:51 +00:00
Axel Dörfler
08a1527611 Added a "Safe mode" checkbox to the safe mode menu.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12182 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 11:04:36 +00:00
Axel Dörfler
5454291680 Implemented a simple boot menu to play with (this can be taken over by
other boot menu implementations for a start).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12181 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 11:03:44 +00:00
Stephan Aßmus
a356096dba massive performance improvements. On my ancient 2xPII 350, the DisplayDriverPainter with the ViewHWInteface is pretty much usable now. It could be even better if app_server culmulated update requests more.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12180 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 10:46:02 +00:00
Ingo Weinhold
b785ce8d6f Added strlcat.c. Required under R5.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12179 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 10:42:37 +00:00
Ingo Weinhold
ff241c23eb Install the StatCacheServer, too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12178 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 10:40:42 +00:00
Michael Lotz
bb72ccac74 The Painter now uses a special version of the agg_font_engine that uses the FontServer ftlib and the already loaded FT_Facees from ServerFont/FontStyle instead of doing it all again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12177 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 06:08:37 +00:00
Nathan Whitehorn
37dd67fbd1 Fixed a bug that would cause messages to be redownloaded in the event of an unclean shutdown on systems with leave mail on server enabled, but bidirectional synchronization off.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 01:04:44 +00:00
Stephan Aßmus
89b3c19c8a ViewHWInterface updates are a bit smoother now
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12175 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 23:02:44 +00:00
Jérôme Duval
3b7db45c9e commented out fs as it depends on commented stuff in tests
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12174 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 22:48:25 +00:00
Stephan Aßmus
15b391f607 more correct implementation, forgot header again
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12173 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 22:24:40 +00:00
Adi Oanca
4c6f8b572e This fixes up those update request being lost.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 22:13:26 +00:00
Stephan Aßmus
fbdc6c450d ups, forgot this one, but it doesn't help. views seem to have no clipping applied to them at all now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12171 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 22:11:48 +00:00
Stephan Aßmus
03339b3565 added Adis changes, started to return BRect in Painter drawing functions, this will be the area enclosing all pixels that were touched by an operation, so that the DisplayDriverPainter knows exactly what region to copy from back to front buffer, it calculates that by itself for all other functions, which is not as robust.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12170 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 22:10:42 +00:00
Stephan Aßmus
e18f9c5e67 with the optimization for solid horizontal and vertical one pixel wide lines, and for solid rectangles, the performs gap between Painter and original BView closes, with BView being 0.12 times faster drawing lines and 1.4 times faster drawing rectangles... into a BBitmap
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 22:05:22 +00:00
Jérôme Duval
dd703af60a moved bin into tests, fixed build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 21:42:51 +00:00
Jérôme Duval
9bace5bbe1 fixed build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12167 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 21:40:24 +00:00
Jérôme Duval
52b9aaefa1 fixed to build, now named usb_hid
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12166 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 21:28:57 +00:00
Adi Oanca
f694c0e30e This may be a quick and dirty fix to the problems we've been having with the update code. However this requires something from DisplayDriver. I'll write about this in a moment on app_server list.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12165 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 20:06:50 +00:00
Jérôme Duval
c900253170 work in progress
changed name
initial mixer interface


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12164 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 18:58:43 +00:00
Jérôme Duval
b85392f078 makes debug build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12163 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 18:54:37 +00:00
Jérôme Duval
bbf5eb3ac6 add a check which helps avoid crashs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 18:54:00 +00:00
Stephan Aßmus
45c0cd28d8 scrolling BViews now works, tested with MiniTerminal, added lots of TODO stuff, maybe Adi or DarkWyrm should have a look, maybe they can clear some stuff up for me.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12161 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 16:05:05 +00:00
Stephan Aßmus
6283b1c6dd removed leftover code
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 11:11:17 +00:00
Stefano Ceccherini
6447787693 I forgot this: Add the test to the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12156 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 09:17:37 +00:00
Stefano Ceccherini
daa54abdc5 Added a test for BDirectWindow, with even fewer requirements than the one already in the tree. Basically this only prints some info to stdout.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 08:16:19 +00:00
Axel Dörfler
9602a1c9d6 Also the page tables mapped my the boot loader must be accessible
to userland, as these tables might persist until the end.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12153 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 06:29:27 +00:00
Axel Dörfler
97d05e6652 Even if it's probably outdated soon: fixed a crashing but in Shutdown() if
no card could be found.
Note, the replacement does not suffer from this anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 00:17:12 +00:00
Stephan Aßmus
d324aa8386 fixed MiniTerminal rendering, for real now
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12151 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 00:12:24 +00:00
Axel Dörfler
4c7103986e Now also compiles when debug output is turned on.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12150 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-30 00:08:32 +00:00
Stephan Aßmus
bf72c9e259 fixed MiniTerminal rendering
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12149 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 23:56:42 +00:00
Stephan Aßmus
d01b623805 some improvements to font handling, but Miniterminal still renders only black blocks
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 23:42:52 +00:00
Michael Lotz
507c1efe07 I didn't want to mess with the screen resolution, sorry.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12147 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 23:04:26 +00:00
Michael Lotz
73fc67136c Choose headers according to DISPLAYDRIVER, too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12146 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 23:00:58 +00:00
Stephan Aßmus
d3b0b7b979 fixed some font related problems, Painter should now rely on the app_server font manager. maybe I fixed some compile problems too. Sorry if that was the case.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12144 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 22:57:43 +00:00
Michael Lotz
a4f89893df Added the input_server port to the AccelerantHWInterface - again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12143 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 22:44:13 +00:00
Stephan Aßmus
3f537e5fa7 moved more of the old stuff from DisplayDriver into DisplayDriverImpl
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 22:22:28 +00:00
Stephan Aßmus
13066bfea1 it belongs here
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12140 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 22:01:21 +00:00
Stephan Aßmus
b3b4f48527 removed const declaration to allow locking in DisplayDriverPainter, as I think access to this needs to be serialized
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12137 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 21:45:52 +00:00
Stephan Aßmus
7ad3536bb5 remove some views, the more we use, the more problems...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12136 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 21:27:35 +00:00
Stephan Aßmus
7940a07172 DisplayDriverPainter should now use the new AccelerantHWInterface when compiled for Haiku, added locking to the rest of the functions which access HWInterface instance
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 21:26:58 +00:00
Michael Lotz
bccfa80b9b Changed radeons memory manager to use areas instead of malloc. Now the radeon.driver should work without hacking the kernel heap bigger.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12134 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 21:09:05 +00:00
Axel Dörfler
d19337ad86 The previous change overwrote the $defines variable, although both defines should
be there at the same time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 20:37:30 +00:00
Michael Lotz
da4526cdcf TEST_MODE is now disabled on Haiku too. So app_server is not a BApplication anymore and doesn't depend on itself.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 19:50:39 +00:00
Michael Lotz
9775bf33cf TEST_MODE is now disabled on Haiku too. So app_server is not a BApplication anymore and doesn't depend on itself.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 19:49:55 +00:00
Stephan Aßmus
9c59f2f207 fixed app_server build, though I don't exactly know why that fixes it
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 18:32:43 +00:00
Stephan Aßmus
d3db964ed0 code refactoring, moved common stuff into the base class
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 17:36:38 +00:00
Michael Lotz
b87be17fc8 Fixed the last remaining warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 17:31:31 +00:00
Michael Lotz
a398854794 Use _sPrintf in radeon_accelerant too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12127 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 17:12:31 +00:00
Axel Dörfler
86e150e821 app_server.rsrc is no longer used (we already have the .rdef file).
Fixed the application signature in the .rdef file.
Removed some "how to write an .rdef file" comments.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12124 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 16:38:17 +00:00
Michael Lotz
b2c9e18270 Accelerant based implementations of HWInterface and RenderingBuffer. Untested.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12123 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 16:31:46 +00:00
Axel Dörfler
82aa535b3f Updated app_server Jamfile to be able to build a server that runs under Haiku
if $TARGET_PLATFORM requires this.
Note, "jam app_server" for R5 did not work for me before and does not work now
although the number of errors are reduced - whoever knows the requirements for
the app_server under R5 better than me, please fix this.
Added the app_server as well as some more drivers to the Haiku HD image. Since
RUN_WITHOUT_APP_SERVER is still defined, it won't work correctly, though.
For the time being, you need to manually alter this and the Bootscript in order
to run it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 16:21:55 +00:00
Axel Dörfler
0f89f0ae14 Fixed warnings, minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12120 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 15:58:27 +00:00
Axel Dörfler
b2b5acff33 Made DISPLAYDRIVER a true compile time option.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12119 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 15:39:08 +00:00
Axel Dörfler
7ffc4e7782 Enlarged buffer for _sPrintf() from 256 to 1024 bytes per call.
Minor cleanups.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12118 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 15:31:09 +00:00
Axel Dörfler
54c5b264e3 No longer use private syscall, but the Debug.h function directly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12116 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 15:15:12 +00:00
Axel Dörfler
78924f7e7b Now sets the process group of the terminal, so that signals are delivered (you can now Ctrl-C apps, at least in theory :)).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12115 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 14:05:34 +00:00
Philippe Houdoin
ccaabbeff6 Long pending little changes that were dying for checkin in my local repository...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12114 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 09:49:58 +00:00
Stephan Aßmus
1a7fc52717 added some functions with optimized implementation, optimizes most frequent usage
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 01:43:04 +00:00
Axel Dörfler
6e3baa44ff Fixed a bug in send_signal_etc(): when using the group-wide form (negative
process ID), it also searched for a group with a negative ID.
Some minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12111 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 22:00:36 +00:00
Axel Dörfler
29b183b12c select() doesn't care about obvious user errors: if it's called without
any chance to come back (without being signaled), it now will.
For example, this is used by the sleep command (which now actually works
as it should :)).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12110 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 21:45:56 +00:00
Adi Oanca
eb6bc5d5ff Started to implement workspace support. Surprisingly, with this small change changing workspaces actualy works. An it works quite well I may add. :-) So happy the new window manager which I heavily tested actualy works inside app_server. :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12109 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 21:32:24 +00:00
Adi Oanca
256c1b1502 Insignifican change. Read uint32 instead of int32.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12108 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 21:26:35 +00:00
Stephan Aßmus
e33b90ea35 implemented cursor support in the DisplayDriverPainter
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12107 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 18:03:45 +00:00
Michael Lotz
ee897a16b0 Theoretically it should now be possible to open a MiniTerminal
with coordinates specified as arguments, but this somehow
(and why ever) does hinder /bin/sh from execution (under R5
at least). If someone could point me to the problem I'd be greatful.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12105 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 17:04:50 +00:00
Ingo Weinhold
ebc1161965 Added gdb's bfd and opcodes libraries and gdb itself to the build.
Everything compiles here, but I couldn't test it yet, since Haiku
doesn't seem to boot properly at the moment.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12104 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:59:01 +00:00
Ingo Weinhold
4184510ecb Jamfile for gdb itself.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12103 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:57:43 +00:00
Ingo Weinhold
f1bb97fc23 Added files generated by configure for x86.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12102 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:57:11 +00:00
Ingo Weinhold
8c9f956b79 Jamfile for gdb's opcodes library.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12101 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:55:55 +00:00
Ingo Weinhold
b33773df35 Generated by configure.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12100 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:55:28 +00:00
Ingo Weinhold
25c32f636c Jamfile for gdb's bfd library.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12099 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:54:45 +00:00
Ingo Weinhold
9231a159cf Added files generated by configure for x86.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12098 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:54:05 +00:00
Ingo Weinhold
faed617707 Implemented fork() support. We basically need to re-get the heap area
after fork()ing and recreate all semaphores we've been using. To do
the latter, we simply maintain a list of all locks.
fork()ing multithreaded teams can still be troublesome.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12097 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:34:20 +00:00
Ingo Weinhold
adc9b39a23 * Added printing a stack trace in case of a page fault. Must be enabled
explicitely when needed.
* Added a ToDo item to _user_resize_area().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12095 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:24:33 +00:00
Stephan Aßmus
e0bb2421ea whoa - how did this even work?
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12094 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 14:29:18 +00:00
Stephan Aßmus
181a984e2a implemented the rest of the drawing calls save for Stroke/FillShape, since I would have to ask what kind of data this function is being passed
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12092 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 13:39:35 +00:00
Stephan Aßmus
02ec6ae825 Implemented and tested the color spaces B_RGB16, B_RGB15, B_CMAP8 and B_GRAY8. The trick is this: The Painter based implementation will most likely always use a double buffered approach. I simply made the back buffer, into which Painter draws, always B_RGBA32, while the front buffer can have any other format the drawing backend is supposed to support. In CopyBackToFront, the format conversion is handled. This gets us pretty far without actually doing very much, and I am not even sure if there should/can be a better implementation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12091 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 13:38:11 +00:00
Stephan Aßmus
c3bfa6fec9 avoid a crash if used without attached buffer
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12090 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 13:33:15 +00:00
Stephan Aßmus
9543470f44 RootLayer thread can busy loop, and with this change, its easier to shoot app_server whereever it hurts most
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12089 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 11:13:19 +00:00
Stephan Aßmus
f6939eb1e1 more correct implementation, but still exhibits problems, usage turned off in ViewHWInterface::Invalidate
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12088 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 11:11:33 +00:00
Stephan Aßmus
94b3e6bfd0 ignore the pattern passed to the drawing functions, keep using the one from SetDrawData
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12087 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 11:08:10 +00:00
Stephan Aßmus
55a56d8b0e added fake_input_server.cpp to the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12086 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 11:04:44 +00:00
Stephan Aßmus
022badfd34 extracted the fake input_server communication into an extra file used by ViewDriver and ViewHWInterface
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12085 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 11:04:00 +00:00
Stephan Aßmus
53115c9920 moved the place of implementation of locking in DisplayDriver, because the Painter version has it elsewhere. the DisplayDriver locking API is now abstract, the same locking is now in DisplayDriverImpl, Painter version uses HWInterface for locking
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12084 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 22:02:19 +00:00
Michael Lotz
3c46b74895 Remove debug leftover.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12083 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 21:29:55 +00:00
Michael Lotz
cd970020cb Implement the BWindow::task_loop again. I know that this is code duplication, but look at
the TODO item for an explanation. We could do this as a hack in Looper.cpp though.
Also implement the determine_target function (incomplete).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12082 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 21:08:38 +00:00
Ingo Weinhold
4b72d3d8a8 Renamed gawk's libintl.a target to <gawk>libintl.a and placed it in the
objects/ tree, so that it doesn't clash with others (those should be
fixed, too). gdb is (or will be, as soon as I check it in) using this
version, too.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12081 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 20:21:53 +00:00
Michael Lotz
1e29ee2b74 Made it possible to disable PCI module debug output.
This speeds up boottime with serial debug enabled.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12080 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 17:00:20 +00:00
Michael Lotz
11356b94e3 Fix Setenv to properly export TERM that commands like clear work too.
We use Setenv instead of the native setenv to stay binary compatible with
BeOS, as R5 does not have setenv.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12079 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 16:05:55 +00:00
Michael Lotz
fa78489457 Added a BMessageFilter to catch the B_TAB key (for tab completion).
This doesn't work under Haiku yet though.
Also made the thread functions into members of MiniView so that we
can have correct private members.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12078 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 15:47:40 +00:00
Adi Oanca
d9bbe07efa When the active window (the one who has both, focus and front states) changes, messages are sent to the client side. This makes BWindow::WindowActivated to be called on such am event.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12077 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 13:52:26 +00:00
Adi Oanca
80cbe2b0f3 2 new methods
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12076 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 13:48:30 +00:00
Adi Oanca
2401f93d84 Added FrontWinBorder(). Made FocusWinBorder() and a few other methods inline.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12075 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 12:58:27 +00:00
Adi Oanca
ab88eaf2ad BWindows are notified when they are moved or resized.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12074 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 12:19:37 +00:00
Adi Oanca
27e3da2fac BWindow's frame events hooks work now. Frame gets updated on window move/resize.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12073 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 12:16:31 +00:00
Adi Oanca
867b420067 get_workspace_windows() new returns true if there was a change in window hierarchy. Improved performance a bit by avoiding an invalidate call.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12072 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 10:51:28 +00:00
Adi Oanca
aa498a5f03 get_workspace_windows() now returns bool
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12071 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 10:49:42 +00:00
Adi Oanca
9e358400f5 Sending windows into background works now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12070 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 10:00:37 +00:00
Michael Lotz
2a0a0e9c0a Add the MiniTerminal to the buildsystem.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12069 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 06:12:25 +00:00
Michael Lotz
160bd2ffca This is a minimalistic version of a terminal.
It can be run under R5 and Haiku (binary compatible) and should work
with the Haiku app_server and input_server.
It gives access to a /bin/sh like a normal terminal, but has no fancy features
like different text encoding support and it cannot even redraw itself when
something else overdraws it.
But it's pretty impressiv that it works so well under Haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12068 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 06:11:38 +00:00
Michael Lotz
6109122c9b Implemented screen to screen blit and cleaned up header.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12067 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 05:29:56 +00:00
Michael Lotz
65369afd6d Implement AS_LAYER_COPY_BITS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12066 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 05:25:59 +00:00
Michael Lotz
f43d1e849d Implement AS_LAYER_SET_PATTERN.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12065 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 04:08:33 +00:00
Michael Lotz
a2a622616f Some cleanup to make it easier to read.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12064 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 03:33:23 +00:00
Michael Lotz
ac13e18b22 The default shear is actually 90.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12063 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 03:15:34 +00:00
Michael Lotz
ed16bb7885 Fix KeyDown/KeyUp calls so that we don't always get numBytes = 0.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12062 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 02:07:02 +00:00
Michael Lotz
d5373f593a Minor cleanup and a small fix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12061 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 01:57:28 +00:00
Ingo Weinhold
61b60efc91 Added gdb's libiberty to the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12060 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 23:35:57 +00:00
Ingo Weinhold
f0d5a638b1 Added a config.h (generated by configure). We probably have to check this later again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12059 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 23:35:24 +00:00
Stephan Aßmus
c3314ff5eb added DPMS functions to HWInterface as well as Initatialze and Shutdown, added a couple of TODO comments
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12058 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 23:23:40 +00:00
Stephan Aßmus
4594032d1a got this added\?
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12057 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 22:26:42 +00:00
Stephan Aßmus
3294d07b15 abstract base class and implementation using BView and BWindow of an interface to a graphics card, UpdateQueue doesn't work yet, it was going to be used to decouple frame buffer transfers to the front buffer from the drawing in the back buffer
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12056 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 22:16:29 +00:00
Stephan Aßmus
5cdd702901 use a DisplayDriverPainter version if config says so
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12055 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 22:13:23 +00:00
Stephan Aßmus
1b52d7cf9c include my new stuff in the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12054 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 22:12:37 +00:00
Stephan Aßmus
3d07835f2a init display mode
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12053 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 22:11:52 +00:00
Stephan Aßmus
517e54d0d9 added more support functions
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12052 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 22:10:54 +00:00
Stephan Aßmus
80547db1f2 added some support functions for string bounding box
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12051 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 22:09:58 +00:00
Stephan Aßmus
4157339be2 started to implement stuff, it can actually be used and renders my test app almost like the old implementation, plus clipping
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12050 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 22:09:02 +00:00
Stephan Aßmus
e56d7bd374 fixed type in RootLayer, which I found because I triggered a bug
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12049 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 22:05:40 +00:00
Stephan Aßmus
b1456ac915 the BViews in the test windows draw something
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12044 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 22:00:50 +00:00
Stephan Aßmus
ffc01863ba BitmapBuffer moved into app_server
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 22:00:19 +00:00
Axel Dörfler
61ad5bc2e7 Fixed various problems with the latest stdbool.h changes, including stdbool.h itself:
- SupportDefs.h only includes stdbool.h if included from C
- stdbool.h for C++ now includes a macro for "bool" as defined by that header
- stdbool.h does nothing if __bool_true_false_are_defined is already defined
- stdbool.h no longer defines a _Bool enum, but defines _Bool as unsigned char, as
  previously done by SupportDefs.h (the previous version changed the size).
- The gensyscalls Jamfile now preprocesses its headers in C++ mode so that "bool"
  stays "bool", and doesn't become _Bool.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12042 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 18:01:40 +00:00
Stephan Aßmus
e2408620c3 disable the build of agg_font_freetype.cpp for now
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12041 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 16:49:40 +00:00
Stephan Aßmus
7a54109e1b moved BitmapBuffer, because it comes in handy in app_server
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12040 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 16:47:37 +00:00
Stephan Aßmus
c6d265aa15 allow access to bitmap
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12039 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 16:46:50 +00:00
Axel Dörfler
534c1cf281 As Ingo pointed out, the breakpoint exception cannot be caused "naturally",
so it's not an interrupt gate but a standard call gate.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12038 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 15:36:41 +00:00
Axel Dörfler
db32c595a2 Fixed compilation due to the stdbool.h update.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12037 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 15:33:54 +00:00
Ingo Weinhold
0185b89c0d Added gdb's readline to the build. Some day we should put a readline in
src/libs and build a shared library to be used by all programs that
need it (bash, gdb) instead of letting each have its own copy.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12036 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 15:29:43 +00:00
Ingo Weinhold
bc5b3d1208 Added a config.h (generated by configure).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12035 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 15:27:28 +00:00
Axel Dörfler
e5fd0bde4a tcsetpgrp() and tcgetpgrp() are actually defined in unistd.h, not termios.h.
Implemented them and moved them to unistd/terminal.c - not yet tested, though,
but should work. As a side effect, the TTY should now send signals.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12034 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 14:41:30 +00:00
Ingo Weinhold
d6ec927ff1 We don't have <sys/file.h>. It wouldn't harm to add it, though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12033 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 13:06:05 +00:00
Ingo Weinhold
652f8945c1 Include <sys/types.h>. Forgot what, but something was unknown otherwise.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12032 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 13:05:11 +00:00
Ingo Weinhold
90af425ab1 Added Haiku x86 recognition.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12031 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 13:03:43 +00:00
Ingo Weinhold
9dcad89a9b TCP_NODELAY is not defined in Haiku networking headers yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12030 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 13:02:55 +00:00
Ingo Weinhold
055b5b93a8 Added constant for the Haiku OS ABI.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12029 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 13:00:26 +00:00
Ingo Weinhold
d92911c6c3 Shared object support for Haiku. Currently only working as part of a native debugger.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12028 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 12:58:22 +00:00
Ingo Weinhold
ffe68e41fb Generic and i386 specific Haiku native and target debugger support.
The target debugger won't work though, since quite a bit of code
would need to be moved from the native support files to those for
the target support. But that's not that important at the moment, since
we're mainly want a native debugger.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12027 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 12:57:07 +00:00
Ingo Weinhold
4292001718 The include files for generic and i386 specific Haiku support.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12026 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 12:50:23 +00:00
Ingo Weinhold
36a69705b5 Haiku make support.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12025 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 12:47:48 +00:00
Ingo Weinhold
f4b0b0925d Haiku support for configure.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12024 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 12:46:29 +00:00
Ingo Weinhold
edbfa39b73 Copied gdb 6.3 to the main trunk.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12023 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 11:06:23 +00:00
Michael Lotz
0f1414c791 Add Jamfile for libpainter.a to fix the build of app_server.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12020 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 10:51:07 +00:00
Michael Lotz
2f45e7ed71 Update inline documentation to reflect the removal of the strlength field
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12019 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 10:40:13 +00:00
Adi Oanca
61c1519f03 Small fix to send B_MOUSE_MOVE/UP messages to the BView which acquired the mouse
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12018 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 09:18:27 +00:00
Adi Oanca
40b3f1e1ec * clicking inside the active window no longer gets you into debugger. :-P
* Updated KeyboardEventHandler to use the new focus method.
* don't read strlength on B_KEY_DOWN/UP as this gets you into debugger when using ViewDriver.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12017 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 08:55:27 +00:00
Adi Oanca
07fdbe8f67 Moved app_server window a bit to the left.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12016 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 08:41:46 +00:00
Adi Oanca
688204180d No need to send string length on B_KEY_DOWN/UP
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12015 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-26 08:40:33 +00:00
Stephan Aßmus
612b27513a libagg is now build as static, excluded the build of the GUI controls for the interactive examples
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12014 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-25 23:35:32 +00:00
Stephan Aßmus
80141c9fc5 libagg is now build as static
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12013 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-25 23:34:35 +00:00
Stephan Aßmus
4e9146ad6a removed agg_font_freetype.cpp from the build, as it is already included with libagg.a
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12012 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-25 23:33:45 +00:00
Stephan Aßmus
1fc2bd8922 the beginnings of the Painter version of DisplayDriver, I don't know what I'm doing yet, so just ignore this for now
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12011 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-25 22:46:10 +00:00
Stephan Aßmus
a850bd1d8f added Painter to the app_server build and fixed the Jamfile to include the drawing subfolder for header search path
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12010 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-25 22:44:18 +00:00
Michael Lotz
b1530ab8e8 When sending native keydown/keyup events the delivery of the string was broken.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12009 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-25 21:51:02 +00:00
Michael Lotz
96b832ac57 No need to endless loop here.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12008 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-25 21:39:53 +00:00
Michael Lotz
d31e3b8e27 Use FTFace() function to get the face instead of always creating a new one.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12007 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-25 21:11:46 +00:00
Michael Lotz
6d495dfc26 FT_New_Face is a quite heavy function and shouldn't be called for every StringWidth, StringHeight and DrawString call. We now keep it open in FontStyle and destroy it there too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-25 21:02:40 +00:00