Ingo Weinhold
ea3df577a3
After resolving the flag clash things work. Use our nice B_KERNEL_{READ,WRITE}_AREA flags for clarity.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11052 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 23:30:53 +00:00
Axel Dörfler
b6f895e7fb
Make sure the image is built for the right platform.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11051 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 23:29:06 +00:00
Axel Dörfler
10b863b604
No longer assumes to be on a BeOS platform.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11050 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 23:12:36 +00:00
Ingo Weinhold
0859d5e9ae
Added B_USER_CLONEABLE_AREA to the kernel area protection mask.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11049 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 22:56:31 +00:00
Ingo Weinhold
ed932a9564
Added B_USER_CLONEABLE_AREA protection flag. Here it does belong.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11048 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 22:55:13 +00:00
Ingo Weinhold
06f5fe61a2
* Removed B_USER_CLONEABLE_AREA. The value conflics with other flags and
...
it does belong to <KernelExport.h> anyway.
* Reverted the protection flags back to decimal for consistency with the
other places. BTW, since when do we use decimals for flags?
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11047 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 22:54:22 +00:00
Ingo Weinhold
aa50545364
As I recently learned making a kernel area B_READ_AREA/B_WRITE_AREA makes
...
it readable/writable for all userland apps. This is not what we want here.
We want to make the area cloneable for the registrar and hence use the
new flag B_USER_CLONEABLE_AREA. But there seems to be a bug that causes
strange things to happen, when using that flag only, therefore we go with
all of them until it is fixed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11046 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 22:18:23 +00:00
Ingo Weinhold
6e53f60e2c
Added support for protection flag B_USER_CLONEABLE_AREA.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11045 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 22:13:10 +00:00
Ingo Weinhold
6e9582baf1
Introduced new protection flag B_USER_CLONEABLE_AREA. It makes kernel areas cloneable for userland apps.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11044 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 22:11:59 +00:00
Axel Dörfler
acfb502dcf
Added _kern_get_safemode_option(). Probably this file should be moved out
...
of the storage camp, though.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 22:01:41 +00:00
Axel Dörfler
f29e97d3ae
Not at all needed
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11042 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 21:23:51 +00:00
Axel Dörfler
4edff48607
We still have to be binary compatible when we build for Haiku.
...
Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11041 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 21:23:29 +00:00
Axel Dörfler
72d7d28ef8
I accidently broke glibc's perror() - now it's working.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11040 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 21:20:35 +00:00
Adi Oanca
faa0ed6a33
s/(c) 2001-2002, OpenBeOS./(c) 2001-2005, Haiku, Inc.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11039 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 20:44:09 +00:00
Nathan Whitehorn
e2f2b0a474
Improved IRQ sharing
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11038 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 20:17:32 +00:00
Jérôme Duval
7e1e4b7fc5
added R5 compatibility
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11037 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 19:15:19 +00:00
Nathan Whitehorn
71f0d1ebbe
Fixed a bug that would cause bogus Message-IDs on BONE systems. It seems that our utsname structure is 8 times larger than BONE's, so all the offsets are screwed up when you try to link our headers against BONE libraries. If we're really aiming for BONE compatibility in our network stack, perhaps this should be changed.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11036 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 18:32:29 +00:00
Ingo Weinhold
757bc7b934
Renamed Referencable to Referenceable (mainly to make Axel happier :-).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11035 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 16:10:03 +00:00
Ingo Weinhold
2c17b743c7
Implemented all missing functionality save the actual sending of a
...
flattened message. Support for this needs to be added to BMessage first.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11034 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 16:05:26 +00:00
Ingo Weinhold
5ac1156848
Replaced _init_roster_() _delete_roster_() by static functions in BRoster::Private.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11033 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 15:20:11 +00:00
Ingo Weinhold
42be32659a
TRoster is no longer a friend of BMessenger -- use BMessenger::Private.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11032 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 15:08:15 +00:00
Ingo Weinhold
35d70f9eca
The MessagingService is now a singleton. Added creation of the MessageDeliverer.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11031 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 15:06:42 +00:00
Ingo Weinhold
c36e75d1cb
Added Referencable.cpp and MessageDeliverer.cpp.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11030 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 15:04:52 +00:00
Ingo Weinhold
2467cef0f0
This class encapsulates the service delivering messages without dropping
...
them immediately when the target port is full at the moment. It's not
quite complete. The data structures are there, but the actual delivery is
still missing.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11029 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 15:04:05 +00:00
Ingo Weinhold
47e01f5075
Added helper class Referencable (a simple base class for reference counting).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11028 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 15:00:12 +00:00
Ingo Weinhold
73895a69a0
* Added the class MessagingCommandHandler, instances of which can be
...
registered as handlers for specific commands sent by the kernel.
(Beautifully object-oriented :-)
* Fixed a bug regarding MessageArea creation (the object was deleted
twice on error).
* Actually resume the command processor thread.
* Turned the class into a singleton.
* Now always process all commands found in an area (should minimize
latencies).
Modulo bugs the class is now complete.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11027 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 14:58:37 +00:00
Ingo Weinhold
27bd55fdf3
* Improved initialization.
...
* The counter semaphore is now only released when writing a command into
an formerly empty area. The userland part is aware of that. :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11026 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 14:51:06 +00:00
Ingo Weinhold
d7b6591345
Added initialization of the messaging service.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11025 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 14:48:34 +00:00
Ingo Weinhold
647bed8f15
Added clarifying comment.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11024 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 14:47:22 +00:00
Ingo Weinhold
4b8aafea9f
BMessenger has no friends besides Private anymore.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11023 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 14:46:28 +00:00
Ingo Weinhold
4afc60d31b
* Turned the private constructor into a SetTo().
...
* The < operator uses BMessenger::Private now (it's no longer a friend).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11022 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 14:45:14 +00:00
Ingo Weinhold
16cab04ad2
* Fixed mismatching header guard.
...
* Added SetTo().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11021 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 14:42:55 +00:00
Ingo Weinhold
054e7d17d7
* Got rid of all friends save the Private inner class.
...
* Turned the private constructor into a private SetTo().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11020 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 14:41:50 +00:00
Axel Dörfler
f3cadd05dd
Improved header - struct kernel_args was only defined in arch headers.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11019 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 14:24:01 +00:00
Rudolf Cornelissen
e846ba3dd6
updated DMA engine error handling: the driver should nolonger hang (again) if the engine crashes.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11018 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 12:58:15 +00:00
Axel Dörfler
0bfd48e555
Will now also publish directories for existing driver directories that
...
have subdirectories in order to find device drivers like /dev/audio/raw
without any drivers in /dev/audio.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11017 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 02:57:52 +00:00
Axel Dörfler
dd5857c283
Added devfs_publish_directory() prototype.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11016 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 02:37:08 +00:00
Axel Dörfler
7ec59908da
Added a devfs_publish_directory() function that just tries to make sure
...
that a path is available (like "mkdir -p").
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11015 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 02:17:02 +00:00
Axel Dörfler
9d2a7c104c
Added the media_server and media_addon_server.
...
Added some translator and media add-ons.
Servers are now copied using "copyattr" to preserve file attributes (primarily
for BEOS:APP_SIG at this point).
Now copies current/data/settings/* to the target.
Output of mkbfs is trashed.
Now prints a warning in case the build failed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11014 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-24 21:27:38 +00:00
Axel Dörfler
bc1c6407f6
Added a sample kernel settings file, explaining the existing options.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11013 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-24 21:13:24 +00:00
Adi Oanca
574540edd2
Removed a redundant BMessage when mouse button was pressed. This message is already sent by WinBorder::MouseDown(). Window content was redraw when a window became active. Removed some code that anyway was not used. It will be replaced by the new window manager which is comming soon.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11012 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-24 21:04:23 +00:00
Adi Oanca
c4e214743d
All 'Invalidate' methods are now private, intended for RootLayer's use only.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11011 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-24 20:59:27 +00:00
Adi Oanca
304feb8ad5
RebuildAndForceRedraw() is not needed anymore
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11010 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-24 20:57:51 +00:00
Rudolf Cornelissen
ab26d7f837
finalized DMA buffer overfill checking for optimum speed. On NV11 accelerated functions are running at 130% to 200% speed in DMA mode compared to the 'old' PIO mode. Without trouble now.
...
Still only 32bit mode, and still missing invert_rect function though. Also still not explicitly adhering the engine constraints which needs to be rechecked/retuned compared to PIO mode (hence the non working 800x600x8 mode I expect..)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11009 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-24 20:11:59 +00:00
Axel Dörfler
c586de1d62
Removed warnings, minor cleanup.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11008 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-24 18:53:34 +00:00
Adi Oanca
bd1ede2ae9
Yes... I really don't remember why I haven't subclassed FMWList from BList...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11007 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-24 17:34:47 +00:00
Adi Oanca
383461c7ee
3 global variables (gRedrawReg, gCopyRegList, gCopyList) went into RootLayer's property
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-24 17:18:19 +00:00
Rudolf Cornelissen
11e38e920f
added checking to prevent DMA buffer overfills: it turns out for instance NV11 can't keep up with BeRoMeter and the engine crashes otherwise. It turns out NV11 is currently only working correctly in 32bit color mode BTW.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11005 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-24 16:14:20 +00:00
Jérôme Duval
e01fcf6917
moved to rdef format
...
added strlcpy.c for r5 builds
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11004 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-24 14:41:30 +00:00
Rudolf Cornelissen
e2e0a5e177
shut-down that dumb ISA access for DMA. Acc speed just went through the roof! (testing with BeRoMeter). I'll now compare DMA and non-DMA speed on NV11 8-)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11003 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-24 11:33:13 +00:00