Commit Graph

6390 Commits

Author SHA1 Message Date
mahlzeit
3e60d395a7 Put private classes in the BPrivate namespace.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 10:55:51 +00:00
mahlzeit
32ed9cc8c6 The glue classes are now in namespace BPrivate.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 10:37:14 +00:00
Jérôme Duval
3c9ac32841 Added a static library libunzip.a to reduce repeated lines. Hope it builds :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7560 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 10:18:25 +00:00
mahlzeit
9138338c72 Fixed warnings on geekgadgets compiler.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7559 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 09:44:22 +00:00
mahlzeit
456cec68d1 If a be_synth already existed, the BSynth constructor should
delete it first.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7558 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 09:18:38 +00:00
Jérôme Duval
11317581fe added a newline
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 09:00:16 +00:00
Jérôme Duval
fc88a55e7a Added coreutils (should build soon)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 08:55:11 +00:00
Jérôme Duval
52c76a73b1 Added missing files
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7555 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 08:50:32 +00:00
Jérôme Duval
5db7538856 Fix the config
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 08:48:58 +00:00
Jérôme Duval
3ac41feb00 Link with our libmedia.so
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 08:46:29 +00:00
Jérôme Duval
6599482f1f use a variable now
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 08:45:46 +00:00
Jérôme Duval
54ee0f7256 Removed config.h, use the one in parent folder
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 08:43:46 +00:00
Jérôme Duval
892eb12372 Fix the config
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 08:34:58 +00:00
Jérôme Duval
3a47295d37 Link with our libmedia.so
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 08:22:03 +00:00
Philippe Houdoin
3d046cd292 Unbreak LPR & IPP print transport addons.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7546 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 00:16:57 +00:00
Philippe Houdoin
6d55406426 Was assuming sys/cdefs.h included by inet.h, which is not (anymore).
Added ISC arpa/nameser.h private header instead of sys/cdefs.h to follow others
source modules include pattern.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 00:01:39 +00:00
Philippe Houdoin
995e1b177a gethostname() is located in libnet.so on R5 & BONE *and* our own stack too.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-12 23:21:51 +00:00
Philippe Houdoin
e7ccdfbc85 libroot.so export atexit().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7542 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-12 22:45:27 +00:00
Jérôme Duval
c9d3419d67 Should not be here
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-12 15:51:36 +00:00
Jérôme Duval
57570d6cf4 Added a static library librcs.a to reduce repeated lines. Hope it builds :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-12 15:31:48 +00:00
Jérôme Duval
afea5244e2 Should not be here
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7539 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-12 15:29:49 +00:00
DarkWyrm
bcb8907775 I'm baaaaaack! :P
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7538 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-12 10:55:47 +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
Jérôme Duval
2a479225b5 Added tar
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-12 08:39:40 +00:00
Jérôme Duval
a616b95805 Added Gnu Tar 1.13.94, stripped unused files
Reversed lines 295/296 of src/buffer.c to have options z and j working
This last bug means this version maybe will need to be updated for R1


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-12 08:38:22 +00:00
Jérôme Duval
6738df6060 Added a static library libzip.a to reduce repeated lines
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-12 08:24:55 +00:00
Stefano Ceccherini
55bd207b20 Added a test for the bug found by Pahtz, and fixed the bug. Simplified a bit the code in BRegion::Support::RSub()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-12 06:37:18 +00:00
Axel Dörfler
78ab9987c3 Modules out of preloaded images will now be registered and can be used
like any other module (yeeha!).
You can even unload preloaded images later on (to replace them with a
more up-to-date on disk version).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-11 23:44:58 +00:00
Axel Dörfler
8590e919fc Now maintains the new preloaded_image::id field.
If an image cannot be created out of a preloaded_image, its resources
are freed now.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-11 23:43:30 +00:00
Axel Dörfler
d00edc2f92 Bye, bye elf_lookup_symbol(), hello get_image_symbol().
Also renamed elf_load_kspace() to load_kernel_add_on(), and friends.
The new unload_kernel_add_on() now has an image_id as parameter, no longer
a path (like the former elf_unload_kspace()).
Now requires a driver to export the api_version symbol.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-11 19:53:37 +00:00
Axel Dörfler
b918b5035f Bye, bye elf_lookup_symbol(), hello get_image_symbol().
Also renamed elf_load_kspace() to load_kernel_add_on(), and friends.
The new unload_kernel_add_on() now has an image_id as parameter, no longer
a path (like the former elf_unload_kspace()).
Fixed missign file system unload.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-11 19:52:38 +00:00
Axel Dörfler
81c323a767 unregister_elf_image() didn't call unregister_image(), so images never got
unregistered.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-11 17:30:18 +00:00
Axel Dörfler
d14f9aac93 Cleanup to better match our coding style guide; renamed variables, etc..
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7525 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-11 17:29:19 +00:00
Axel Dörfler
7e323e80d6 Kernel images are now registered, so the ToDo item is fulfilled.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-11 17:27:59 +00:00
Axel Dörfler
a364fba7d4 Is now using a hash for the images instead of a singly linked list.
Now registers its images as it should do (so you can use commands like
listimage in userland).
Added new debugger command "image".


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-11 17:18:02 +00:00
Axel Dörfler
11a5baaf67 Updated the private kernel image API to be more efficient (no longer needs
to acquire the team spinlock).
Renamed the user syscalls to the new style.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-11 15:04:36 +00:00
Axel Dörfler
fd1f6b7f01 Fixed a bug in elf_load_kspace(): the image structure and the pheaders were
freed in the wrong order in case of an error (could have crashed the kernel).
Implemented insert_preloaded_images() which prepares the preloaded images
for later use in the kernel.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-11 14:22:00 +00:00
Axel Dörfler
dc4eb9db8d Removed unneeded code, updated comment.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7519 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-11 14:20:14 +00:00
Axel Dörfler
797647691a elf_region already had a field to store an area_id; we now use this one.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7518 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-11 13:54:13 +00:00
Axel Dörfler
ff76eb5cde Boot loader BFS now has symbolic link support.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7516 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-11 12:16:26 +00:00
Axel Dörfler
450843b48f New "symlink" command which can create a symbolic link on the file system.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7515 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-11 02:04:38 +00:00
Axel Dörfler
73b10c8f1e Adapted the fstat/_fstat work-around to like the user boot loader build as well.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7514 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-11 01:07:54 +00:00
Axel Dörfler
259fd3cdfb open_from() now also supports absolute paths, in which case it will ignore
the passed in directory.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-11 00:26:22 +00:00
Axel Dörfler
429fb127d3 Fixes the build until we have this _fstat()/fstat() thing worked out.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7512 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 23:04:52 +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
Rudolf Cornelissen
c9210b6f8e new modelist setup: added 16:10 aspect VESA GTF modes if WS panel found
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7509 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 22:25:36 +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
Axel Dörfler
1f4fa35b00 Now creates text/data areas for all preloaded images.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7507 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 19:02:41 +00:00
Axel Dörfler
d15df01c72 load_modules() now actually load modules; it doesn't just print out their name any longer.
Now scans "/boot/home/config/add-ons/kernel/boot" as well as "/boot/beos/system/add-ons/kernel/boot".


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 19:00:05 +00:00
Axel Dörfler
38f5c6bbc4 Corrected elf_load_image() prototype; it requires an object of the Directory
class as first argument.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 18:57:58 +00:00
Axel Dörfler
cdacbf022a elf_load_image() always returned B_OK instead of the real status.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 18:57:12 +00:00
Axel Dörfler
bf67cc9591 Now uses the correct heap to allocate the image path name (kernel_args).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7502 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 16:49:23 +00:00
Axel Dörfler
e883af3cda Since we use the same includes as the real system, we now export _fstat()
with 3 arguments instead of fstat().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7501 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 16:48:33 +00:00
Axel Dörfler
007c81ec98 Added kernel_args_strdup() function as a strdup() replacement.
Added a ToDo comment.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7500 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 16:47:06 +00:00
Axel Dörfler
f4c303c472 Fixed some warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7498 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 14:56:48 +00:00
Axel Dörfler
0204c9a360 Added device manager to the kernel.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7497 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 14:49:38 +00:00
Axel Dörfler
d93e356b51 Changed the "stat" related syscalls to have an additional parameter that specified
the size of the stat structure to allow extensions of that structure.
Renamed those syscalls to the new naming scheme.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 14:36:05 +00:00
Axel Dörfler
c396c39fc5 Changed the "stat" related syscalls to have an additional parameter that specified
the size of the stat structure to allow extensions of that structure.
Renamed those syscalls to the new naming scheme.
Updated the syscalls to support stat extensions.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7494 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 14:33:17 +00:00
Axel Dörfler
7a7c7d9c2f Added current device manager built-in modules - the device manager itself will
probably be available as public kernel API as well (or rather, only).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7492 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 13:29:47 +00:00
Axel Dörfler
9bd10a87c7 The device manager is now initialized as well.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7491 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 13:28:21 +00:00
Axel Dörfler
8d1b721ad5 Added device_manager to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7490 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 13:27:20 +00:00
Axel Dörfler
6aed83b39c Removed all references of pnp_bus.h (its contents are now temporarily included
in device_manager.h).
Fixed some comments.
Removed realpath() from probe.c for now - mechanism will be changed, and that
prevented it from being built as part of the kernel; it's currently not functional.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7489 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 13:26:42 +00:00
Phil Greenway
a94fb8e252 SF's CVS screwed up and forgot to add these updated files by Michael Berg.
Sorry for any inconvenience this has caused.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7486 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 08:30:52 +00:00
Axel Dörfler
38fdd0ca47 node_lock variable was replaced by gNodeLock (in nodes.c).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7485 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 00:25:43 +00:00
Axel Dörfler
b36321870c Renamed some global static variables to match our style guide.
Changed some comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7484 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 00:09:21 +00:00
Axel Dörfler
1792829685 Fixed prefix handling; previous version was broken. It now allows the prefix to
be any size, not just full path names (even without the file name...). Optimized
it to only traverse paths that match the prefix.
The built-in modules now honor the prefix as well.
Renamed module_iterator::path_stack to stack.
The system add-on path was even wrong (but that didn't matter yet, as we're
still do a recursive search for modules).
The user add-on path now matches the real one - but that should probably be
retrieved from calling find_directory(), anyway...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7483 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 00:02:20 +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
0a4a7dee30 open_module_list()/read_next_module_name() now take built-in modules into account as well.
The prefix will obviously ignored currently!
Fixed get_next_loaded_module_name(); it will now work correctly (doesn't check, though,
if the module is currently loaded...).
Removed the module_test() function - doesn't belong here.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7465 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-09 00:41:19 +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
Axel Dörfler
136b2d209a pcihdr.h is no longer in private/kernel, as it is only really needed by
the Devices preferences application.
Removed the now unneeded include path from the Jamfile.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7462 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-08 18:43:54 +00:00
Axel Dörfler
72a2590171 Added missing newline.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7461 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-08 18:41:55 +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
Axel Dörfler
132d416525 Enhanced the kernelland_emu to:
- support built-in modules
 - support the private kernel locking calls
 - support the private kernel doubly linked list functions


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7458 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-08 13:26:08 +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
Rudolf Cornelissen
b97caf33af another small panel timing update
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7456 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-08 12:34:53 +00:00
Rudolf Cornelissen
268624c442 finished mod: driver works again
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7455 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-08 08:49:53 +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
Matthew Wilber
efc10d5e6a Implemented rewind functionality so that slide show no longer stops when it reaches the last file in the directory
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7453 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 23:25:11 +00:00
Philippe Houdoin
b541da436f Handling NET_STACK_CONTROL_NET_MODULE: work in progress...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7452 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 21:14:37 +00:00
Philippe Houdoin
c814e51224 Fighting Copy & Paste side effects:
fix some mistaken comments referencing PDF Writer driver.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7451 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 20:43:10 +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
Rudolf Cornelissen
0fccffc2c2 'cosmetic' update: in progress..
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7449 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 20:26:52 +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
0b48784541 Moved all remaining files under befs/ over to bfs/.
Fixed the build of all bfs tools.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7445 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 11:26:01 +00:00
Axel Dörfler
244d5b90d8 Moved befs/array to bfs/array. Removed befs directory from the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7444 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 11:19:30 +00:00
Axel Dörfler
da054c278c Fixed the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 11:15:09 +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
Jérôme Duval
22b19ff048 Improvements. Still not beta.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7441 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 09:02:48 +00:00
Axel Dörfler
3ad71e9d7e Rearranged the device_manager init/module stuff; it's now initialized from
main, not by getting the module any longer.
It now also creates the root node directly.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 00:34:00 +00:00
Axel Dörfler
637f662399 The node lock was missing in action.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 00:32:45 +00:00
Axel Dörfler
e5d9d14f90 Added the root node of the device tree to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 00:16:46 +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
Rudolf Cornelissen
bef5b86a74 another panel modeline update
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7434 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-06 18:45:40 +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
Phil Greenway
b66afdfa2d All New Code by Michael Berg.
The clock and calendar work.  The Zone list is mostly there.  I haven't gotten it to apply changes yet, and the second timezone time view isn't updated.  It is almost a bit copy of the original, I couldn't work out some of the positioning.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7431 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-06 12:55:26 +00:00
Phil Greenway
3211ef3088 Just getting back into the swing of things with the New Connection Window.
I'm going to keep plugging away at this app until such that it needs assistance from the net crew.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-06 12:45:28 +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
Rudolf Cornelissen
b6ec0fb23b tuned modeline tweaking a bit more for panels: currently in test for conf.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7427 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-06 12:04:48 +00:00
Axel Dörfler
df0dd8a5dd Removed test code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7426 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-06 01:44:14 +00:00
Axel Dörfler
f7e706a409 Separated initialization of standard file systems from boot file system.
team_create_team() now uses the B_NORMAL_PRIORITY constant instead of the number directly.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7425 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-06 01:27:34 +00:00
Axel Dörfler
7f79432203 Separated the bootstrapping of the standard file systems from the boot file
system - it's now mounted a bit later.
Renamed vfs_register_filesystem() to vfs_register_file_system().
Changed return codes to status_t where appropriate.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7424 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-06 01:25:36 +00:00
Axel Dörfler
b14f8b5746 Removed some debug output (it's not only dumped if TRACE_ROOTFS is defined).
Updated the debug stuff a bit, fixed debug build.
Renamed vfs_register_filesystem() to vfs_register_file_system().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7423 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-06 01:23:58 +00:00
Axel Dörfler
c947b674ee Renamed vfs_register_filesystem() to vfs_register_file_system().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7422 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-06 01:22:33 +00:00
Axel Dörfler
dc8585a402 Worked around a strange bug that happened without an additional printf in between...
Somehow that reminds of BASIC.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7420 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-06 00:39:01 +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
Axel Dörfler
91d62d9f6a Removed stuff that's no longer necessary due to the stdio.h switch.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7418 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-05 16:38:32 +00:00
Axel Dörfler
4ac038c1cc Fixed the build of the DoublyLinkedList test.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-05 16:23:08 +00:00
Axel Dörfler
dda55a58d7 Added two other unusual font sizes (11 & 13 pt). We may remove then again if
those doesn't look good with our font renderer :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7414 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-05 15:36:25 +00:00
shatty
8efe380a8a add more variants of MS MPEG4 vx
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-05 07:45:06 +00:00
shatty
094bec45ab add lowercase variants of MS MPEG4 vx, verified MS MPEG4 v2 seems to be working, for decoding anyway
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-05 07:32:39 +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
Rudolf Cornelissen
979945ae6b move_overlay() fix for dualhead stretch/switch modes added.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7408 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-04 10:27:41 +00:00
Axel Dörfler
69a19e8844 Now supports creation of the target path if necessary.
Now supports renaming while copying if another target name was given.
Forgot to add license (applies for previous versions as well).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-04 02:38:37 +00:00
Axel Dörfler
ab647990dc Now preserves the st_mod of the copied file.
Improved output.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7406 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-04 01:44:59 +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
Michael Phipps
6acaca4662 Should have never been there.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7400 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-03 23:38:22 +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
beveloper
6ba61f712f The device driver interface to the network stack, either BeOS R5, BONE, or OpenBeOS.
Initialized attaches and detaches the core driver, sends and receives packets


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7395 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-03 23:21:39 +00:00
beveloper
21482d71c1 a very simple debugging macro
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7394 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-03 23:17:40 +00:00
beveloper
46e6df0fc5 Reacting on a link change inside the interrupt handler is plain crazy,
as this involves some long delays like eeprom reading, etc.
Need to snooze() there, and this moved this into a separate thread.
Obviously, the FreeBSD driver isn't doing prober locking yet, so
it's not really save. But it's the correct way to do it, and it
doesn't crash. Inside the interrupt handler it did crash when reconnecting the cable...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-03 23:09:50 +00:00
beveloper
b8708997c5 the add_timer() function does panic, also it would call the hook in interrupt context, both it not acceptable. Commented it out
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7392 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-03 23:05:14 +00:00
beveloper
f8ce319207 removed some usec_delay() with spin(), since these functions are used inside the interrupt handler
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7391 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-03 22:55:46 +00:00
beveloper
2ec4faf00a Removed device probing, it's now in driver.c
PCI id table, em_probe() and em_shutdown() are now gone.
Changed interrupt handler to use the BeOS calling convention, this avoid putting a wrapper around it.
em_attach() and em_detach() no longer link the adapter struct into a list.
When PCI io port access is configured, make sure that io address decoding is enabled in the PCI configuration.
replaced some offsetof() macros with #defiens to avoid importing all these structs.
Moved sysctl stuff into a #if 0 #endif wrapper.
Removed #include of FreeBSD header files.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7390 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-03 22:48:04 +00:00