Axel Dörfler
2d690920ac
Renamed system/core to system/kernel.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 13:22:10 +00:00
Axel Dörfler
5af32e7526
Renamed src/kernel to src/system.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 13:06:35 +00:00
Axel Dörfler
530d77200b
The PS/2 keyboard and mouse drivers are now using the new ring_buffer implementation
...
of the kernel. Also fixed unsafe userland communication, and other minor issues.
The packet_buffer encapsulates the ring_buffer and adds some handy functionality
(like locking).
Removed the global open masks - no reason for them to be defined globally.
Lots of cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 13:00:32 +00:00
Axel Dörfler
ef2b38e7a9
Added a simple ring buffer implementation to be used by the mouse
...
and keyboard drivers, as well as pipefs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 12:57:42 +00:00
Axel Dörfler
709bbb9ea3
The input_server no longer uses R5 communication by default - this should
...
fix the keyboard/mouse problems of most (because they probably didn't know
about this flag). Still does not work for me, though.
Note, if you want consoled the use the input_server, or if you want to use
the input_server as an R5 replacement, you have to define this flag again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 12:55:54 +00:00
Axel Dörfler
fce78d9e21
The console driver now supports TIOCGWINSZ (getting the window size), and
...
"consoled" now uses this information to tell the TTY its size.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 12:51:26 +00:00
Axel Dörfler
7c71cdd82d
Removed the "fixed" configuration - we could have built "less" fine for a couple
...
of months now. This solves (probably) all those strange problems you might have
experienced using it.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 12:48:34 +00:00
Jérôme Duval
5555c5efdb
added tail
...
added mouse device input addon
added filters input directory
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 19:25:35 +00:00
Jérôme Duval
a2c10460cc
* added TRACE info
...
* we now put data in cbuf at the good offset
The mouse is now working ok in Haiku, tested with input_server.
The current implementation based on our cbuf isn't good, as we're erasing old data, if mouse input addon can't keep up with interrupts.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 18:57:44 +00:00
Jérôme Duval
491417146b
whoami is provided by coreutils (AFAIK)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 18:52:11 +00:00
Jérôme Duval
ccce070045
As Haiku BScreen::Frame() doesn't work in our current state, we use a fake Frame
...
input_server now sends well filled BMessages in Haiku
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 18:51:03 +00:00
Nathan Whitehorn
ff50d32d9d
Confirmed I was a moron in one of axeld's TODOs, changed B_LOMEM to B_FULL_LOCK | B_CONTIGUOUS.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 18:00:29 +00:00
Stephan Aßmus
c9ceeec23c
Reverted some changes by Adi, because the way it works now is more helpful in finding bugs.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12348 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 13:16:58 +00:00
Stephan Aßmus
6697162d5c
just a slightly more robust default font handling... should now work on Haiku even if you didn't install fonts from BeOS.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 13:15:38 +00:00
Stephan Aßmus
8a92263232
I _think_ the global system default fonts were never set. I added that to the _init_interface_kit_ function, and it fixes the system fonts under R5. It might have looked like it worked on Haiku before, but I think the be_fixed_font was just the first font found by the scanner in either Haiku and BeOS, while on Haiku, this was Courier just by chance. If this is not the right place to call _init_global_fonts, please tell me or just fix it. I tested under Haiku and BeOS and it looks like it works...
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 13:02:20 +00:00
Axel Dörfler
3f762b0d64
Turned two dprintf()s into the TRACE() macro, as their messages are not really that important.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 09:02:32 +00:00
Axel Dörfler
53465d39c5
Added gdb to the image.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:56:32 +00:00
Axel Dörfler
e826b3f47e
put_module_image() is now again called independently from B_KEEP_LOADED - that has
...
the advantage that module_image::ref_count does not get messed up, so we could still
determine when to unload such a module (with an extra function).
get_module() now calls put_module_image() if B_MODULE_INIT failed - failing modules
were never unloaded before...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:55:03 +00:00
Axel Dörfler
e6963ff534
If B_KEEP_LOADED is specified, it's now guaranteed that B_MODULE_UNINIT is never
...
called, and B_MODULE_INIT only once.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:42:06 +00:00
Stephan Aßmus
643d10bb64
Added a big TODO comment, StrokeLine takes now non-const DrawData.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:28:25 +00:00
Stephan Aßmus
b176b6b493
The DisplayDriverPainter is now also the default on Haiku. The DisplayDriverImpl stuff is left out for now.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:22:16 +00:00
Stephan Aßmus
5eec899752
added a TODO comment
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:15:53 +00:00
Stephan Aßmus
a53e726400
StrokeLine takes a non-const DrawData, penlocation is altered.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:15:25 +00:00
Stephan Aßmus
a11f3c21fd
StrokeLine takes now a DrawData, but it is only work in progress. The changes will be more drastic in the end.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:14:29 +00:00
Axel Dörfler
39c2d6c421
If the debugger command "team" is used without arguments, it will now print a list of all existing teams.
...
Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:13:12 +00:00
Stephan Aßmus
80ed6173ec
Hinting works now and is enabled, the support for transformed text is probably completely broken now. To reenable it, the font loading needs to ask for vector glyphs when there will be a transformation.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:12:59 +00:00
Stephan Aßmus
0858a6fca1
The freetype hinter only works correctly if the embedded transformation is the identity matrix. The AGG freetype font engine has a flip_y method to make it easier to work with coordinates where y points down. Since it changes the embedded transformation, hinting was messed up. Therefor, this is a workarround to be able to keep using the identity matrix and still have y pointing down. It just flips the generated raster glyphs.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:11:09 +00:00
Stephan Aßmus
764683a939
StrokeLine alters the pen location, DrawData needs to be non-const. I didn't make this change in the DisplayDriverImpl stuff, and it is left out of the build for now.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:07:20 +00:00
Stephan Aßmus
bd6b1617ec
a few cosmetic changes
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:05:03 +00:00
Axel Dörfler
a9ac393b28
The nvidia driver now works under Haiku when build with target haiku.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 07:52:01 +00:00
Axel Dörfler
71ef877c9c
A tiny bit more debug information in case a module couldn't be loaded.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 06:59:19 +00:00
Axel Dörfler
955d763c86
Inode::FillPendingRequests() did not work correctly; it would have written
...
arbitrarily into the current team address space if there are pending bytes
in the chain.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 06:37:24 +00:00
Axel Dörfler
1c59ca152c
I accidently didn't disable SMP.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 06:10:28 +00:00
Axel Dörfler
f80b1fa5b5
Moved the kernel_startup variable declaration from int.h to kernel.h (it's defined in main.c).
...
Some cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 06:09:13 +00:00
Axel Dörfler
c46e419bc5
Fixed the most obvious bugs:
...
- it's restore_interrupts() not enable_interrupts()
- B_READ_AREA|B_WRITE_AREA gives every *userland* application full access
- fixed coding style
- the PCI module was never put away (but get_module() was called almost everywhere)
- added comments where the code looked buggy on first sight
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 05:47:48 +00:00
Axel Dörfler
d67e6bc8a2
Fixed the build of several network apps under R5:
...
- removed libnetapi.so from $NETWORK_LIBS - it's not used by anyone anyway,
and it's definitely not necessary to link against it by default.
Note, this might cause problems in some of the mail add-ons; I haven't
tested this.
- route/ping/... now also link against $SELECT_UNAME_ETC_LIB
makehdimage should now work again under all BeOS platforms.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 04:22:55 +00:00
Axel Dörfler
c7def18e6d
Fixed at least the most obvious violations of our style guide...
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 04:15:15 +00:00
Axel Dörfler
79de26ad08
This fixes a bug and two warnings:
...
- pending_chain was set to -1, then MAIL:pending_chain was read into the variable "chain",
but later pending_chain was used again for comparison - and if that was not enough,
"chain" was later used again as well... (Nathan please check this)
- pending_chain was int32, Chain()->ID() uint32
- renamed pending_chain to pendingChain
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 03:49:59 +00:00
Axel Dörfler
8962594050
Fixed script for building an image file (network paths were wrong).
...
Removed GPLd network add-ons from the target image for now as they are only
compilable when the tree was configured to support GPL add-ons.
(I am not even sure if GPLd drivers are a legal problem for us, anyway)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 02:44:01 +00:00
Michael Lotz
fe161a3fc8
Added temporary implementations for float math functions. They provide more binary compatibility for now.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12306 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-11 23:44:46 +00:00
Michael Lotz
695e973b6b
Replacing more broken binary resources with rdefs.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-11 23:17:12 +00:00
Michael Lotz
7ea31cbce8
Replacing more broken binary resources with rdefs.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-11 23:10:49 +00:00
Michael Lotz
a039ddd972
Replacing more broken binary resources with rdefs.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-11 23:10:13 +00:00
Michael Lotz
02ea2a0f7c
Replacing even more broken binary resources with rdefs.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12302 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-11 23:08:09 +00:00
Michael Lotz
9bd0b5702c
Replacing more broken binary resources with rdefs.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12301 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-11 23:06:45 +00:00
Michael Lotz
3650623d6f
Replacing broken binary resources with rdefs.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12300 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-11 22:54:16 +00:00
Adi Oanca
4038d58146
Fixed a bug where a modal subset on some occasions did not change workspaces when its main window did. Initializing workspaces is a bit different now, they are initialized when are needed. Some work on adding support for BWindow::WorkspaceActived()
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-11 22:46:48 +00:00
Michael Lotz
2a76482cf3
Forgot to add PPP stuff. Also include the network binaries like ifconfig and route.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-11 21:28:05 +00:00
Michael Lotz
14a6985247
Did these get broken along the switch by the way?
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-11 20:35:57 +00:00
Michael Lotz
7544c9f03b
Implemented DumpToFile() from AccelerantDriver so that screenshots can be taken.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12296 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-11 20:15:43 +00:00