Axel Dörfler
e2df52b7da
The symlink traversion didn't balance the ref_count of the starting vnode
...
correctly when it entered the next recursion of vnode_path_to_vnode().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7854 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 11:34:49 +00:00
Axel Dörfler
c26e46469e
Fixed warning I just introduced.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7853 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 10:17:32 +00:00
Axel Dörfler
618253640c
Userland segments are now called _seg0rw/_seg0ro.
...
Replaced "addr" with "addr_t".
Made segment naming safe (could the buffer could overflow).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7852 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 10:01:24 +00:00
Axel Dörfler
3c20ebe8d7
Unified kernel loader area names (they now use "_text", and "_data" suffixes
...
only).
Userland segments are now called _seg0rw/_seg0ro.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7851 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 09:56:51 +00:00
Axel Dörfler
dc991aec9e
Removed REGION_WIRING_* and REGION_ADDR_* and replaced them by their
...
BeOS counterparts.
Improved output of dump_region_list().
Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7850 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 09:45:50 +00:00
Axel Dörfler
ee7e4109ad
Removed REGION_WIRING_* and REGION_ADDR_* and replaced them by their
...
BeOS counterparts.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7849 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 09:33:51 +00:00
Axel Dörfler
3b183ea392
It now has to use kernel_interface_r5.cpp instead of kernel_interface.cpp.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7848 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 08:37:14 +00:00
Axel Dörfler
dab1088ba3
"addr" to "addr_t", cleanup.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7847 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 08:35:39 +00:00
Axel Dörfler
3c9e531071
Removed NewOS LOCK_KERNEL and LOCK_RW - replaced by B_READ_AREA, and friends.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7846 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 08:24:53 +00:00
Axel Dörfler
1adfa388af
Hardcoded vfs_mount_boot_file_system() to try to mount the first raw SCSI
...
device with BFS - if it succeeds, it will print out the contents of the
volume's root directory.
fs_mount() now makes the mount structure available when mount() from the
FS is called - so that new_vnode() and get_vnode() can work.
fs_mount() did not correctly clean up when something went wrong; it also
didn't notice if the mount's recursive lock couldn't be created.
Some minor debug output improvements.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7845 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 06:43:46 +00:00
Axel Dörfler
bdd600c6eb
Fixed two typos.
...
Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7844 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 06:37:40 +00:00
Axel Dörfler
c8409817d4
Now also exports the old ISA bus manager module.
...
(DMA is still not implemented)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7843 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 06:34:18 +00:00
Axel Dörfler
4f91f11509
Now includes the old ISA.h header as well; removed doubled definitions.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7842 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 06:32:02 +00:00
Axel Dörfler
972f12eeb4
Fixed several bugs during the mount process:
...
- DeviceOpener::GetSize() didn't work correctly for devices - the size returned
was the block count. Also, it didn't expand the computation to 64 bits
- the check if the disk size was large enough make use of BlockShift() which
access the fBlockShift variable which wasn't initialized at that point
- if new_vnode() failed, a wrong error code was returned
- it will now write a different error message if the root node creation
failed before new_vnode() was called.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7841 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 06:30:37 +00:00
Axel Dörfler
ebb6a50a53
Fixed the prototype of parse_expression() - it's parameter should be const.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7840 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 06:25:18 +00:00
Axel Dörfler
e08f7c4e6f
Added stupid version of parse_expression() for the kernel debugger.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7839 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 06:24:35 +00:00
Axel Dörfler
1c1b60af69
lock.h and cache.h are C++ safe now.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7838 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 06:16:35 +00:00
Axel Dörfler
c64f45a195
Made it C++ safe.
...
Removed private and implementation specific stuff.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7837 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 06:15:34 +00:00
Axel Dörfler
83d9569570
Missing name index update with a late failed rename operation fixed (the
...
same as in kernel_interface_r5.cpp).
{add|remove}_debugger_commands() are now called in B_MODULE_[UN]INIT, no
longer in bfs_[un]mount().
Removed empty cache implementation as it's in the kernel itself for now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7836 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 06:13:38 +00:00
Axel Dörfler
fcf3d20e94
lock.h and cache.h are now C++ friendly.
...
If renaming failed late, the old name of the inode was restored, but the
name index was not.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7835 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 06:09:27 +00:00
Axel Dörfler
5b168fe639
Style cleanup.
...
Removed some temporary debug output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7834 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 06:06:55 +00:00
Axel Dörfler
f1613a0b1f
Replaced libvm.a with kernel_vm.o.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7833 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 06:05:46 +00:00
Axel Dörfler
94c145777c
Removed circular dependency - the module is now opened in B_MODULE_INIT.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7832 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 06:05:05 +00:00
Axel Dörfler
bd383ca361
Added simple and dumb BeOS compatible cache implementation - at this point
...
it's (almost) read only.
Added it to the build - libvm.a is now build as merged object file, since
the cache functions didn't get exported else.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7831 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 06:02:43 +00:00
Axel Dörfler
56b4e8289c
We temporarily need a BeOS compatible cache implementation.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7830 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 05:59:53 +00:00
Axel Dörfler
69debf9e84
get_module() didn't correctly maintain the module ref_count (in case
...
something went wrong) - this would have hidden circular dependencies
as well.
Recursive directory scan was broken, it didn't filter "." and ".." out.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7829 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 05:58:23 +00:00
Axel Dörfler
39f34cf425
Fixed the broken ioctl() function. Unlike BeOS, it also passes the
...
eventually specified length parameter.
The IOCPARM_LEN() macro should be used by the device/file system
implementation only if applicable.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7828 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 05:53:35 +00:00
Axel Dörfler
1bfc2c6901
First try at a working BFS for the new kernel - does compile but not much more.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7827 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 23:13:15 +00:00
Axel Dörfler
2b89e0b32f
Now builds two file systems: "bfs" is now the file system for the new kernel,
...
while "bfs_r5" or "obfs_r5" is the one for the R5/Zeta kernel.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7826 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 23:11:17 +00:00
Axel Dörfler
4f456fc26a
It's now safe to include fsproto.h from C++.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7825 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 23:09:11 +00:00
Axel Dörfler
2855cf2fd4
Made the fsproto.h header a bit nicer to C++.
...
Also removed prototypes that are already found in fs_interface.h.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7824 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 23:07:32 +00:00
Axel Dörfler
41c5f712ce
We're now using fs_interface.h instead of fsproto.h - doesn't change much here :)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7823 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 22:57:31 +00:00
Axel Dörfler
dcceaee3bc
Some changes due to the fsproto.h/fs_interface.h tandem.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7822 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 22:55:00 +00:00
Axel Dörfler
bb0a78b4d8
Now include fs_interface.h instead of fsproto.h.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7821 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 22:53:53 +00:00
Axel Dörfler
dca5d901c7
Added missing include.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7820 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 22:50:31 +00:00
Axel Dörfler
7335776148
Changes to keep it building with the move to kernel_interface_r5.cpp.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 22:42:55 +00:00
Axel Dörfler
371536a11d
Cleaned up C++/C separation.
...
Changed some return types from "int" to "status_t" to make it compatible
with the new VFS interface (should not cause any trouble).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7818 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 22:41:37 +00:00
Axel Dörfler
2defe47a24
Removed no longer used system call.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7814 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 21:12:30 +00:00
Axel Dörfler
baae156b90
Added built-in file system modules.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7812 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 17:33:18 +00:00
Axel Dörfler
6fdd106e9a
File systems are modules now, so the module initialization must come before
...
bootstrapping the initial file systems.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7811 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 17:32:16 +00:00
Axel Dörfler
730f5a50cc
No longer needed.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7810 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 17:29:43 +00:00
Axel Dörfler
d567161cad
Copy of the kernel_interface.cpp file - this file will stay to be able
...
to compile BFS for R5.
The old kernel_interface.cpp will be moved to the new OpenBeOS FS API.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7809 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 17:28:52 +00:00
Axel Dörfler
f8edd5ecee
File systems are modules now; removed all those no longer file system add-on
...
things.
Added unremove_vnode().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7808 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 17:25:55 +00:00
Axel Dörfler
bc1f913e8b
File systems are modules now.
...
Renamed gDeviceFileSystem to sDeviceFileSystem.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7807 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 17:22:32 +00:00
Axel Dörfler
093015033f
File systems are modules now.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 17:20:59 +00:00
Axel Dörfler
34c763c98f
File systems are modules now.
...
Added prototype for unremove_vnode(), some other minor changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 17:14:17 +00:00
Axel Dörfler
287704526b
Don't panic for now if the PnP-root node cannot be registered; it doesn't
...
harm in case bootfs is used for now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 15:17:02 +00:00
Axel Dörfler
a0c7420724
Changes due to renaming the public fs functions.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 14:30:56 +00:00
Axel Dörfler
a540a3f904
Renamed the public fs functions (removed the vfs_ prefix), and separated
...
them from other functions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7802 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 14:25:22 +00:00
Axel Dörfler
d0da374bc3
Moved the public fs functions from vfs.h to this file.
...
Renamed them to match other exported BeOS functions as well (removed the vfs_ prefix).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7801 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 14:23:48 +00:00
Axel Dörfler
aad3f70c86
Moved the public fs functions to fs_interface.h.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7800 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 14:21:51 +00:00
Axel Dörfler
600203b105
Added the ability to link against static libraries for both, the R5KernelAddon
...
and the KernelAddon rule.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7798 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 13:55:34 +00:00
Axel Dörfler
99b8dab3b9
Added the "app" directory to the kernel includes to be able to access
...
AppDefs.h (for B_QUERY_UPDATE, etc.).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7796 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 13:35:31 +00:00
Axel Dörfler
35c681e031
Ah, that looks better (and actually works...).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7791 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 02:06:04 +00:00
Axel Dörfler
67efc07974
MAX_BOOT_CPUS is defined in kernel_args.h so we better include it.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7790 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 02:03:29 +00:00
Axel Dörfler
f475c9696b
Fixes the build under R5.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7789 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 01:50:46 +00:00
Axel Dörfler
47197929ca
Temporarily disabled bus manager iteration - this might be done differently
...
anyway when it's all done.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7788 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 01:45:16 +00:00
Axel Dörfler
12373950ab
Added header guards, cleanup.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7787 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 01:40:08 +00:00
Axel Dörfler
a6426a42d7
Better debug output.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7786 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 01:35:53 +00:00
Axel Dörfler
8a0d571192
That word might even exist, who knows?
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7785 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 01:33:39 +00:00
Axel Dörfler
c8d5cf78c9
Improved debug output.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7784 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 01:28:51 +00:00
Axel Dörfler
d9918aa7e8
Added temporary hack to load the ISA bus manager.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7783 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 01:25:45 +00:00
Axel Dörfler
97dfc072d7
Added devfs module to the built-in modules.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7782 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 01:21:08 +00:00
Axel Dörfler
c920230fed
Added device manager support - work in progress.
...
Updated debugging macros.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7781 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 01:18:56 +00:00
Axel Dörfler
2fa2a91f08
Fixed build conflict with new ISA bus manager.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7780 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 01:13:49 +00:00
Axel Dörfler
d1a9037152
Added missing newline to the end of the files.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7779 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 01:09:56 +00:00
Axel Dörfler
029990185b
Added SCSI, IDE, and ISA bus managers to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7778 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 01:07:51 +00:00
Axel Dörfler
de021f71fb
Added ISA bus manager written by Thomas Kurschel. This is currently
...
hard coded to use the ISA IDE driver only.
This bus manager is architecture dependent; maybe there is a better
place to live for it than here. x86 and PPC/Pegasos will have an
ISA bus later - this module only supports x86 for now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7777 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 01:05:26 +00:00
Axel Dörfler
1450572a5d
Added SCSI bus manager written by Thomas Kurschel.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 00:55:49 +00:00
Axel Dörfler
debb0e18cc
Added IDE bus manager written by Thomas Kurschel.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7775 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 00:46:42 +00:00
Axel Dörfler
b7c4739649
Added a generic PCI IDE driver, a specialised one for the Promise TX chips,
...
and an ISA IDE driver.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 00:37:08 +00:00
Axel Dörfler
386c5ff7f6
Added new generic kernel modules to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7773 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 00:23:21 +00:00
Axel Dörfler
64a23904af
Added new bus/disk drivers to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 00:18:06 +00:00
Axel Dörfler
e23fab9bef
Added scsi CD and disk drivers, written by Thomas Kurschel.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7771 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 00:08:20 +00:00
Axel Dörfler
c8bbe37502
Added raw SCSI bus driver (from Thomas Kurschel).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7770 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 00:00:30 +00:00
Axel Dörfler
0d59a3d2a9
More headers for the new modules and PnP/device system - note, this
...
is a work in progress; the name as well as the contents will change :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7769 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-06 23:52:08 +00:00
Axel Dörfler
cc5bfcb2e9
Added Thomas Kurschel's ide_adapter module. This module helps you writing
...
your specialized IDE driver.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7768 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-06 23:33:54 +00:00
Axel Dörfler
f66f07a616
Added Thomas Kurschel's blkman module.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7767 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-06 23:25:59 +00:00
Axel Dörfler
b59852c818
Added Thomas Kurschel's scsi_periph module.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7766 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-06 23:14:52 +00:00
Axel Dörfler
9d506c43b8
Added Thomas Kurschel's locked_pool module.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7765 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-06 23:08:56 +00:00
Axel Dörfler
5e3662534f
Added Thomas Kurschel's fast_log module.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7764 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-06 23:06:25 +00:00
Axel Dörfler
7c3d0ba1f5
get_memory_map() didn't take page offsets into account (i.e. didn't work correctly).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7762 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-06 16:39:03 +00:00
Axel Dörfler
2195a2522a
Implemented get_memory_map().
...
lock_memory() and unlock_memory() will now silently fail and return success -
that's only to get things working.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7754 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-06 01:14:18 +00:00
Axel Dörfler
54d94d3929
Replaced double equal symbols with single ones - seems to be more compatible.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7753 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-05 12:31:01 +00:00
Axel Dörfler
755b059fc1
Doh, Elf32_Word is unsigned, so st_size cannot go below zero.
...
Also made elf_lookup_symbol_address() less restrictive with respect to the
ELF symbol found (it now accepts all types, not only functions).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7714 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-01 00:35:55 +00:00
Axel Dörfler
6444e8f7bf
Copied boot loader code to load symbol table into kernel as well - not yet
...
tested, though.
No longer copies the elf_header in insert_preloaded_image(); it's not used
at runtime (should be superfluous to keep in other kernel images, too).
dump_symbols() now ignores entries with invalid values - don't know exactly
what makes a good entry, but that should look okay.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7713 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-01 00:27:15 +00:00
Axel Dörfler
8b33111039
Updated ELF loader to use preloaded_image struct for the kernel.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7712 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-31 23:52:01 +00:00
Axel Dörfler
a8061da698
Removed system_time() prototype; it's already defined in OS.h.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7711 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-31 23:31:15 +00:00
Axel Dörfler
b1b1136ca3
No longer uses gKernelEntry.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7710 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-31 23:15:37 +00:00
Axel Dörfler
2f42f1cf3a
gKernelEntry is no longer needed.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7709 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-31 23:12:15 +00:00
Axel Dörfler
2c628d4aef
gKernelEntry is no longer necessary.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7708 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-31 23:11:47 +00:00
Axel Dörfler
cbb2b6c19f
The kernel image data is now maintained in a preloaded_image as well.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-31 22:54:43 +00:00
Axel Dörfler
bc6ab31951
(Almost) removed special handling of the kernel image, as it's now
...
maintained in a preloaded_image as well.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7706 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-31 22:51:01 +00:00
Axel Dörfler
38e937ca8e
Removed superfluous htons()/htonl() functions (we already have the
...
standard byte order functions in the kernel).
Small cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7705 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-31 22:49:06 +00:00
Axel Dörfler
78f42e3f33
Moved the addr_range struct to a separate header.
...
Changed the kernel image data to a preloaded image as well, to simplify
handling in the kernel.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-31 22:44:24 +00:00
Axel Dörfler
ca109e727d
Moved the addr_range struct out of kernel_args.h to a separate file.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-31 22:41:25 +00:00
Axel Dörfler
5cc177f4d6
Replaced all "addr" with "addr_t".
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7702 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-31 21:58:18 +00:00
Axel Dörfler
52823d0c3d
Added debugger command for dumping all symbols of the specified kernel image.
...
Fixed warnings when compiled with TRACE_ELF.
Changed elf_lookup_symbol_address() to returning more useful information.
It now also scans the extended debug symbol table if present - for now, this
only works with preloaded images except the kernel.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7701 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-31 21:47:34 +00:00
Axel Dörfler
73e40f2d6e
Small hack to get create_area() to create valid r/w areas in the kernel
...
(in BeOS, all kernel areas are r/w).
If you use B_READ_AREA/B_WRITE_AREA flags, you make the area readable
or even writeable from userland!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7700 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-31 21:43:57 +00:00
Axel Dörfler
9d9a07acd8
Minor cleanup.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7699 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-31 21:41:39 +00:00