Commit Graph

5328 Commits

Author SHA1 Message Date
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
Waldemar Kornewald
0868fe5619 Added an error report.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5158 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 10:14:51 +00:00
Waldemar Kornewald
52fad5f56b Use the NET_STACK_DRIVER_PATH environment variable if available.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 10:13:51 +00:00
Tyler Dauwalder
2094b5ffbb Updated to use new parametersSize params where applicable.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5156 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 08:36:17 +00:00
Tyler Dauwalder
229c00c5a7 - Added parametersSize param to all functions taking a parameter string.
- For functions where name strings are both input and output parameters that
  may be truncated if too long, updated copy-in procedure to allow truncation
  without returning an error.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 08:35:27 +00:00
Waldemar Kornewald
95cb1c609a PPPoE should not go into ppp/shared, but ppp.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5154 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 08:30:43 +00:00
Waldemar Kornewald
5c9e6a3953 Added libkernelppp.a (currently named libuserlandppp.a), PPP, and PPPoE to userland test build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5153 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 08:26:19 +00:00
Tyler Dauwalder
8768d15c6e - Fixed lack of proper error code checking on calls
to user_strlcpy()
- Changed all remaining instances of SYS_MAX_PATH_LEN
  to B_PATH_NAME_LENGTH.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-24 23:09:43 +00:00
Waldemar Kornewald
8f79376c49 Allow to build as userland add-on.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5151 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-24 21:28:10 +00:00
Waldemar Kornewald
ad0928ebe3 Allow to build as userland modules.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5150 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-24 21:18:53 +00:00
Waldemar Kornewald
cf3ba6b414 Bug fixes and some small changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5149 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-24 20:10:02 +00:00