Commit Graph

5138 Commits

Author SHA1 Message Date
Philippe Houdoin
3312e2a1e0 Fix warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5208 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 22:20:46 +00:00
Axel Dörfler
5f1ee2313e vm_translation_map_quick_map() has been slightly changed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5207 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 22:01:18 +00:00
Axel Dörfler
c3efd542cd Now accepts only "block" devices as boot device (we do not support
network booting (for R1), and if we will, it will be done using another
mechanism anyway).
If it runs under Apple's OF implementation, it now adds ":0" as parameter
to the opened block device to bypass the disk-label package - that part
is obviously implementation specific (and took me some time to figure
out, even if it's just two characters ;-).
Added a commented block of code that could be used in combination with
MOL and it's (in the meantime fixed) broken device access via OF.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5206 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 21:29:59 +00:00
Axel Dörfler
d3b44eeac9 Added definition of a of_arguments structure which is used in all
OpenFirmware client service calls (and callbacks).
Has nice inline argument getter methods If compiled under C++.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5205 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 21:26:08 +00:00
Axel Dörfler
c9593d2253 Now uses the OF root node properties "model" and "device_type" to get
and idea about the underlying hardware (needed at other places).
Calls arch_set_callback() right after MMU takeover.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5204 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 21:24:28 +00:00
Axel Dörfler
6bf336d531 Implemented the OpenFirmware MMU callback hook mechanism.
Added empty callbacks for "alloc-real-mem" and "unmap".
Implemented "map" and "translate" - the latter is not yet tested, though.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5203 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 21:22:21 +00:00
Axel Dörfler
d70e4e5163 vm_translation_map_quick_map() was slightly changed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5202 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 21:17:19 +00:00
Axel Dörfler
9e54ef1458 system_time() is implemented in libroot/os/arch.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5201 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 21:16:36 +00:00
Axel Dörfler
cff2375bba Added a comment about where to find the implementation of the
arch_int_{enable|disable|restore}_interrupts() functions and
friends.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5200 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 21:15:27 +00:00
Axel Dörfler
9e617097ee arch_thread_switch_kstack_and_call() is already defined in arch_asm.S.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5199 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 21:13:53 +00:00
Axel Dörfler
d31fdd0e3c Added, fixed, cleaned and slightly optimized the assembly arch_int_*()
functions.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5198 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 21:12:19 +00:00
Axel Dörfler
e45975b879 Definitions were doubled in vm_translation_map.h and arch/vm_translation_map.h.
The former now only contains the structure definitions, while the other one
contains the arch-specific function prototypes (which do not have the arch_
prefix).
Added a ToDo comment to remember cleaning this up one day.
Made all headers C++ safe, simplified where possible.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5197 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 21:10:00 +00:00
Axel Dörfler
e5fabd56bf Added prototype for setting OpenFirmware's callback for MMU actions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5196 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 21:06:42 +00:00
Axel Dörfler
f39e6cd6ec Added a definition for the MSR[EE] bit (MSR_EXCEPTIONS_ENABLED).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5195 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 21:05:31 +00:00
Axel Dörfler
1dd920800b The console driver is now only compiled and linked into the kernel
on x86.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5194 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 21:02:27 +00:00
Axel Dörfler
9fd568e2e9 Rearranged the code a bit, made private functions static, removed wrong
comments.
Fixed warnings.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5193 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 18:23:31 +00:00
Axel Dörfler
69be5fbb93 Removed private functions, made C++ safe.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5192 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 18:22:37 +00:00
Axel Dörfler
4fb62d981c Fixed warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5191 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 18:05:07 +00:00
Axel Dörfler
229ad83bf8 Renamed arch_int_is_interrupts_enabled() to arch_int_are_interrupts_enabled().
Replaced definitions for enable_interrupts() and are_interrupts_enabled()
with static inlines.
Made int.h C++ safe.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5190 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 17:55:20 +00:00
Axel Dörfler
2e011afa86 Renamed arch_int_is_interrupts_enabled() to arch_int_are_interrupts_enabled().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5189 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 17:54:25 +00:00
Axel Dörfler
7530b569ec Finally fixed all warnings (we probably won't really need bootfs later anymore
for the standard boot process).
Removed the STREAM_TYPE_* definitions, it's now using the stat definitions
instead.
Cleaned the source a bit.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5188 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 13:46:48 +00:00
Axel Dörfler
9699c52992 Added the syscall for set_real_time_clock().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5187 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 13:30:10 +00:00
Axel Dörfler
939f7fbaca Implemented the set_real_time_clock() syscall.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5186 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 13:29:29 +00:00
Axel Dörfler
2011bdf831 Fixed the set_real_time_clock() stub to expect an uint32 parameter as well.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5185 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 13:13:35 +00:00
Axel Dörfler
cc9992caa1 Removed rtc_set_system_time() but forgot to change internal calls to
set_real_time_clock().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5184 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 13:12:13 +00:00
Axel Dörfler
41fc24055a Added more debug output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5183 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 02:23:30 +00:00
Axel Dörfler
553e5a0f6f BFS/AmigaFFS directory Open()/Close() methods now correctly call the
respective methods of their parent (one possible crash less, as the
nodes could get deleted accidently).
The AmigaFFS is now silent if it just don't know the signature.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5182 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 02:13:12 +00:00
Tyler Dauwalder
a03a04e027 - Added/moved ddm string-length and buffer-size constants to DiskDeviceDefs.h
- Converted all uses of B_{FILE,OS}_NAME_LENGTH in ddm_userland_interface.cpp
  to appropriate ddm constants.
- Made module names B_PATH_NAME_LENGTH long.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5181 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 00:13:11 +00:00
Tyler Dauwalder
15851e7a48 Added descriptive tag id names to tag dumps.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5180 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-27 23:41:36 +00:00
Tyler Dauwalder
937144690c Made disk device type strings B_FILE_NAME_LENGTH long, and fixed
a few partition name constants that hadn't been changed from B_OS_NAME_LENGTH.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5179 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-27 22:45:15 +00:00
Tyler Dauwalder
e176a055ac Added max parameter-string buffer-size limit of 32KB.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5178 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-27 08:10:52 +00:00
Tyler Dauwalder
de5a94dbc6 - Updated partition name and partition content name length limits
to B_FILE_NAME_LENGTH.
- Added partition [content] name copy-out code to
  _kern_validate_{set_partition_name,set_partition_content_name,
  intialize_partition}.
- Added parameter security to _kern_supports_moving_partition().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5177 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-27 07:28:55 +00:00
Phil Greenway
cc1c3ed6ec By Philipp John
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-27 04:03:05 +00:00
Phil Greenway
0edb7e893f By Philipp John - changed the application cal. It does not crash anymore, when the month and year parameter is invalid.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5175 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-27 03:56:12 +00:00
shadow303
922ec7f318 clean up some warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5174 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-27 00:47:01 +00:00
Nathan Whitehorn
8f1f3e5386 Fixed PowerPC compilation... though still doesn't work with the Jamfile, owing to the need for a different C++ library (mslcpp_4_0).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5173 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-26 21:36:36 +00:00
Ingo Weinhold
99892f1004 The userland add-on dir is now symlinked to the directory where the
tester lives.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-26 10:54:10 +00:00
Philippe Houdoin
b63115b602 Fix warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5171 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 23:50:03 +00:00
Philippe Houdoin
acb7e134d4 Fix warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5170 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 23:19:52 +00:00
Philippe Houdoin
68d8b27d8c Fix warnings. And a possible crashing (memory corruption) bug, too.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 22:48:15 +00:00
Philippe Houdoin
7dab5189a7 Fix warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 22:33:23 +00:00
Matthew Wilber
547692fa51 Fixed paths used by BTranslationUtils::GetBitmap[File] to work with the behavior of Be's and the fixed OBOS version of BTranslationUtils::GetBitmap[File]
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5167 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 22:10:01 +00:00
Matthew Wilber
b95d8a76bc Fixed bits->bits translation so that it no longer errors out due to reads at the end of the stream
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5166 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 22:05:23 +00:00
Matthew Wilber
9568e684a8 Fixed bits->bits translation so that it no longer errors out due to reading at the end of the stream
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5165 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 22:04:19 +00:00
Philippe Houdoin
b42a6ce4af Fix warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5164 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 21:55:55 +00:00
Philippe Houdoin
eb8b30128e Add new control_net_module_args to global stack_driver_args union.
Report this change in the stack driver code, to keep consistent
code.
TODO: Implement NET_STACK_CONTROL_NET_MODULE in net_server_driver.c too!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5163 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 21:24:03 +00:00
Matthew Wilber
73e65d4da8 Changed TranslationUtils' manor of handling relative paths to match how Be's TranslationUtils handles them. Before, relative paths had the current directory as the base, now, relative paths use the folder containing the running application as the base. This issue prevented programs like Eden from loading properly with the OpenBeOS Translation Kit.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 15:35:54 +00:00
Waldemar Kornewald
cdc2ad89b1 Changes for kernel land (added set_sem_owner and kernel_cpp.h/cpp).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5161 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 13:24:59 +00:00
Waldemar Kornewald
a10a3d49d6 Fixed BUG in FindUnit() and Register/UnregisterInterface().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5160 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 13:00:28 +00:00
Waldemar Kornewald
20826c8ed2 Fixed BUG in if_detach.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5159 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 12:58:49 +00:00