Commit Graph

94 Commits

Author SHA1 Message Date
Jérôme Duval
f9b87f230b Patch from Olivier Coursiere, adds Athlon 64 and Opteron values. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-19 21:48:53 +00:00
Axel Dörfler
9de969006b Added two experimental release_sem_etc() flags (both should stay, but they
may be renamed):
- B_RELEASE_ALL: the semaphore count is set to 0, all waiting threads are released
  (the "count" argument of release_etc_sem() is ignored then)
- B_RELEASE_IF_WAITING_ONLY: the semaphore count is only decreased if there
  are any waiting threads; ie. the semaphore is signaled
Together, they will make the pthread_cond_*() functions easy to implement, and
they come in handy at other places, too.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 15:54:47 +00:00
Axel Dörfler
76b72b95e1 Removed delete_sem_etc() prototypes as that function is no longer available
(and never was in userspace, anyway).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 14:58:14 +00:00
Axel Dörfler
9fdf5bbb13 Resolved an old ToDo item; thanks to Rogier van der Hee for pointing this out.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-05 00:30:46 +00:00
Axel Dörfler
3f403c721c Since our libroot/os/thread.c already exports this, we can as well just add
it to the header, too :)
(it's a new function in Dano/Zeta)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8234 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-29 20:04:07 +00:00
Axel Dörfler
06e37d1ea5 Fix missing identation.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7488 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 13:24:14 +00:00
Axel Dörfler
6f3a136e47 Added the inline x86 asm version of find_thread() as it is found on BeOS.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6865 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 00:44:18 +00:00
Axel Dörfler
7ba272b8b3 Added a B_CURRENT_TEAM constant - it's not available in BeOS, but it's
actually used at several places (like get_next_thread_info(), ...).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6682 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-23 03:32:44 +00:00
Axel Dörfler
afa70266a3 Fixed set_real_time_clock() - its time parameter is now uint32 not int32,
that's what real_time_clock() returns as well. I don't know why Be made
it int32, but I don't care too much either.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5144 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-24 14:50:15 +00:00
Philippe Houdoin
c6f77f6c2c Trying to be quicker than shatty to add more ids, courtesy of pulse 1.07 on bebits.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-18 21:38:16 +00:00
shatty
3c90558523 okay, last commit for today :-P ... protected non-R5 cpu types with #define OBOS_CPU_TYPES and #ifdef OBOS_CPU_TYPES
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3502 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 19:33:22 +00:00
shatty
7aae8aac0e not all iv_model2 are xeon so I am taking it back out...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3500 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 18:22:17 +00:00
shatty
9a7fc04885 used xeon name directly, left IV_MODEL2 as another alias
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3499 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 18:12:26 +00:00
shatty
09b1f9ddba added some more ids, courtesy of pulse 1.06 on bebits
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3497 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 17:56:05 +00:00
Philippe Houdoin
9360e22d50 Add missing cpu_type values for AMD Athlon and Duron processor.
Next step: add B_CPU_INTEL_PENTIUM_IV, when we could boot successfully on such beast ;-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3104 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-25 21:31:45 +00:00
Axel Dörfler
ee478c021b Renamed fs_device.h to fs_volume.h, renamed functions from *_device() to
*_volume().
Added a "volumeName" parameter to the fs_initialize_volume() call.
Introduced a "flags" field to the fs_unmount_volume() call - I have only
defined one flag, B_FORCE_UNMOUNT, right now.
But the unmount behaviour should be discussed anyway first (always force
unmount?).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2828 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-24 13:14:54 +00:00
Ingo Weinhold
75d0aed7ec Removed extended_partition_info::partition_code field.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2747 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-18 21:28:30 +00:00
Axel Dörfler
39831bc66e Proposal for mount/unmount/initialize function prototypes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-14 17:10:49 +00:00
Ingo Weinhold
456d74c6d2 Uncommented extended_partition_info::mounted_at. It looks like we can't get hold of this data, so the field will probably disappear.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2655 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-08 00:37:30 +00:00
Ingo Weinhold
e3b2e49b00 Renamed fs_device.h to disk_scanner.h.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2621 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-02 22:44:44 +00:00
Axel Dörfler
f60043082d Unified the look of the different files a bit (their headers in particular).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2596 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-29 14:45:15 +00:00
Axel Dörfler
8b9ceff84b New fs_query.h header.
Now defines a new flag B_QUERY_NON_INDEXED - because querying non-indexed
attributes is a slow operation, it now has to be enabled on demand only.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2595 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-29 14:43:38 +00:00
Axel Dörfler
c69aed7afc Removed some garbage.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2585 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-27 13:58:12 +00:00
Ingo Weinhold
1f293937f5 extended_partition_info: changed partition_code to uint32 and added a field file_system_flags. Added a parameter partitionMapName to get_nth_partition_info() for getting the identifier of the used partition module.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-26 15:01:55 +00:00
Ingo Weinhold
39e8f48cde Er, forgot the prototypes for parameter retrieving for partitioning and volume initialization.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2508 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-19 22:58:12 +00:00
Ingo Weinhold
3a69ab6517 Added prototypes for partitioning and volume initialization.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2507 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-19 22:54:28 +00:00
Axel Dörfler
b6a77342a5 Moved to os/drivers because it's not a userland header.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2473 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-17 17:53:28 +00:00
Tyler Dauwalder
f9c2a2a243 + Shrank license
+ Changed "#define TRACE(x)" to "#define TRACE(x) ;"


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2467 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-17 08:22:35 +00:00
Axel Dörfler
25f83d0202 Added the debugger.h header file (for being able to link it from the web).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2453 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-14 13:41:16 +00:00
Axel Dörfler
6cdae891c3 minor changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-12 16:10:28 +00:00
Axel Dörfler
346646a2c7 Moved the files vm_types.h, syscalls.h, and vfs_types.h to the private
kernel header directory - they are by no means public includes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-02 13:16:35 +00:00
Ingo Weinhold
45b15a27e1 C level device API (disk_scanner).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2272 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-21 19:06:18 +00:00
François Revol
2a03a60a17 Added some B_CPU_ defines, compatible against R5.1.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2184 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-08 16:50:28 +00:00
Axel Dörfler
6ba1dc2341 Moved it to private/kernel/, this is no public header.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2139 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-03 14:06:21 +00:00
Axel Dörfler
c5cf4e87b6 Removed the "path" field in the team structure. Renamed "ioctx" to "io_context".
Added a "page_faults_allowed" field in the thread structure.
Clean up.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2138 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-03 14:05:21 +00:00
lillo
f2bc61304f replaced sys_kill with general thread-aimed sys_send_signal; cleaned up
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1740 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-28 20:38:16 +00:00
lillo
a2117f0bc7 reworked snooze to work in function of the newly added (and kernel exported) snooze_etc. Activated libroot counterpart(s).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1723 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-27 12:06:40 +00:00
lillo
5cdacbaabb *LOTS* of small changes to make the kernel compatible with Be's KernelExport.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1683 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 16:13:36 +00:00
beveloper
1be91d1603 added thread_entry for backward compatibility
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1677 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 12:58:12 +00:00
lillo
8fe70e8212 beos compatibility fixes: exit_thread now issues a signal; wait_for_thread returns B_INTERRUPTED if target thread gets killed
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1674 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 01:11:15 +00:00
lillo
9870ddcea7 kill now sends the signal to the main thread of a process only. To target a specific thread use the new send_signal syscall. Also added set_alarm.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1662 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-25 22:36:08 +00:00
lillo
f510e6ce60 posix signals support, 1st pass
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1623 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-23 17:31:10 +00:00
beveloper
d734a8ce5a some header files to be R5 compatible
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1617 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-23 13:54:44 +00:00
beveloper
d7e489f80a modified to provider better R5 compatibility
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1615 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-23 13:45:47 +00:00
Axel Dörfler
146a3000ee Added syscalls for the index functions.
Corrected the prototype for fs_rewind_index_dir() (don't copy and paste...)
Also checked in the syscall definitions for the signal stuff to save Angelo
some work.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-17 18:52:04 +00:00
Axel Dörfler
1f87d2b261 Changed parameter type in create_index().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-17 16:45:40 +00:00
Axel Dörfler
b67f11173f Added syscalls for the attribute VFS calls.
Made some subtle changes to fs_attr.h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1546 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-16 16:17:28 +00:00
Axel Dörfler
123b5d67ad Moved the seek() functionality back to the VFS.
Renamed read_pages(), and write_pages() to make it more clear.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1446 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-07 23:37:05 +00:00
Axel Dörfler
c321cf4929 Completed, rearranged, and cleaned up OS.h. Moved some typedefs from ktypes.h
to this place. Also removed create_sem_etc() from there, that shouldn't be a public call.
Cleaned up image.h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-05 01:19:31 +00:00
Axel Dörfler
83efd20846 The private data field in struct file_descriptor is now a union (that can
currently hold a pointer to a fs_mount, or a vnode).
Updated the index_dir part of the fs API.
Added FDTYPE_INDEX_DIR in fd.h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1188 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-26 03:36:04 +00:00