Axel Dörfler
21c6ae44d3
vfs_get_vnode_cache() was pretty broken, and didn't returned the correct
...
cache pointer in most cases.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8825 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 15:55:41 +00:00
Axel Dörfler
103d0293a9
Moved this file to ../cache/block_cache.cpp.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8824 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 15:40:10 +00:00
Axel Dörfler
35df9fef55
Removed cache.cpp from the build.
...
Removed unnecessary grist from source files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8823 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 15:39:14 +00:00
Axel Dörfler
837e295821
Added the kernel_cache.o object to the kernel.
...
Added arch dependent POSIX stuff to libroot.so.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8822 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 15:38:05 +00:00
Axel Dörfler
e521a22974
Added the "cache" subdirectory to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8821 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 15:36:35 +00:00
Axel Dörfler
3a976c2844
Adds block_cache.cpp to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8820 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 15:35:32 +00:00
Axel Dörfler
125f4d5101
Implemented a "block map" that can efficiently map contiguous blocks to
...
addresses.
Not yet used - might be used instead of the vm_cache page caching for the file cache.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 15:34:24 +00:00
Axel Dörfler
6a3016d2ab
Moved the block cache to this file (from ../vm/cache.cpp).
...
It still contains a very dump version of a BeOS compatible block cache.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8818 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 15:32:20 +00:00
Axel Dörfler
4872592920
Changed the way the vnode cache is set - it's now cleaner and can no longer
...
allocate a cache twice.
The VFS is now responsible for allocating the cache object - it will call
the VM to do that if necessary.
Added another accessor call to a pointer to the VFS private vnode object.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8817 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 14:11:04 +00:00
Axel Dörfler
2f1cbcf862
Changed the way the vnode cache is set - it's now cleaner and can no longer
...
allocate a cache twice. Now handles resource shortages gracefully.
Added small description to _vm_map_file().
Minor other cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8816 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 14:09:26 +00:00
Axel Dörfler
36ce5c0164
Changed the way the vnode cache is set - it's now cleaner and can no longer
...
allocate a cache twice.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8815 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 14:07:00 +00:00
Jérôme Duval
3f8c0d7e75
now button 2 is working
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8814 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 12:48:03 +00:00
Axel Dörfler
b0c6c1df05
Let some bin commands now link against our libroot.so, so that we
...
have more functions available (like strlcpy()).
Note, this might affect the functionality on R5. For example, the
"df" command will only work on Dano/Zeta, and of course, Haiku.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 12:31:09 +00:00
Jérôme Duval
5c506d7fdd
change debug
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8812 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 12:14:27 +00:00
Axel Dörfler
f8db8b97a8
No longer uses syscalls instead of POSIX calls.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8811 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 11:43:53 +00:00
Stefano Ceccherini
0dbc4bef49
Changed the fQuit variable to a static sQuit. Removed the snooze() in the device watcher thread function.
...
Started implementing the "one thread per device" design.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8810 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 07:43:56 +00:00
Stefano Ceccherini
145a357d37
This fixes the crash when Debug is active (at least over here; Korli, can you check?)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8809 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 07:12:02 +00:00
Jérôme Duval
600f089e43
added a base keyboard addon
...
added a grist to addons
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8808 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 22:27:29 +00:00
Jérôme Duval
0548f831d5
complete register and unregister
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8807 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 21:56:41 +00:00
Jérôme Duval
e07f3f03dc
added BInputDevice test
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 21:40:01 +00:00
Jérôme Duval
88caa4a867
added missing scrolllock
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 21:18:43 +00:00
Jérôme Duval
83589f8917
added BInputDevice server side
...
added set_modifier_key server side
now changes locks in the current keymap, it can then be reloaded
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 21:15:23 +00:00
Michael Pfeiffer
38ded28eee
Fixed bugs.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 20:29:30 +00:00
Rudolf Cornelissen
ba0b8a97e0
added coldstart support for TNT2M64 cards: added RAM width test in script execution. TNT2-M64 now working as good as normal TNT2: lower res modes OK, still needs fix for CRTC memory fetch errors on higher modes.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8802 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 19:37:45 +00:00
Rudolf Cornelissen
85f38ca104
fixed finding RAM config table in cardBIOS: this enables coldstart support on a lot more NV05/NV06 (TNT2) cardBIOSes...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8801 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 15:22:47 +00:00
Axel Dörfler
74cbf93e61
Added and improved lots of comments in vm_soft_fault().
...
Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8800 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 15:13:15 +00:00
Rudolf Cornelissen
490c99a7db
updated default settings upon missing nv.settings file to best general settings.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8799 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 13:01:41 +00:00
Rudolf Cornelissen
c1e1b1aef0
doc update for coldstart support.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8798 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 12:23:26 +00:00
Jérôme Duval
e361bf6901
fix buttons handling
...
seems doubleclick not handled yet
crash when debug is active (before this change)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8797 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 12:22:33 +00:00
Rudolf Cornelissen
6179417d78
added last two coldstart script cmds for pre-NV10 cards. This should complete coldstart support for pre-NV10 cards with BIOS info struct V2 and later (i.e. TNT2). Please test and provide feedback!
...
Note that FIFO watermark stuff still has to be setup (i.e. fix for CRTC fetching errors on coldstarted cards). So higher-res modes do not yet work reliably.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8796 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 12:20:43 +00:00
Rudolf Cornelissen
b2e882e612
added exec of another coldstart script cmd...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8795 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 10:52:43 +00:00
Stefano Ceccherini
3aa69c787f
Some changes to the Mouse Input Server Device add-on. B_MOUSE_UP/DOWN still don't work correctly
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 08:52:54 +00:00
Rudolf Cornelissen
5fd2ad26d3
rewritten ISA coldstart script cmd's to actually use ISA I/O.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8793 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 08:49:40 +00:00
Rudolf Cornelissen
f64878ee55
rewritten ISA coldstart script cmd's to actually use ISA I/O.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8792 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 08:43:55 +00:00
Rudolf Cornelissen
abbf0913fb
rewritten ISA coldstart script cmd's to actually use ISA I/O.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8791 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 08:36:27 +00:00
Axel Dörfler
05835518ae
Added a function prototype and description on how the userland waitpid()
...
functionality could be supported.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8790 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 01:41:06 +00:00
Axel Dörfler
77a6c2446a
We now have a POSIX and BeOS compatible grp.h header.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8789 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 01:04:55 +00:00
Axel Dörfler
ef552d5eab
Added names for the parameters.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8788 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 01:03:51 +00:00
Axel Dörfler
39536410a6
Added dumb group functions - they only know one group: "users" (should be pretty similar to R5).
...
Implemented and added functions from inttypes.h (not everything is working correctly, though).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8787 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 01:03:01 +00:00
Axel Dörfler
929525b836
Implemented wait() using waitpid() following the POSIX spec.
...
Added some more debug output for waitpid().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8786 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 01:01:02 +00:00
Axel Dörfler
336ffbcd04
Unlike alarm(), ualarm() has actually two arguments.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8785 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 23:45:54 +00:00
Ingo Weinhold
d21749db83
Fixed a problem we had with bool parameters (probably with all types that consume more storage when being passed as function parameters).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8784 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 20:17:57 +00:00
Ingo Weinhold
75df143732
Introduced a macro specifying the type function parameters are aligned to. Not nice, but seems to help with the automatic generation of syscall code (at least on x86).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8783 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 20:15:19 +00:00
Rudolf Cornelissen
1056bcb0ca
added ISA I/O functions in kerneldriver (for coldstart script exec)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8782 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 20:10:51 +00:00
Rudolf Cornelissen
fc3f2e637d
added ISA I/O functions in kerneldriver (for coldstart script exec)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8781 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 20:04:26 +00:00
Axel Dörfler
cc90b1798a
Removed unsupported cruft from uio.h (uiomove()).
...
Made header C++ safe.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8780 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 16:26:15 +00:00
Jérôme Duval
53d77642d6
Added mouse settings handling.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8779 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 15:55:54 +00:00
Axel Dörfler
d5b3917b25
Introduced new thread_entry_func type.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8778 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 15:48:36 +00:00
Axel Dörfler
655c4f0c99
Resolved the argument type change of _user- vs. _kern_spawn_thread() - introduced
...
a new thread_entry_func typedef in the kernel only. Unlike thread_func, it accepts
two arguments - that functionality is not exported to the user, though.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8777 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 15:47:47 +00:00
Axel Dörfler
a52018b53b
dev_for_path() should resolve symlinks.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 14:41:20 +00:00