Commit Graph

2201 Commits

Author SHA1 Message Date
Ingo Weinhold
05916979f9 Export i386_get_current_iframe() so it can be used in arch_user_debugger.cpp.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11472 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-24 15:49:41 +00:00
Ingo Weinhold
08fd6d69aa Beginning of the x86 debugging support.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11470 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-24 15:46:20 +00:00
Jérôme Duval
abd010bc61 Moved mbstate to wchar.h
Restored glibc/wcsmbs/wchar.h


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11451 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-22 18:06:35 +00:00
Jérôme Duval
834f7878aa FindString is better than FindData (thanks axeld)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-18 17:27:34 +00:00
Jérôme Duval
997aa9ac18 error handling
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11410 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-18 11:05:33 +00:00
Axel Dörfler
db5fbf2a6b Fixed a possible crashing bug in case of a corrupt inode: the vnode was
removed twice from its mount's list.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11409 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-18 03:57:08 +00:00
Jérôme Duval
76fa831165 fixes sscanf for decimal values, enables keymap to actually load source keymaps
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-17 16:57:12 +00:00
Axel Dörfler
4b72e95292 getcwd() is actually implemented like elsewhere, and not strictly after
POSIX demands: if you pass in a NULL pointer, a buffer will now be
allocated for you.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11388 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-16 03:51:34 +00:00
Axel Dörfler
86e404324f Fixed the build of the boot floppy and removed all input_server headers
when USE_INPUT_SERVER is not defined.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-16 03:22:12 +00:00
Axel Dörfler
a1537049b7 Changed the way we're resetting the machine: we're now first trying the
keyboard controller method, and only if that fails we fall back to what
we have before.
At least my SiS laptop now properly reboots, and doesn't just halt
anymore - doesn't seem to have a negative impact on other machines, but
please report any regressions :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-16 02:12:14 +00:00
Jérôme Duval
82698ec120 added support for arrows (from our Terminal impl)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11383 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-15 16:58:28 +00:00
Axel Dörfler
133c5b73a2 Obviously, my laptop (SiS 630 based) only reports all VESA modes when there
was one mode change before - took me quite some time to figure this out; now
we just do a mode change to the standard text mode; this is probably a good
idea anyway to make sure we're running in the correct text mode for the boot
menu.
The error check for the VESA BIOS calls were not really correct, even if
they worked. The vbe_mode_info structure is now cleared before the mode
info is requested (as suggested in Ralf Brown's interrupt list).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11382 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-15 15:35:59 +00:00
Axel Dörfler
f7958e552d Now only echoes the input if ECHO is defined.
Ignores a "--login" argument (that's what consoled does).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-15 01:18:58 +00:00
Axel Dörfler
23cf00de23 Now starts consoled instead of a shell directly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-15 01:17:52 +00:00
Axel Dörfler
ca347bfce3 We report ourselves now as "beterm", so that we don't look as dumb as before.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-15 00:28:43 +00:00
Axel Dörfler
c016d92ea1 Added the new console/vga_text driver/module stuff to the old boot floppy
method as well.
Removed libdrivers.a from the kernel, added kernel_debug.o to the kernel.
Renamed the boot floppy shell "sh", so that consoled doesn't need to be
changed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-15 00:25:32 +00:00
Axel Dörfler
a621f3b6c1 Added the new (built-in) frame_buffer_console module to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11375 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-15 00:18:27 +00:00
Axel Dörfler
f80973f6c2 Replaced the old frame buffer console driver with a built-in frame buffer
console module which is used by the console driver, and will be used by
the on-screen KDL.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-12 03:45:01 +00:00
Axel Dörfler
1252c6cfae No longer computes a wrong frame buffer size for 15 bit modes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-12 03:12:19 +00:00
Jérôme Duval
ec4fd18f03 _sPrintf implemented
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-11 13:04:13 +00:00
Ingo Weinhold
73df3c0847 * Turned off debug output.
* The syscall arguments are copied into the respective messages to the
  debugger now.
* Optimized the nub thread memory reading command. Now only as many bytes
  are sent to the debugger as were actually read.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-11 05:00:31 +00:00
Ingo Weinhold
6b2dcef3ec Explicitly declare the inclusion of the syscall table file generated by gensyscalls.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-11 04:57:38 +00:00
Ingo Weinhold
6432752755 Include the syscall info array generated by gensyscalls.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-11 04:56:11 +00:00
Axel Dörfler
90bce836e0 Changed the way user/kernel time is tracked for threads. Now, thread_at_kernel_entry()
and thread_at_kernel_exit() are always called for userland threads at the appropriate
situation (note, I've renamed those from *_atkernel_*).
The timing should be more accurate this way, and the thread::last_time_type field
is no longer needed: all interrupts are now added to the kernel time (where the
time is actually spent).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-11 03:10:21 +00:00
Axel Dörfler
71aa315c95 First round of hoard changes to change it exactly to what we need.
Removed the arch-specific stuff for all other platforms.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-10 18:47:16 +00:00
Ingo Weinhold
e23a6f58af Added syscall tracing support.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-10 03:06:05 +00:00
Ingo Weinhold
a102c86e08 Init and cleanup the thread related debugging structure.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-10 03:04:53 +00:00
Ingo Weinhold
bea87e89d4 Init and cleanup the team related debugging structure. Send the debugger
a respective message, when the debugged team has been deleted.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-10 03:03:53 +00:00
Ingo Weinhold
734e07cedb Added user_debugger.cpp to the kernel.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-10 02:57:46 +00:00
Ingo Weinhold
4661ae6c69 Added/implemented debugging related API functions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-10 02:56:49 +00:00
Ingo Weinhold
6b13343035 Some additions for user debugger support. Several of ToDos. This is far from being final, but just something we can work with for the moment.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-10 02:53:48 +00:00
Ingo Weinhold
bc797a9ee5 The beginnings of userland debugger support. Currently basically only what is needed for strace is implemented.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11308 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-10 02:47:46 +00:00
Axel Dörfler
8f0882a2e1 Some cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11306 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-10 01:11:44 +00:00
Axel Dörfler
f4a87ad575 As Ingo pointed out correctly, B_INTERRUPTED is never returned when a semaphore
goes away; therefore we must not return B_BAD_PORT_ID in this case.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-10 01:08:55 +00:00
Axel Dörfler
942d411b67 Fixed kernel version of load_driver_setting(): the lock was not properly
released under certain conditions.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-09 17:56:21 +00:00
Axel Dörfler
b885799ce7 Support for the input_server (R5 style) instead of using the (old) keyboard driver
directly, done by Jerome Duval.
When the USE_INPUT_SERVER constant is defined, it will try to get its input from
there. Currently disabled since it's not yet working.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-09 17:53:16 +00:00
Axel Dörfler
29ad57a6c0 Renamed main.c to console.cpp and link it against libbe.so
(in anticipation of future changes).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11296 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-09 17:20:08 +00:00
Jérôme Duval
db3e07c9e8 implemented _xdebugPrintf and _debugPrintf
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-09 16:02:05 +00:00
Axel Dörfler
54d6c54090 Moved over to new node monitor API.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11231 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-03 02:54:12 +00:00
Axel Dörfler
de8432edeb Moved over to Ingo's new DoublyLinkedList - I miss my static list::Remove() :-))
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11230 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-03 02:27:04 +00:00
Axel Dörfler
09e756fbf7 Moved over to the new notification API.
Fixed rename implementation - it should now actually work (and also notify
the move which didn't happen before).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11229 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-03 02:18:25 +00:00
Jérôme Duval
aafd5156d4 Updated to tzcode2005c.tar.gz
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11228 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-02 22:42:24 +00:00
Ingo Weinhold
9965d18a07 Implemented all notify_*() functions. As soon as no longer used anywhere,
notify_listener() and send_notification() can be dropped.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11219 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-02 15:19:35 +00:00
Axel Dörfler
f9c5546a16 unistd/open.c should be changed to contain this variable when it's compiled
for the kernel - but since we still compile libroot.so with kernel build
rules, I place it there for now.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11210 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-02 06:49:45 +00:00
Axel Dörfler
92ce7b918a Improved capabilities of the file cache modules.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11209 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-02 06:30:07 +00:00
Axel Dörfler
2ab3ff4495 _kern_open() now has one more argument.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11207 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-02 06:23:38 +00:00
Axel Dörfler
72b8a30907 _kern_open() now has an additional parameter and replaces _kern_create().
Fixed permission handling - the umask is now correctly applied.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11206 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-02 06:22:40 +00:00
Axel Dörfler
503950421d Added two more convenience VFS calls: vfs_stat_vnode(), and vfs_get_vnode_name().
Removed *_create() and *_create_entry_ref() syscalls - they are now handled by
*_open() and *_open_entry_ref() calls which get another parameter for the permissions.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11205 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-02 06:21:31 +00:00
Axel Dörfler
faa1f9368a Changed return type of relocate_image() from bool to status_t.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11202 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-02 06:15:19 +00:00
Axel Dörfler
12691b61c5 That's how the build fix should have looked alike :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11201 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-02 06:11:27 +00:00