Commit Graph
6606 Commits
Author SHA1 Message Date
Art Yerkes 9c612e5515 Debug devtree.
Add generation of simple device tree in freeldr.

svn path=/trunk/; revision=30354
2007-11-11 11:14:52 +00:00
Aleksey Bragin 0ad062c8a2 - Fix two more typos, now exception handling doesn't lead to an infinite loop resulting in a stack overflow and thus unhandled exception being caught by ntoskrnl.
svn path=/trunk/; revision=30353
2007-11-11 10:03:12 +00:00
Art Yerkes fcfccd503e Simple way to encode a device tree for early boot operations.
svn path=/trunk/; revision=30351
2007-11-11 09:23:05 +00:00
Art Yerkes e5be8f87ce Doh. Fix bad vsid assignment.
svn path=/trunk/; revision=30349
2007-11-11 03:41:31 +00:00
Art Yerkes 0eb32850f0 - Don't touch real segments until after booting.
- Hang function isn't too useful.

svn path=/trunk/; revision=30348
2007-11-11 03:19:17 +00:00
Aleksey Bragin bd25193c35 - Fix a bug (wrong push ... pop order).
svn path=/trunk/; revision=30339
2007-11-10 20:36:11 +00:00
Aleksey Bragin ce4c1b6f78 - Fix a bug.
( jz -> js, a typo)

svn path=/trunk/; revision=30323
2007-11-10 13:02:04 +00:00
Aleksey Bragin 25c3bd5a53 - This one is not needed anymore (_LIBCNT_ is defined in libcntpr.rbuild, PCH is precomp.h).
svn path=/trunk/; revision=30292
2007-11-09 12:25:10 +00:00
Aleksey Bragin 1402877204 - Build crt and libcntpr from one source tree (using conditional code and/or different source files where code is not shared).
svn path=/trunk/; revision=30291
2007-11-09 12:20:16 +00:00
Aleksey Bragin d63772135f - Copy except and memccpy.c from libcntpr.
svn path=/trunk/; revision=30288
2007-11-09 11:22:29 +00:00
Aleksey Bragin 375959c206 - Sync some changes in strings from libcntpr.
- Move string implementation (in "header" files) into /string dir.
- Copy over libcntpr-specific implementations into _nt.c files (for now, later they could do with a define).
- libcntpr's is now almost fully syncronized and could be merged into the tree except for "except" directory.

svn path=/trunk/; revision=30283
2007-11-08 21:06:20 +00:00
Aleksey Bragin 75b952dde1 - Move ctype into strings.
- Separate msvcrt-specific exception handling routine into prolog.s file.
- Move bsearch to the search directory.

svn path=/trunk/; revision=30267
2007-11-08 12:15:39 +00:00
Aleksey Bragin 6b0e42017a - Rearrange source files location, so that string/math/etc routines aren't spread throughout the CRT tree.
svn path=/trunk/; revision=30266
2007-11-08 10:54:42 +00:00
Aleksey Bragin f5ccdfc8e8 - Don't include <windows.h> if it's not needed.
- Fix strange usage of TABs.

svn path=/trunk/; revision=30247
2007-11-07 22:34:05 +00:00
Hervé Poussineau 6e000cec2a No need to create dependency files for zlib host library
svn path=/trunk/; revision=30219
2007-11-06 13:08:48 +00:00
Art Yerkes 66aabe3049 Do this properly now that I understand exception chaining a bit better.
The exception chain on x86 is at fs:0.  We use r13 to simulate the same, so
we chain exceptions at 0(13)

svn path=/trunk/; revision=30105
2007-11-04 11:57:37 +00:00
Hervé Poussineau 7af600178a Add traces
Fix typo in EnumerateRecycleBinW

svn path=/trunk/; revision=30009
2007-10-31 13:04:47 +00:00
Hervé Poussineau e6a393c3ad Replace drive letter by a root path
svn path=/trunk/; revision=30001
2007-10-31 09:10:20 +00:00
Hervé Poussineau 25e2d0f59e Fix some bugs which were preventing enumeration of all deleted files
Add a system-wide recycle bin, which federates all individual recycle bins
Add a COM interface to the recycle bin library
Use COM ref counting instead of a house-made system

