Axel Dörfler
da69f27233
The iterator was broken.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-13 03:19:21 +00:00
Axel Dörfler
8174112d40
Almost straight copy of the list.h doubly linked list implementation to
...
a C++ one ready for kernel use, but very basic, too.
Has not been tested yet, expect some bug fixes soon.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5001 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-13 01:57:05 +00:00
Axel Dörfler
d172714dbd
Lazy man's GCC 3 adaption.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4996 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-12 00:48:49 +00:00
Axel Dörfler
1d8adcd3f6
Added two more arch related calls for the OpenFirmware platform.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4989 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-11 18:59:08 +00:00
Axel Dörfler
ecc5968ab8
Added some more CPU functions.
...
Added an alternative page_table_entry::SecondaryHash() signature.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4988 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-11 18:57:35 +00:00
Axel Dörfler
d3c6ba4606
Added some CPU specific functions ({get|set}_sdr1()).
...
Added MMU definitions for the PowerPC.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4979 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-08 00:28:07 +00:00
Axel Dörfler
5028c44913
Now includes <platform_kernel_args.h> as well as <arch_kernel_args.h>
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4976 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-08 00:17:24 +00:00
Axel Dörfler
64881aa93e
Added platform_kernel_args.h for the BIOS IA32 platform.
...
platform_stage2_args.h can now only be included from stage2_args.h.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4973 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-07 23:39:45 +00:00
Axel Dörfler
b4d2f3a8e7
Renamed arch_stage2.h to arch_kernel_args.h.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4972 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-07 23:34:59 +00:00
Axel Dörfler
56ce04ab02
Contents moved to kernel_args.h and platform_kernel_args.h
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4970 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-07 23:15:16 +00:00
Axel Dörfler
662cc71f2c
heap size is now part of stage2_args.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4961 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-07 22:10:55 +00:00
Axel Dörfler
bf25fe99f6
Added new platform_kernel_args - might need an arch dependent part as well, though.
...
Only stage2_args.h can now include platform_stage2_args.h.
Only kernel_args.h can now include platform_kernel_args.h.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4960 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-07 22:02:43 +00:00
Axel Dörfler
79dd9caf61
Moved the kernel_args structure to the new kernel_args.h header file.
...
stage2.h is now of interest for the stage2 boot loader only.
stage2_struct.h is no longer needed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-07 21:58:48 +00:00
Axel Dörfler
f432eca440
Now use the new kernel_args.h header file.
...
Added C++ guards.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-07 21:56:32 +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
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
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
beveloper
fb5398b8f7
removed
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4861 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-29 19:09:12 +00:00
Ingo Weinhold
eae4df8320
Fixed the usage of CHECK_USER_ADDRESS(). R5 has the inverse memory layout, so we need to adjust the KERNEL_BASE macro when compiling for it.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4853 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-29 18:50:02 +00:00
Ingo Weinhold
58bdbab626
Added a KPartition listener mechanism and made use of it to keep shadow partitions with the corresponding physical ones in sync.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4848 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-28 22:04:13 +00:00
Ingo Weinhold
583f8c1d02
Added set_disk_device_job_error_message() for setting an error message, when an error occurs while executing a job.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4843 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-28 19:29:36 +00:00
Ingo Weinhold
ac8b60ce67
Added setter/getter for an error message. Should be set to something informative when while executing a job an error occurs.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4842 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-28 19:28:27 +00:00
Ingo Weinhold
69cb08c01c
UninitializeContents() returns an error code now.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4841 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-28 19:26:18 +00:00
Ingo Weinhold
e0e5d17627
Handy functions to copy from and to userland reference parameters.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4837 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-28 15:12:27 +00:00
Ingo Weinhold
6e855f0317
Removed the resizeContents/force from the resize/move syscalls. Fixed resize/move related bugs (partition was not check for status uninitialized).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4783 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-21 21:26:12 +00:00
Ingo Weinhold
dafaf4c360
Added IsUninitialized() convenience method.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4781 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-21 21:21:10 +00:00
Ingo Weinhold
20c33ce79b
Added syscall for uninitialization.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4778 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-21 19:13:54 +00:00
Ingo Weinhold
5c699c6735
Add a field mount_cookie to the partition_data structure and
...
respective setter/getter methods to the KPartition class.
If a partition is mounted, the field will contain the cookie the
FS's mount() hook passed back to the VFS. This way the FS has
access to its internal data structures. We need the cooperation
of the VFS to get the cookie.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-21 18:25:42 +00:00
shatty
853d2f32a6
moved to public header
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4773 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-20 20:50:46 +00:00
shatty
b89786b69e
change to public resource.h
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-20 20:47:27 +00:00
beveloper
f120b01748
added locking
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4743 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-17 20:44:10 +00:00
beveloper
4cc6d1c38b
renamed functions,
...
added irq setup
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4726 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-17 15:54:35 +00:00
beveloper
14b537e142
added new private header file for new pci module.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-17 01:00:14 +00:00
Axel Dörfler
ad1b3319c5
Added a new open_from() call.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 02:28:50 +00:00
Axel Dörfler
69a8a40770
Forgot to commit this: defines the AmigaFFS module info structure.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 02:28:21 +00:00
Axel Dörfler
da42afdf62
Made the Partition class public again - it's handy to use for some file
...
systems in order to retrieve some parameters.
Changed the get_file_system() call to accept a Partition instead of just
a node.
Introduced the namespace boot to the public headers; I guess I should
put all classes in there (compilation of the intel partitioning system
fails without the namespace, because it defines a class Partition itself).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4674 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-14 16:38:10 +00:00
Axel Dörfler
0d48a66bf1
Removed the port_test_thread_func() prototype from the header - that's a
...
private method which is only defined when DEBUG is turned on.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4663 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-12 20:48:07 +00:00
Axel Dörfler
1fdfe0c39a
Added a new directory traversing method GetNextEntry() that's based on the
...
entry's name.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4646 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-12 07:15:32 +00:00
Axel Dörfler
ebe8f6bba7
Accidently exported a C++ function in a plain C accessible part.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4613 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-11 00:27:11 +00:00
Tyler Dauwalder
c72c47f361
Switched from <Strategy> to <Value, Strategy = Auto> template paramter format.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4603 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-09 06:25:31 +00:00
Axel Dörfler
28ab9bb7be
list.h is now in util/.
...
All files updated, so this can be removed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-09 02:37:49 +00:00
Axel Dörfler
c7a03dadea
list.h is now in util/.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4594 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-09 02:31:25 +00:00
Axel Dörfler
fd5b59d227
Added initial support for file systems. Not tested yet, but compiles.
...
New Directory class for use in file systems; file systems need to publish
their root directory as a subclass of this class.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4587 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-09 02:12:06 +00:00
Axel Dörfler
275186b598
list.h location has moved.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4586 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-09 02:10:15 +00:00
Axel Dörfler
405a3fb126
Moved list.h to the util/ subfolder. (It currently still is in the kernel
...
private headers directory to not break the build.)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4585 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-09 02:09:33 +00:00
Axel Dörfler
eced90ea7a
Moved the definition of the Descriptor class to vfs.cpp.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-08 12:32:33 +00:00
Axel Dörfler
5306fba3a1
Added the new vfs_get_module_path() call.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4558 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-08 04:01:07 +00:00