Axel Dörfler
786eefee41
Fixed warnings.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4911 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 03:31:14 +00:00
Axel Dörfler
526ba06270
Fixed all warnings.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4910 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 03:10:53 +00:00
Axel Dörfler
8c8573864d
I actually lied and forgot one: this one only showed up if DEBUG was defined.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4909 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 02:41:01 +00:00
Axel Dörfler
1e038a1ca5
Added a ToDo comment so that I won't forget to check if there is only one
...
bootable device if the platform didn't provide a boot device.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4908 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 02:29:34 +00:00
Axel Dörfler
6c1c51bf87
Fixed all warnings and one small bug in kernel.c::new_vnode() - it didn't
...
unlock the vnode if the same cookie already existed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4907 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 02:22:14 +00:00
Axel Dörfler
b50ffaa707
Added the new tracker.cpp file to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4906 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 02:07:22 +00:00
Axel Dörfler
df710eb34c
Now redefines the realloc() function as well (so that the correct one will be used).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4905 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 02:04:23 +00:00
Axel Dörfler
e2ab678b8f
It's tree.data, not test.data.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4904 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 02:01:07 +00:00
Axel Dörfler
61f733f0e0
Added a .cvsignore to ignore the tree.data file created when running the
...
test.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4903 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 02:00:11 +00:00
Axel Dörfler
75b0e6cd2d
Moved the "btree" test from befs/ to bfs/.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:57:34 +00:00
Axel Dörfler
394d5e16a8
Fixed warnings.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4901 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:55:49 +00:00
Axel Dörfler
3c0a986734
Fixed the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4900 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:52:03 +00:00
Axel Dörfler
8b40798fe4
Moved the "btree" test from befs/ to bfs/.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4899 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:51:01 +00:00
Axel Dörfler
b72c7a22b0
Added new tracker.cpp file to the build.
...
Added a hint to show how to build it as big-endian BFS shell.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:46:23 +00:00
Axel Dörfler
9f0c0b4210
Moved tracker mode from fsh.c to new tracker.cpp, made the tracker stuff
...
a bit more mature, but still needs much work.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4897 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:43:45 +00:00
Axel Dörfler
58020b9aa9
Added dummy for platform_user_menu_requested() (always returns "false" for now).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4896 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:42:31 +00:00
Axel Dörfler
fad54c1f85
Made the header C++ safe.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4895 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:41:34 +00:00
Axel Dörfler
db82ec452b
Corrected a comment to match the implementation.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4894 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:39:03 +00:00
Axel Dörfler
20b82fcf5b
Minor change: corrected the debug output in wait_for_thread().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4893 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:38:00 +00:00
Axel Dörfler
2f72291d1b
Updated to support the new platform API and bootloader features.
...
Note: it will try to load the "kernel_intel" file for now (it'll
be kernel_x86 or kernel_ppc in the real thing).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4892 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:32:51 +00:00
Axel Dörfler
85ee5b9e24
Added a hint on how to build bfs as big endian file system for testing purposes.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4891 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:30:58 +00:00
Axel Dörfler
44df371a46
Updated to match the new boot loader platform API (boot() was renamed to main()).
...
platform_user_menu_requested() always returns "false" for now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4890 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:29:42 +00:00
Axel Dörfler
d76300d0d8
Now has (initial) support to select a boot device if the OpenFirmware
...
provided one - will always select the first partition on that device,
though.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4889 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:28:34 +00:00
Axel Dörfler
621540d112
Updated the dummy implementation to match the changed platform API.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4888 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:26:54 +00:00
Axel Dörfler
d178a0d7e4
Implemented new Directory::IsEmpty() method.
...
Amiga-FFS Directory::Lookup() now only creates a HashIterator if needed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4887 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:25:06 +00:00
Axel Dörfler
3c3cc60956
Now has support to load the kernel from the boot device, and to open the
...
user menu if requested (even if there is none yet). It will also mount
all file systems before the user menu is shown in order to get the right
boot volume - it should probably only call user_menu() if there is more
than one possible boot device.
Removed unused parts that won't be needed anymore.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4886 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:23:25 +00:00
Axel Dörfler
6072286af6
Dunno why, but CVS didn't pick that up (see CVS comment in loader.h).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4885 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:20:21 +00:00
Axel Dörfler
c948f27797
New BOOT_ARCH definition - this is used to create the kernel name (for
...
looking it up on the disks); it's set to OBOS_ARCH.
Added the new files menu.cpp and loader.cpp to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4884 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:19:16 +00:00
Axel Dörfler
7c198b5d2b
Made gDescriptors static, and renamed it to sDescriptors (it's private).
...
vfs_init() now correctly initializes the gPartitions list, and also creates
the root file system (mount_boot_file_systems() did this before). It now
no longer scans the platform for boot devices.
New function get_boot_file_system() which returns the boot file system as
chosen by the platform code.
mount_file_systems() (former mount_boot_file_systems()) now supports the
boot device; it will not scan all partitions again, but only those different
from the boot file system (if any).
get_node_for_path() did not Acquire() the start directory, but released it
(and its callers didn't acquire it, too).
Removed the commented mount() function, since it won't be needed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4883 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:17:15 +00:00
Axel Dörfler
221807be72
Added a new variant of add_partitions_for() which takes a device instead
...
of a file descriptor as first argument.
add_partitions_for() is now able to only mount file systems if requested;
partitions with unknown contents will not be removed from the list if it
doesn't try to mount them.
Moved the file system mounting code to the new Partition::Mount() method.
Partition::Scan() now only mounts file systems if requested.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4882 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:10:56 +00:00
Axel Dörfler
8df661e6f8
Some new "barebones" for enhanced boot loader functions for the user menu
...
and the kernel/module loading.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4881 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:06:52 +00:00
Axel Dörfler
1f0aeec0f0
Implemented the new IsEmpty() method.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4880 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:05:27 +00:00
Axel Dörfler
774d1ff304
The Directory abstract base class has a new method IsEmpty().
...
New/changed function prototypes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4879 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:04:08 +00:00
Axel Dörfler
6e5bc20607
Added some more functions to the platform abstraction API - it's now
...
possible to select a boot device which is used directly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:02:36 +00:00
Axel Dörfler
b337ddf60a
Added a new method Mount() to Partition, Scan() now takes a parameter to
...
decide if it should mount file systems on the partition or not.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4877 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:00:53 +00:00
beveloper
209d967508
added decoding of PCI class
...
included use of PCI Header file with vendor/device information
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4876 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-30 19:34:50 +00:00
beveloper
2ec8c35cc5
removed invalid entries, excluded unused tables
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4875 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-30 19:33:31 +00:00
beveloper
1989667e2e
added output of pci device info
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4874 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-30 00:43:36 +00:00
beveloper
3d262ee9fb
added reading of configuration
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4873 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-29 23:28:02 +00:00
beveloper
7e277be485
improved implementation of pci_ram_address()
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4872 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-29 23:27:31 +00:00
Ingo Weinhold
283e146548
Aesthetical change.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4871 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-29 21:45:22 +00:00
Ingo Weinhold
58b7de1cda
Implemented the resize job.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4870 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-29 21:44:47 +00:00
Ingo Weinhold
b0814f61c3
Implemented Resize() and ResizeChild().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4869 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-29 21:44:21 +00:00
Ingo Weinhold
77fe5e61a5
Another fix of the code that updates which partitions are still busy. Hopefully the last one.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4868 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-29 21:43:59 +00:00
Ingo Weinhold
541c05cc85
We always resize the partition contents.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4867 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-29 21:43:11 +00:00
Ingo Weinhold
63c99af405
Added Unset(). Also added some new classes that don't work yet and are uncommented for that reason.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4866 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-29 21:42:33 +00:00
Ingo Weinhold
3acc9a051b
Moved the validation functions out of ddm_userland_interface.cpp into ddm_operation_validation.{cpp,h} for re-use.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4865 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-29 21:40:36 +00:00
beveloper
51e44e6ee4
added missing include file
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4864 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-29 20:15:00 +00:00
beveloper
90157e6a02
Removed bus_man.c from build since it no longer compiled after removing pci_bus.h :)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4863 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-29 19:57:14 +00:00
beveloper
79f40e4322
renamed line into pin, since in PCI terminology, IRQ interrupt number == line, and the physical interrupt wire == pin
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4862 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-29 19:09:32 +00:00