1096 Commits

Author SHA1 Message Date
beveloper
9bdea9ec06 added profiling code, can be enabled in debug.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7595 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-16 00:41:22 +00:00
beveloper
4e729ddc16 small cleanup
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7594 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-15 23:54:19 +00:00
beveloper
889fc773aa added ASSERT macro
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7593 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-15 23:43:56 +00:00
beveloper
f08af63703 Added timer support, taken from the ipro1000 driver.
We really should have support for a similar functionality in the new kernel.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7592 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-15 23:42:14 +00:00
Philippe Houdoin
a2e78b2000 Fix warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7585 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-14 22:20:33 +00:00
Jérôme Duval
e82990a204 Added package for emuxki
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7537 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-12 08:55:45 +00:00
Rudolf Cornelissen
1208ac278f new modelist setup: added 16:10 aspect VESA GTF modes if WS panel found
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7510 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 22:30:46 +00:00
Niels Sascha Reedijk
746ef8017d Unbork the build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7508 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 19:52:45 +00:00
beveloper
3d546cd6e5 Replaced spin() by snooze()
The link change functions are no longer called from inside the interrupt handler.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7482 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-09 22:06:32 +00:00
beveloper
a05655eea6 Event thread sem can now be interrupted.
em_start() is no longer called from within interrupt.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-09 21:20:56 +00:00
beveloper
ec3efcdcac don't exit timer loop on B_INTERRUPTED
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7480 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-09 21:01:14 +00:00
beveloper
6000570ec3 debug code cleanup
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7479 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-09 20:50:20 +00:00
beveloper
9b4b9246a3 replaced printf by dprintf
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7478 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-09 20:28:44 +00:00
beveloper
9924627a70 implemented timers
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7477 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-09 20:27:54 +00:00
beveloper
89739e8c0a Added ASSERT() macro to debug.h
Cleanup of printf calls.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7476 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-09 20:22:28 +00:00
Philippe Houdoin
0b2d0f8217 Ooops, damn code templates!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7475 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-09 19:42:10 +00:00
beveloper
0ec64b89a9 Added a new timer function which can be used similar to the BeOS kernel add_timer function.
The difference is that these callback functions will be executed in thread (not interrupt) context,
and that they shouldn't crash (as add_timer does).
Integrated the timer funtions into the timeout() and untimeout() FreeBSD emulation framework.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7474 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-09 18:58:17 +00:00
beveloper
25993bbe98 removed polling support
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7473 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-09 18:19:59 +00:00
beveloper
8012ca94e6 delay execution of em_82547_move_tail for 100 usec to compensate higher timeout resolution (might still be too small)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7472 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-09 18:04:36 +00:00
beveloper
5ace57d860 event_sem now also belongs to the kernel team
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7471 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-09 17:53:26 +00:00
beveloper
07903653ee removed all em%d from dprintf output
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7470 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-09 17:39:43 +00:00
beveloper
014c3fc0c3 Cleanup of event handling.
Disable debugging.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7469 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-09 17:29:39 +00:00
beveloper
b35683ab0c Added printing of link status.
Removed a few warnings.
Small cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7468 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-09 16:54:49 +00:00
beveloper
eefe75f24b Added license. Please be aware that previous versions without license were not free, as they were copyrighted.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7467 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-09 16:04:04 +00:00
beveloper
77eda14527 Split the mempool spinlock into two.
Added a ROUNDUP() macro.
Moved area_malloc/free into util.c.
Added missing license.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7466 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-09 15:20:10 +00:00
Axel Dörfler
31db113eb8 pci_info.cpp now expects pcihdr.h to be part of the Devices preferences app.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7463 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-08 18:53:05 +00:00
Rudolf Cornelissen
a626297096 added blocking of non-supported modes on panels
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7459 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-08 14:09:30 +00:00
Rudolf Cornelissen
051c0e75fb another small timing update for panels
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7457 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-08 12:38:55 +00:00
beveloper
313e78ec7d set semaphore owner to the kernel team
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7454 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 23:28:13 +00:00
Philippe Houdoin
d8afb49c8d Without SO_NONBLOCK sockets option support, no way to get non blocking sockets!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7450 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 20:37:17 +00:00
beveloper
666fb348c4 some uncommited changes from long time ago. hope this doesn't break anything.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7448 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 18:43:44 +00:00
Jérôme Duval
28f08e9eb3 Moved this header to private/kernel for wide reuse
The Jamfile already has this directory as include, so i hope it should build right


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7447 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 15:25:02 +00:00
Axel Dörfler
feec20d64b It's now <util/kernel_cpp.h> rather than <kernel_cpp.h>.
Forgot to commit that...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 11:13:17 +00:00
beveloper
720aa69389 removed many compiler warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-06 21:00:01 +00:00
Jérôme Duval
6bef4567da Fixed the build of echo24 and echogals drivers
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-06 15:47:19 +00:00
Rudolf Cornelissen
16fc5a3011 panel modeline updates including refreshrate update
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-06 14:07:06 +00:00
Axel Dörfler
6f7e72c0b7 Moved the logic from bfs_close() to bfs_free_cookie() - apparently, doing
anything in bfs_close() does not really makes sense. Thanks to Ingo for
pointing this out.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-06 12:31:18 +00:00
Axel Dörfler
c697a0f4cc When you now set COMPILE_FOR_ZETA=1 on the command line when jamming, the
api version will be set to 3 as required for Dano/Zeta - apparently, the
previous mechanism doesn't work with our headers, as we don't define
B_BEOS_VERSION_DANO at all :)
Fixed the build again (because of the stdio switch).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7428 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-06 12:30:23 +00:00
Philippe Houdoin
85898f2b1a One should be enough!
NET_STACK_CONTROL_MODULE IPC support is still a work in progress, thought.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-05 17:11:53 +00:00
Bruno G. Albuquerque
4e936bb759 Now when BFS_REPLACEMENT is set, the name used for the add-on is "bfs" instead
of "obfs" (thanks Ingo). Also, changed the destination directory. It was formelly
"beos/system/add-ons/kernel/file_systems/bfs/" and now it is
"beos/system/add-ons/kernel/file_systems/" (as it should be).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-04 22:07:12 +00:00
Philippe Houdoin
cda24f2279 Ooops, should have not commit this stupid change!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7410 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-04 21:22:00 +00:00
Axel Dörfler
34cf473d12 BlockAllocator::CheckBlockRun() can now also check for non-allocated ranges.
Fixed a possible endian problem in CheckBlockRun(), too.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7405 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-04 01:42:53 +00:00
Bruno G. Albuquerque
b1e752314f Ops! :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7404 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-04 01:27:17 +00:00
Bruno G. Albuquerque
e4758ac382 Added BFS_REPLACEMENT define that will enable compiling OpenBFS as as full
BFS replacement (will report itself as "bfs" instead of "obfs". Is there a
way to change the add-on name based on the same define?


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7403 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-04 01:24:27 +00:00
Axel Dörfler
c832ff1e1b Fixed a race condition in the block allocator initialization (the lock was held
too late, and could theoretically already be acquired by someone else).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-04 00:07:38 +00:00
Philippe Houdoin
dd8f2aef56 Jamfile for ipro1000 driver too.
Added ipro1000, rtl8169 and via-rhine to build.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-03 23:41:33 +00:00
beveloper
56676a8c4b This is the real hard stuff!
FreeBSD compatibility layer that provides a struct ifnet interface,
all #defines that are used by the driver, the mbuf functions,
mbuf queues, etc.
Also some unused things are provided by empty macros.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-03 23:31:45 +00:00
beveloper
b567981843 A simple memory pool that is used the the mbuf support. Can be called
from within an interrupt handler, and wastes pretty much memory.
Knows only about two different block sizes, and implements them by
using a simple free list.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7398 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-03 23:29:46 +00:00
beveloper
07815bc520 The driver interface detects the cards and publishes defs entries.
util.* provide a convenience function to map physical memory.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7397 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-03 23:27:26 +00:00
Philippe Houdoin
8f1b75b72e Jamify the new network cards drivers commited by Marcus.
Coming soon for ipro1000, too.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7396 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-03 23:25:31 +00:00