svn path=/trunk/; revision=29998
2007-10-31 08:57:35 +00:00
Thomas Bluemel 0f9c8e1dcc fix compilation with full optimizations
svn path=/trunk/; revision=29988
2007-10-30 22:03:37 +00:00
Aleksey Bragin b308496ffa - Include config/cm.h for cm based code, and remove all duplicated types and prototypes.
- Get rid of EREGISTRY_HIVE, and use CMHIVE instead. Although the current ReactOS code doesn't make use of any of the functionality it offers, it's compatible with EREGISTRY_HIVE (our version was a subset) and allows us to get rid of another ros-specifc type, as well as being able to merge code from the cm-branch much more easily.
- Merge cmwraprs.c from the cm-branch, since the only differences were the filehandle fields in EREGISTRY_HIVE vs CMHIVE.
- Enable the #if'ed out code in cminit.c since it now applies to CMHIVE.

svn path=/trunk/; revision=29944
2007-10-28 22:38:20 +00:00
Aleksey Bragin 6b7c404e0b - Move registry shareable types (not internal to ntoskrnl's configuration manager) to cmdata.h, so that freeldr/mkhive can access them too.
- Remove all the ReactOS-specific versions of those types.
- Change all code referencing the ReactOS-specific versions to use the real NT versions, and fix any related code to properly use the new fields.

svn path=/trunk/; revision=29943
2007-10-28 21:31:46 +00:00
Hervé Poussineau acdf579f07 Silent debug message
svn path=/trunk/; revision=29917
2007-10-27 16:38:14 +00:00
Art Yerkes f6640c9b72 Remaining fixes from branch transition. MmuTurnOn, now with GDB stub.
svn path=/trunk/; revision=29894
2007-10-26 06:37:52 +00:00
Aleksey Bragin 6dad5e16a9 - Update cmlib interface to NT 5.2.
- Fix a bug in CmpInitializeHive which was calling HvInitializeHive with inverted params.
- Fix some host header issues.

svn path=/trunk/; revision=29879
2007-10-25 15:53:51 +00:00
Gregor Brunmar 243774066b Made r29837 readable
svn path=/trunk/; revision=29838
2007-10-23 21:47:18 +00:00
Gregor Brunmar f1546e5b22 Added RtlCopySecurityDescriptor
svn path=/trunk/; revision=29837
2007-10-23 21:42:03 +00:00
Hervé Poussineau aabdae9d56 No need to define __USE_W32API
svn path=/trunk/; revision=29815
2007-10-23 08:12:28 +00:00
Art Yerkes dedc151662 Protect access to the physical map.
svn path=/trunk/; revision=29699
2007-10-20 04:30:01 +00:00
Daniel Reimer ae7da04787 Delete all Trailing spaces in code.
svn path=/trunk/; revision=29690
2007-10-19 23:21:45 +00:00
Hervé Poussineau 4d1f688f65 Activate define override check in rbuild
Cleanup some .rbuild files
Set __REACTOS__ as overridable ; it should be removed after next winesync

svn path=/trunk/; revision=29685
2007-10-19 15:27:44 +00:00
Art Yerkes 293cc2c20b Debug DbgBreakPoint and drop to GDB on program trap.
svn path=/trunk/; revision=29672
2007-10-19 07:22:01 +00:00
Art Yerkes 9b64d11bf9 Break in at will.
Fix trap handler a bit, allowing setting of MSR.
Make packet code work properly when serial output is interrupted by a packet
from gdb.

svn path=/trunk/; revision=29658
2007-10-18 08:12:28 +00:00
Mike Nordell 5ddb3f1519 const-correctness cleanup. 'CONST UNICODE_STRING*' -> PCUNICODE_STRING
svn path=/trunk/; revision=29626
2007-10-16 08:52:09 +00:00
Mike Nordell 68b61fb415 Unbreak build. The code is used from user-mode too, so CONST can not be used. Use plain 'const' instead.
svn path=/trunk/; revision=29623
2007-10-16 06:55:06 +00:00
Mike Nordell 51c353fab2 Attempt to make Cm API at least a little const-correct.
svn path=/trunk/; revision=29621
2007-10-16 05:39:47 +00:00
Art Yerkes 3d34c28eb4 Fix quirks for building PPC on windows.
svn path=/trunk/; revision=29591
2007-10-15 03:56:58 +00:00
Art Yerkes 8f3885a661 Make a more complete entry in the normal path so we can enter GDB at will.
svn path=/trunk/; revision=29589
2007-10-15 00:53:17 +00:00
Art Yerkes 4039f862ec Add simple GDB stub.
Fix reported kernel address returned to reactos.c
Make MachVtbl fully formed for all subarch
Add simple gdb stub at this layer, wired to exception handlers
Simplify and unkludge trap handlers
Adapt trap frame to gdb style
Add proper swapping to image.c
Adapt other code for the more general trap handler now available in ppcmmu.

svn path=/trunk/; revision=29588
2007-10-14 23:09:12 +00:00
Magnus Olsen 3016e207ca do not use entrypoint="0" when dll have dllmain
only when dll does not have dllmain we should use entrypoint="0" 
other wise the original dllmain will not be run

svn path=/trunk/; revision=29587
2007-10-14 22:41:36 +00:00
Aleksey Bragin a3d5eb47e0 Johannes Anderwald
- Fix the msvcrt exception (because vlc first calls _getmainargs. This function sets the  __argc to 1. Afterwards vlc calls again __wgetmainargs where __argc is now one. When entering the function _wadd, it doesnot allocate the __wargv because __argc is 1. Therefore it crashes).
See issue #821 for more details.

svn path=/trunk/; revision=29531
2007-10-12 09:58:00 +00:00
Hervé Poussineau 340b2adbee Do not define __REACTOS__ twice
svn path=/trunk/; revision=29423
2007-10-06 19:18:55 +00:00
Art Yerkes 289ae6c346 Added to trunk.
svn path=/trunk/; revision=29410
2007-10-06 08:34:33 +00:00
Art Yerkes 0abf169695 All remaining changes from the PPC branch. Not well tested yet. Many things
are indeed still stubs or WIP code.

Some people have been interested in helping out from some time and I'm sorry
I haven't been able to do this merge finally for a while.

svn path=/trunk/; revision=29407
2007-10-06 07:53:20 +00:00
Aleksey Bragin 5cf9e02b1e - Don't try to copy an uninitialized bitmap's contents (it worked only because it was zeroed, and thus zero-size RtlCopy and ExFreePool(NULL)).
svn path=/trunk/; revision=29387
2007-10-03 20:58:44 +00:00
Aleksey Bragin fe7669dea4 - KeRosCaptureUserStackBackTrace is now created, which calls RtlWalkFrameChain with the user-mode flag, meaning that bugchecks finally show the user-mode stack again!
- KeRosDumpStackFrames is fixed so that if the EIP can't be found in a module list, it's still displayed (just without the module name). Previously the EIP would not be shown, resulting in code running on the heap/stack/somewhere else not being shown as part of the trace.

svn path=/trunk/; revision=29332
2007-10-01 17:58:49 +00:00
Timo Kreuzer 51de002eae add a DPRINT1, stating that HvpWriteLog doesn't work atm
svn path=/trunk/; revision=29268
2007-09-28 04:56:40 +00:00
Timo Kreuzer 0b5bb79dc8 free memory before returning on failure.
Thanks to Yaron Aharonson ([email protected]) for spotting this.
See issue #2694 for more details.

svn path=/trunk/; revision=29267
2007-09-28 04:17:13 +00:00
Aleksey Bragin 18064031f9 - Fix multiple bugs in RtlWalkFrameChain and secure it against any possibility of a bugcheck while walking the stack.
- Fix bugs in RtlUnwind and RtlExceptionDispatch which assumed the DPC stack size was 4KB instead of 12KB.
- Fix multiple bugs in RtlpGetStackLimits and seure it against bugchecks. Properly detect DPC or invalid stacks.
- PsConvertToGuiThread should acquire a guarded region, not a critical section, to stop all APCs.
- Fix bug in bugzilla reporting which was making things crash.
- Unlock address space before raising to HIGH_LEVEL in KeBugCheck.
- Display blue screen at APC_LEVEL, to avoid the assertion in procobj.c when trying to attach to csrss. This should fix the recursive bugchecking when the GUI is up, and also take down the GUI properly. The fix is a hack.
- Fix bogus implementation of IoGetStackLimits and make it work properly.
- Make MmCreateKernelStack return the base of the stack, not the limit, and fix all callers appropriately.
- Remove svn:needs-lock properties of various files, whose contents either changes too often or whose contents is definately clean.

Bugreports and information - by Alex.

svn path=/trunk/; revision=29244
2007-09-27 13:07:43 +00:00
Hervé Poussineau 2ad309f010 Do not use host headers anymore when building target executables/libraries
svn path=/trunk/; revision=29180
2007-09-24 11:43:38 +00:00