Sylvain Petreolle [Sun, 17 Feb 2008 19:56:37 +0000 (19:56 +0000)]
french usetup translation update
see complete filenames when "Copying file :"
svn path=/trunk/; revision=32408
Filip Navara [Sun, 17 Feb 2008 19:39:28 +0000 (19:39 +0000)]
Fix some typos.
svn path=/trunk/; revision=32407
Daniel Reimer [Sun, 17 Feb 2008 18:05:08 +0000 (18:05 +0000)]
Bug 3070: Ukrainian translation update by Artem Reznikov - temarez@yandex.ru
Bug 3078: czech translation for solitaire by radekliska@gmail.com
Bug 3083: usetup update by Paolo Devoti - devotip@tiscali.it
Added the English Strings to all USETUP Resources and activated these. This makes translating easier.
Renamed German to Deutsch and Russian to Russkij, which seems like it does not work... (thx to Caemyr anyway)
svn path=/trunk/; revision=32406
Aleksey Bragin [Sun, 17 Feb 2008 16:24:24 +0000 (16:24 +0000)]
- Fix a bug, when the page first was marked as free and put into free pages list to zero out, and then was marked as used for PFN database, but *not* removed from that list! Certainly it was zeroed out later, introducing a corruption within the free list and a pagefault.
- This revision completely removes hacks introduced in 32386.
See issue #3076 for more details.
svn path=/trunk/; revision=32405
Gregor Brunmar [Sun, 17 Feb 2008 14:51:26 +0000 (14:51 +0000)]
Fixed duplicate typedef in DirectX headers for real this time :)
svn path=/trunk/; revision=32404
Gregor Brunmar [Sun, 17 Feb 2008 14:40:23 +0000 (14:40 +0000)]
Fixed duplicate typedefs in DirectX headers
svn path=/trunk/; revision=32403
Gregor Brunmar [Sun, 17 Feb 2008 13:42:02 +0000 (13:42 +0000)]
Oops, removed OsThunkD3dDrawPrimitives2 from d3d8thk.h.
svn path=/trunk/; revision=32402
Gregor Brunmar [Sun, 17 Feb 2008 13:34:59 +0000 (13:34 +0000)]
* Updated d3d headers to make it possible to include both d3d and d3d9 at the same time.
* Updated d3dhal.h to support DirectX 9
* Fixed broken d3dnthal.h
* Fixed missing structures in d3d8thk.h
svn path=/trunk/; revision=32401
Aleksey Bragin [Sun, 17 Feb 2008 13:08:28 +0000 (13:08 +0000)]
- Zero early-allocated pages for PFN DB itself, as suggested on the ros-dev mailing list, and hyperspace mapping seems to work, at least on x86. Fixes the "warm reboot-bug" in 2nd stage.
svn path=/trunk/; revision=32400
Colin Finck [Sat, 16 Feb 2008 23:45:23 +0000 (23:45 +0000)]
- Only add a command for deleting the proxy makefile, when one was really generated.
Should fix all those "Error 1 (ignored)" warnings (if there aren't even more problems ;-)
- Include <algorithm> in modulehandler.cpp. Fixes compilation with MSVC.
- Add _CRT_SECURE_NO_WARNINGS to the MSVC project file to disable a bunch of MSVC warnings.
svn path=/trunk/; revision=32399
Colin Finck [Sat, 16 Feb 2008 23:07:40 +0000 (23:07 +0000)]
[FORMATTING]
- 2 spaces --> 4 spaces
- some other changes to make the code style consistent with most ROS code
- Change in the .rbuild file to treat warnings as errors (the lib currently doesn't spit out any warnings, so it shouldn't do in the future)
svn path=/trunk/; revision=32398
Colin Finck [Sat, 16 Feb 2008 22:49:52 +0000 (22:49 +0000)]
Fix 64-bit build (again.. :-/)
svn path=/trunk/; revision=32397
Colin Finck [Sat, 16 Feb 2008 22:21:59 +0000 (22:21 +0000)]
/Wp64 and __w64 are deprecated beginning with Visual C++ 2008.
Remove the /Wp64 switch from the cabman project file (no idea why it was enabled anyway ;-) and the _W64 macros from the code.
svn path=/trunk/; revision=32395
Daniel Reimer [Sat, 16 Feb 2008 18:58:05 +0000 (18:58 +0000)]
Once more... make it possible to translate usetup COMPLETELY. (I hope this time I am right....)
svn path=/trunk/; revision=32392
James Tabor [Sat, 16 Feb 2008 18:14:36 +0000 (18:14 +0000)]
- Patch by Stefan Ginsberg (stefan__100__ AT hotmail DOT com): Removed NtGdiStretchDIBits and NtGdiAddFontResource. Replaced with correct API.
svn path=/trunk/; revision=32391
Dmitry Chapyshev [Sat, 16 Feb 2008 17:36:34 +0000 (17:36 +0000)]
- Add Arabic and Czech languages to list
svn path=/trunk/; revision=32390
Dmitry Chapyshev [Sat, 16 Feb 2008 17:28:58 +0000 (17:28 +0000)]
- Add small checking
- Fix formating
svn path=/trunk/; revision=32389
Dmitry Chapyshev [Sat, 16 Feb 2008 16:23:33 +0000 (16:23 +0000)]
- Add libpng 1.2.24 (from libpng.org)
svn path=/trunk/; revision=32388
Dmitry Chapyshev [Sat, 16 Feb 2008 15:26:00 +0000 (15:26 +0000)]
- Update Russian translation
svn path=/trunk/; revision=32387
Aleksey Bragin [Sat, 16 Feb 2008 14:56:56 +0000 (14:56 +0000)]
- Add a hacked and incorrect (due to absence of checking for BIOS-reserved memory areas) MiInitializePageList from 32371. This allows 1st stage to work, and 2nd stage to work from the first power up.
- Real, new, [bugless] MiInitializePageList is #if0-#endif'ed until a problem in it is identified and fixed.
svn path=/trunk/; revision=32386
Gregor Brunmar [Sat, 16 Feb 2008 11:17:46 +0000 (11:17 +0000)]
Implemented IDirect3D::GetDeviceCaps()
svn path=/trunk/; revision=32385
ReactOS Portable Systems Group [Fri, 15 Feb 2008 20:52:36 +0000 (20:52 +0000)]
On systems with large enough memory (or lots of drivers already loaded), we actually need another PDE to hold the new PTEs to represent the PFN database, since we go past the initial PDEs that come from FreeLDR. On those systems, we would try allocating a new page to hold the PDE, and crash, since the PFN database isn't setup. We now have an MmAllocPageEarly routine which is called during Mm bootstrapping to resolve this issue.
svn path=/trunk/; revision=32383
Daniel Reimer [Fri, 15 Feb 2008 19:36:22 +0000 (19:36 +0000)]
Bug 3053: some slovak translations by Mário Kaèmár - kario@szm.sk
svn path=/trunk/; revision=32382
Daniel Reimer [Fri, 15 Feb 2008 19:25:36 +0000 (19:25 +0000)]
Bug 3053: some slovak translations by Mário Kaèmár - kario@szm.sk
svn path=/trunk/; revision=32381
Johannes Anderwald [Fri, 15 Feb 2008 19:22:55 +0000 (19:22 +0000)]
- taskmgr improvements by Carlo Bramix
See issue #3075 for more details.
svn path=/trunk/; revision=32380
ReactOS Portable Systems Group [Fri, 15 Feb 2008 19:01:45 +0000 (19:01 +0000)]
We now define KUSER_SHARED_DATA per architecture, since the address isn't portable. Now SharedUserData works on ARM.
Implemented KeAcquireInSTackQueuedSpinLock, KeAcquireInStackQueuedSpinLockRaiseToSYnc and KeReleaseInStackQueuedSpinLock based on x86 UP versions.
On ARM, the PCR is fully exposed, so some APIs are always-inlined direct-memory-access (unlike x86 which has the fs selector, and undocumented parts of the PCR). This means we can define several macros -- fixed the headers to allow this, by defining the previous stuff for x86 only.
Setup registry data in the ARM loader block.
The ARM port boots all the way through ExpInitializeExecutive until reaching MmInit1. The boot-registry is correctly loaded and parsed, as are NLS files!
svn path=/trunk/; revision=32379
Johannes Anderwald [Fri, 15 Feb 2008 18:42:24 +0000 (18:42 +0000)]
- declare variables as extern
- release desktop dc
See issue #3052 for more details.
svn path=/trunk/; revision=32378
Daniel Reimer [Fri, 15 Feb 2008 15:04:14 +0000 (15:04 +0000)]
Synched winhelp and wordpad to Wine 0.9.55.
To the translators that translated winhelp to Greek, Lithuan, Portugese and Ukrainian. Can you please send your translations to winehq? I will keep them anyway, but this way its easier to keep synched.
svn path=/trunk/; revision=32377
ReactOS Portable Systems Group [Fri, 15 Feb 2008 07:45:37 +0000 (07:45 +0000)]
We now setup NLS data in the loader block, as well as setup the minimal loader block extension fields to pass ExpIsLoaderValid validation.
svn path=/trunk/; revision=32376
ReactOS Portable Systems Group [Fri, 15 Feb 2008 07:44:42 +0000 (07:44 +0000)]
Sync with X86 build -- don't call MmInit1 so early anymore.
svn path=/trunk/; revision=32375
ReactOS Portable Systems Group [Fri, 15 Feb 2008 06:53:49 +0000 (06:53 +0000)]
Remove Ke386Pae conditionals from page code -- PAE is never turned on ReactOS (and probably wouldn't work), so there's no point in wasting CPU cycles and making the code even more unredable by having the PAE code there.
The PAE implementation has been moved to pagepae.c, in case someone will ever want to revive.
Even in that case, it's recommended to build two kernels like everyone else does, instead of doing runtime conditionals for every single page operation.
svn path=/trunk/; revision=32374
ReactOS Portable Systems Group [Fri, 15 Feb 2008 06:49:59 +0000 (06:49 +0000)]
Christ! Don't zero out the shared memory page during Virtual Memory initialization! The page is already well in-use by the time we were zeroing it out, and this is also the reason why all the attempts to move MmInit1 into MmInitSystem had previously failed -- the NtSystemRoot path would get written during initialization (But before MmInitSystem), and MmInit1 would then zero out the entire structure.
Not only does this allow us to do MmInit1 in MmInitSystem, where it should be, but it also fixes the fact that several KUSER_SHARED_DATA flags were being zeroed out.
As an added benefit, ARM/PPC ports now need to worry about Mm much later then before (well after the HAL has initialized and interrupts are enabled).
svn path=/trunk/; revision=32373
ReactOS Portable Systems Group [Fri, 15 Feb 2008 01:19:46 +0000 (01:19 +0000)]
Get rid of complete hack that MmInitializePageList was, and use the ARC Memory Descriptor Tree instead. No more magical assumptions about page numbers. No more BIOS Memory Map from FreeLDR. No more hard-coded/static addresses being pased from the bowels of FreeLDR to the kernel.
"Oh my God, I can't believe this is real."
We can now continue the ARM port since the ARM port uses real ARC memory descriptors and not the completely hacked up pages the kernel was previously crossing its fingers to get. As a side effect, this probably unblocks the final hurdle to get ReactOS booted by NTLDR.
svn path=/trunk/; revision=32372
ReactOS Portable Systems Group [Fri, 15 Feb 2008 01:04:22 +0000 (01:04 +0000)]
Fixed several off-by-one errors when playing with the PFN database array size. Among other things, certain valid pages would be considered invalid, and also the PFN database wouldn't be properly erased on startup (which would result in a crash after a warm reboot or restarting the emulator).
svn path=/trunk/; revision=32371
ReactOS Portable Systems Group [Fri, 15 Feb 2008 00:50:26 +0000 (00:50 +0000)]
Remove accidentally enabled debugging function, and apply the FreeLDR 6MB hack when building the ARC Memory Descriptor List as well. This will reflect the memory in use (thus representing the ARC-based glorious hack) when parsing the memory descriptor list, something we'll soon have to do in MmInitializePageList.
svn path=/trunk/; revision=32370
ReactOS Portable Systems Group [Fri, 15 Feb 2008 00:31:18 +0000 (00:31 +0000)]
Fixed some bugs we introduced by incorrectly double-accounting the PFN database. The database is *virtually* continous and follows the kernel address region, but not physically -- physically, it is at the very far end of memory.
Unfortunately, fixing this bug now caused any unused memory in the FreeLDR-mapped region of 6MB to appear...well...unused. This would normally be a good thing, except ReactOS started crashing.
We fixed it by applying the Glorious Hack. See freelist.c:359.
svn path=/trunk/; revision=32369
ReactOS Portable Systems Group [Thu, 14 Feb 2008 23:39:31 +0000 (23:39 +0000)]
Review and fix the buildingg and mapping of boot-time kernel address space.
The selection of the non-paged pool base address was broken (ion's comment was correct, but his implementation was not) -- NP pool now follows the PFN, or end of FreeLDR mapping area.
There was no reason to put paged pool at a 4MB boundary away from NP pool -- it now follows it immediately.
Got rid of multiple values which were calculated 3, even 4 times in a row, or even values that were calculated but never used (such as kernel_len).
Got rid of the shuffling back and forth of kernel and virtual start/end addresses. A global now keeps track of this, and MmInit1 is now solely responsible for assigning addresses to each kernel region.
Added new debug routine to show the kernel regions mapped -- enabled by default for now to visually detect any problems (once ReactOS's drivers go over 6MB, there may be).
svn path=/trunk/; revision=32368
ReactOS Portable Systems Group [Thu, 14 Feb 2008 22:34:50 +0000 (22:34 +0000)]
The system never considered "ReservedPages" as any different from "SystemPages", other than to spend the accounting time to mark these pages differently. Removed the notion of a reserved pages and count them as system pages instead.
svn path=/trunk/; revision=32367
Daniel Reimer [Thu, 14 Feb 2008 22:02:57 +0000 (22:02 +0000)]
reactivate kdbg.
svn path=/trunk/; revision=32366
ReactOS Portable Systems Group [Thu, 14 Feb 2008 21:19:30 +0000 (21:19 +0000)]
Don't allow code to access the PFN database directly -- instead, always go through MiGetPfnEntry to have a controlled path.
Add assertions to this function, to make sure PFN access is always valid (previous code would sometimes KEBUGCHECK(0) without a real explenation if such cases were encounted -- but developers randomly chose which functions would be protected).
Also, since PFNs are 0-based, do allow Pfn == MmPageArraySize if someone is reading the last PFN on the system.
Finally, protect some of the functions which were accessing the PFN entries outside the PFN list lock.
svn path=/trunk/; revision=32365
ReactOS Portable Systems Group [Thu, 14 Feb 2008 20:30:31 +0000 (20:30 +0000)]
One would expect that a function called "MmIsUsablePage" would return whether a not a page is usable. In other words, we are making sure that the page is free/available, so that we may make use of it. Apparently not so -- MmIsUsable page returned if a page was NOT usable, but was instead "already used". The caller's wish was to ensure he was correctly using a used page, not to check if he could start using a usable page. This would just be an annoying gramatical/logic error (but makes "sense" in the way it's used), if it weren't for the fact that MmIsUsablePage also returned TRUE for BIOS pages (which meant, "yes, you are correctly using/overwriting memory we spent time ensuring to mark as reserved/BIOS").
Renamed the function to MmIsPageInUse, and only return TRUE if the page is in use. Like the name says.
svn path=/trunk/; revision=32364
Aleksey Bragin [Thu, 14 Feb 2008 20:27:59 +0000 (20:27 +0000)]
- Load drivers database (AppPatch/drvmain.sdb), so Windows could use it if needed.
svn path=/trunk/; revision=32363
ReactOS Portable Systems Group [Thu, 14 Feb 2008 20:20:44 +0000 (20:20 +0000)]
Fix a couple of off-by-one bugs we recently introduced -- PFNs are one of the only indexes which are actually 0-based, so you really want to loop from 0 to the last page, inclusive (unlike most loops where you would stop *before* the last element index).
svn path=/trunk/; revision=32362
ReactOS Portable Systems Group [Thu, 14 Feb 2008 20:03:33 +0000 (20:03 +0000)]
Stop lying that the PCR, KUSER_SHARED_DATA, and PDEs are "BIOS" pages, they're USED pages.
Stop initializing fields to 0 if we've already cleared the entire array!
Stop setting arbitrary values for MapCount and ReferenceCount -- both the KPCR, KUSER_SHARED_DATA and PDE are mapped!
Stop saying Video ROM has a reference count, it's the same as BIOS memory, except the MiIsPfnRam function doesn't detect it and we have a hack for it.
svn path=/trunk/; revision=32361
ReactOS Portable Systems Group [Thu, 14 Feb 2008 19:24:02 +0000 (19:24 +0000)]
Prepare for getting rid of the Freelist hacks and use memory descriptors instead, by detecting the highest free memory descriptor, and allocating the page array PTEs from there (gets rid of the "LastPage" variable).
svn path=/trunk/; revision=32360
ReactOS Portable Systems Group [Thu, 14 Feb 2008 18:33:38 +0000 (18:33 +0000)]
We were looping the memory descriptors in order to find the number of pages that are available to the system, that is to say, your RAM, minus pages that the BIOS said belong to it. This part is good. Next up, we were creating the page array for these pages, up to the highest entry, which we called, the number of pages on the system. This is the problem. Suppose we had 1000 pages somewhere in low memory that were used by the BIOS, we'd now call the total pages RAM - 1000 (correct). However, we'd also set the highest page array entry to RAM - 1000, which is wrong, because esssentially this eats up 10MB of memory, since the top 10MB (which are FREE, usable memory) are never entered into the database. So really, what we want to do is differentiate the TOTAL amount of usable RAM, versus the HIGHEST page that is usable (which is actually what should be the highest entry in the page array). This will reclaim the lost RAM ReactOS has been eating up all these days. But it gets better: eventually, someone noticed ReactOS was eating memory, and added 1MB more to the "total", making the highest entry "1mb higher". This ...kind of... fixes the problem above by giving you one more MB, but what if ReactOS was only eating up 150KB, as was more the case? Then ReactOS would believe that the other 850KB of memory are "Free physical memory", when actually, they're pages that don't even exist. Wow!
Fixed these bugs.
svn path=/trunk/; revision=32359
ReactOS Portable Systems Group [Thu, 14 Feb 2008 16:59:14 +0000 (16:59 +0000)]
Why divide up the page array into chunks of 128 pages? Why have a nested loop to initialize system memory in chunks of 128 pages? Why zero the array entries in chunks of 128? The page array is now initialized by simply iterating every page on the system, and filling out its entry in the array.
Moved out the division calculations even one more step out of the loop -- now they're really calculated once, instead of 1000 times (an improvement over the 400000 times they were calculated previously).
svn path=/trunk/; revision=32358
ReactOS Portable Systems Group [Thu, 14 Feb 2008 16:40:32 +0000 (16:40 +0000)]
Don't loop the page array list THREE times to set it up, ONCE is plenty enough!
Remove the incomprehensible PFN allocation being done for the pages holding the page list array. We now: 1) Find the highest usable RAM page 2) Allocate the PTEs to hold the array from that point on and lower.
Don't do expensive divisions for every single page on the system being looped! Precompute the values ONCE.
Don't set the reference count for the KPCR and KUSER_SHARED_DATA to 0, these are LIVE pages!
Removed the hack which pre-initializes the balancer -- this isn't needed anymore since the initial PTEs are allocated always from RAM now.
Add some comments about the assumptions being made in this code regarding all PCs having the same kind of memory maps.
svn path=/trunk/; revision=32357
ReactOS Portable Systems Group [Thu, 14 Feb 2008 15:36:12 +0000 (15:36 +0000)]
The Memory Manager design dictated that every page must be on a linked list, so that it can be removed from that list when dereferenced, and inserted on the free list. This wasn't optimal, because the UsedPageListHead was actually not used for anything else than working set and user-page LRU. Nevertheless, every single page on the system would be on a list (such as the non-pool memory list), even if those lists were ignored. Those lists are all gone now, replaced by the UsedPageListHead. Likewise, the BIOS page list has also been removed.
svn path=/trunk/; revision=32356
Daniel Reimer [Thu, 14 Feb 2008 11:30:14 +0000 (11:30 +0000)]
Bug 3053: some slovak translations by Mario Kacmar - kario@szm.sk
Bug 3066: Recent usetup polish translation update by Olaf Siejka - olaf_siejka@o2.pl
svn path=/trunk/; revision=32355
ReactOS Portable Systems Group [Thu, 14 Feb 2008 04:44:51 +0000 (04:44 +0000)]
Remove more dead code from MmInit1. This nugget was trying to free memory allocations between 0x80F50000 and 0x80600000?
[FORMATTING] Make MmInitializePageList readable by human beings.
Remove code in MmInitializePageList which was just repeating what MmInit1 had already done (why?). Remove alignment code which was duplicated (why??).
svn path=/trunk/; revision=32354
ReactOS Portable Systems Group [Thu, 14 Feb 2008 04:28:41 +0000 (04:28 +0000)]
[FORMATTING] Reformat MmInit1.
Also, it seems someone added code to get the First/LastKernPhysAddrs without having them setup (they are setup by the FreeLDR hack-code in freeldr.c, not by "real" bootloaders)... so why set them up in the first place? The code now uses the nice memory-list based routines to get this information instead.
Re-factored some detection and debugging code, cleaned up comments.
svn path=/trunk/; revision=32353
ReactOS Portable Systems Group [Thu, 14 Feb 2008 03:08:20 +0000 (03:08 +0000)]
[FORMATTING] Remove dead code (#if 0) and re-organize the file to match kernel standard layout/style.
Get rid of old debugging hacks introduced by ion (rmapready, pageopready, pagingready).
svn path=/trunk/; revision=32352
ReactOS Portable Systems Group [Thu, 14 Feb 2008 02:33:42 +0000 (02:33 +0000)]
Don't overwrite the stacks anymore -- set the right pointer in the ARM loader block (remember that stacks are top-down!).
Make a specialized UNIMPLEMENTED for Mm code so we don't go too far into the boot with 100 failures hanging behind our backs, which makes it hard to debug progress.
svn path=/trunk/; revision=32351
ReactOS Portable Systems Group [Thu, 14 Feb 2008 02:25:25 +0000 (02:25 +0000)]
Say hello to 4KB pages! Removed bring-up 1MB page hacks all over FreeLDR, and setup the kernel pages the same way the x86 build does it -- 6MB from 0x80800000 to 0x80DFFFFF for kernel and drivers.
We still identity map the bottom 0MB of memory with a 1MB page, since this makes the most sense.
We now map the low 8MB of memory to 0x80000000-0x807FFFFF, also with 4KB pages. This area will be discardable after early-init, and contains the early boot structures allocated by FreeLDR.
The Loader Parameter Block and its Extension are now dynamically allocated, instead of being static inside FreeLDR.
Fixed some bugs in the ARM_PTE structure.
svn path=/trunk/; revision=32350
Marc Piulachs [Wed, 13 Feb 2008 21:00:33 +0000 (21:00 +0000)]
-'win32csr' and 'access' localizations by Javier Ramacha
See issue #3028 for more details.
svn path=/trunk/; revision=32349
Johannes Anderwald [Wed, 13 Feb 2008 17:51:41 +0000 (17:51 +0000)]
- use tchar
- rename dialog to win xp sp2+ name
svn path=/trunk/; revision=32348
Dmitry Chapyshev [Wed, 13 Feb 2008 17:09:51 +0000 (17:09 +0000)]
- Fix build
svn path=/trunk/; revision=32347
Dmitry Chapyshev [Wed, 13 Feb 2008 16:46:28 +0000 (16:46 +0000)]
- Add winhttp.dll from Wine
- Add winhttp.h from Wine
- Add rbuild file for winfax.dll
- Add winhttp and winfax to bootcd
svn path=/trunk/; revision=32346
Dmitry Chapyshev [Wed, 13 Feb 2008 15:38:05 +0000 (15:38 +0000)]
- Update Russian translation
svn path=/trunk/; revision=32345
Dmitry Chapyshev [Wed, 13 Feb 2008 15:37:13 +0000 (15:37 +0000)]
- Synced wine head
svn path=/trunk/; revision=32344
Dmitry Chapyshev [Wed, 13 Feb 2008 15:34:50 +0000 (15:34 +0000)]
- Update Russian translation
- Fix typos
svn path=/trunk/; revision=32343
ReactOS Portable Systems Group [Wed, 13 Feb 2008 06:43:36 +0000 (06:43 +0000)]
Convert all Mm ASM stubs to C stubs in mm/arm/stubs.c. Now we can see what functions are called.
svn path=/trunk/; revision=32342
ReactOS Portable Systems Group [Wed, 13 Feb 2008 05:16:14 +0000 (05:16 +0000)]
Add /arm tree for Memory Manager and stub MmUpdatePageDir in C.
Add exp.c for ARM. Stub out KeContextToTrapFrame in C.
Add thrdini.c for ARM and implement KeArmInitThreadWithContext -- may require changes if the exception frame structure isn't preserving all we need. Stub out KiThreadStartup in C.
svn path=/trunk/; revision=32341
ReactOS Portable Systems Group [Wed, 13 Feb 2008 05:11:35 +0000 (05:11 +0000)]
HalInitializeProcessor has no work to do on ARM
svn path=/trunk/; revision=32340
ReactOS Portable Systems Group [Wed, 13 Feb 2008 05:11:12 +0000 (05:11 +0000)]
Kill PSEH on ARM
svn path=/trunk/; revision=32339
ReactOS Portable Systems Group [Wed, 13 Feb 2008 05:10:45 +0000 (05:10 +0000)]
First attempt at ARM Exception Frame structure definition
svn path=/trunk/; revision=32338
ReactOS Portable Systems Group [Wed, 13 Feb 2008 04:58:43 +0000 (04:58 +0000)]
Just return FALSE in KDCOM on ARM, instead of freezing.
svn path=/trunk/; revision=32337
Timo Kreuzer [Wed, 13 Feb 2008 00:46:23 +0000 (00:46 +0000)]
Big ntuser fix:
- rename ObmXxx functions to UserXxx functions
- remove some macros
- move prototypes to object.h
- implement UserreferenceObjectByHandle creating a reference to the object, used for cursoricon stuff so far
- rewrite object manager functions to reasonably handle references
- dereference cursoricons correctly, so they will really get deleted -> fixes a cursoricon leak
- destroy submenus in NtUserDestroyMenu -> fixes a big menu leak
- free the buffer of the menu text -> fixes a mem leak
- delete old bitmaps in NtUserSetCursorContent -> fixes a bitmap leak
- delete monitor object on failure
Now taskmgr doesn't leak memory anymore. we still leak some user handles here and there even after terminating a process, but it's much better now.
svn path=/trunk/; revision=32336
Timo Kreuzer [Tue, 12 Feb 2008 23:14:07 +0000 (23:14 +0000)]
BITMAPOBJ_CopyBitmap:
- release lock on failure
- delete created bitmap on failure
- copy flags, fixes a memory leak
svn path=/trunk/; revision=32335
ReactOS Portable Systems Group [Tue, 12 Feb 2008 22:50:54 +0000 (22:50 +0000)]
We now have a good initialization routine for ARM. We call HalInitializeProcessor (TBD) to setup the board, then we configure the PRCB and PCR. We also setup some global CPU variables and setup minimal interrupt support. The rest of the code follows the x86 design (Create initial thread/process).
There's now a cpu.c for ARM as well, and the cache routines are now there.
KDCOM APIs were marked as kernel stubs, so the kernel was never linking with kdcom. This has been fixed, and boot now stops in kdcom!KdPortInitializeEx since there's no ARM-compatible code.
svn path=/trunk/; revision=32334
ReactOS Portable Systems Group [Tue, 12 Feb 2008 20:32:23 +0000 (20:32 +0000)]
Added cache sweeping code into the HAL, for ARM926EJ-S and ARM1026EJ-S CPUs.
Finished implementation of KiSystemStartup.
Copied KiInitializeKernel from x86 to ARM, removing irrelevant parts. This is our current checkpoint.
svn path=/trunk/; revision=32333
ReactOS Portable Systems Group [Tue, 12 Feb 2008 19:01:48 +0000 (19:01 +0000)]
QEMU doesn't support TLB Lockdown, so we now use a hack for QEMU and broken CPUs [albeit a portable one ;-)]. PCR access in usermode/kernelmode works.
We now have HalSweepI/Dcache APIs exported and stubbed in the ARM HAL (great, since UNIMPLEMENTED macro now works).
We now setup more of the PCR, including all the cache values required, then we call the HAL sweep functions (TBD).
svn path=/trunk/; revision=32330
Christoph von Wittich [Tue, 12 Feb 2008 18:49:20 +0000 (18:49 +0000)]
fix some memory and resource leaks
fixes by janderwald and myself
svn path=/trunk/; revision=32329
ReactOS Portable Systems Group [Tue, 12 Feb 2008 18:34:33 +0000 (18:34 +0000)]
Fixed some bugs in KeFillFixedEntryTb -- we actually needed to map the PTE into memory (then we can umap it).
We were doing the initial PCR/PDR page allocation completely wrong since we're using 1MB section pages, not 4KB pages (this needs to be fixed later).
Piggyhack arm_kprintf on top of DebugService which we now define. DPRINT1 and ASSERT now work!
Send ARC paths and normalized command-line in the loader parameter block.
Current state:
FreeLoader v3.0 for ARM
Bootargs: rdbase=0x2000000 rdsize=0x1400000
Detecting Hardware...
Loading...
Reading NTOSKRNL.EXE
Reading BOOTVID.DLL
Reading HAL.DLL
Reading HAL.DLL
Reading c_1252.nls
Reading c_437.nls
Reading l_intl.nls
Reading scsiport.sys
Reading atapi.sys
Reading buslogic.sys
Reading pci.sys
Reading class2.sys
Reading disk.sys
Reading vfatfs.sys
Reading ndis.sys
Mapped serial port to 0xc00f1000
(ntoskrnl/ke/arm/kiinit.c:135) -----------------------------------------------------
(ntoskrnl/ke/arm/kiinit.c:136) ReactOS 0.4-SVN (Build
20080207-r32151)
(ntoskrnl/ke/arm/kiinit.c:137) Command Line: DEBUG DEBUGPORT=COM1 BAUDRATE=115200 SOS
(ntoskrnl/ke/arm/kiinit.c:138) ARC Paths: ramdisk(0) \ ramdisk(0) \ReactOS\
svn path=/trunk/; revision=32328
ReactOS Portable Systems Group [Tue, 12 Feb 2008 17:45:58 +0000 (17:45 +0000)]
Added arm_kprintf() for early kernel debugging (ARM bringup).
Freeldr maps the "Versatile"'s serial port into virtual
memory now, and C code can just use arm_kprintf().
This is not code that is supposed to remain in the kernel,
it's only needed for bringup, until enough is working so
that standard serial DbgPrint() works through the original
code path.
svn path=/trunk/; revision=32327
Gregor Brunmar [Tue, 12 Feb 2008 17:30:32 +0000 (17:30 +0000)]
Implemented IDirect3D9::GetAdapterDisplayMode()
svn path=/trunk/; revision=32326
Daniel Reimer [Tue, 12 Feb 2008 17:00:09 +0000 (17:00 +0000)]
Hopefully the last String. Translators. Your turn.
svn path=/trunk/; revision=32325
ReactOS Portable Systems Group [Tue, 12 Feb 2008 16:32:13 +0000 (16:32 +0000)]
Fix comments in ksarm.h -- they must be C89.
svn path=/trunk/; revision=32324
ReactOS Portable Systems Group [Tue, 12 Feb 2008 16:22:01 +0000 (16:22 +0000)]
Write initialization code in assembly -- we load the kernel stack from FreeLDR and jump to C code.
We now have a file for C-code initialization (no reason to use assembly).
We now have some basic TLB routines and intrinsics (not tested).
We also detect if we are running on V4 or V6, and set the TLB and ASID counts respectively.
svn path=/trunk/; revision=32323
Daniel Reimer [Tue, 12 Feb 2008 14:52:36 +0000 (14:52 +0000)]
Beginnings to allow to translate all other Strings. Translators, PLEEASE wait until I am ready before you file Bugs, you can already start to translate, but do not post Bugreports until I am ready adding the last hidden ones.
Thanks to Johannes Anderwald for explaining me why it made more Problems than fix stuff to translate some strings and how to fix it.
svn path=/trunk/; revision=32322
Aleksey Bragin [Tue, 12 Feb 2008 13:34:33 +0000 (13:34 +0000)]
- Kernel's entrypoint is called NtProcessStartup right now, for ReactOS. If this is to be changed, it should be changed for all archs, not only for ARM.
svn path=/trunk/; revision=32321
Johannes Anderwald [Tue, 12 Feb 2008 12:18:23 +0000 (12:18 +0000)]
- pass the correct path to _strip_gcc_deffile
- automatically create directories for converted def files
- fixes auto-def file generation
svn path=/trunk/; revision=32320
Hervé Poussineau [Tue, 12 Feb 2008 11:16:05 +0000 (11:16 +0000)]
Fix assertion is pci/fdo.c
svn path=/trunk/; revision=32319
ReactOS Portable Systems Group [Tue, 12 Feb 2008 09:41:21 +0000 (09:41 +0000)]
We now define the cache and id registers in CP15 (C0 Opcode 0 and 1).
We now setup ARM cache information in the loader block.
We now allocate the kernel, interrupt and abort stacks, as well as the idle thread and process, and boot PRCB.
We now allocate the PCR and PDR pages.
We now send the command line to the kernel in the LoaderBlock's load options.
svn path=/trunk/; revision=32318
Daniel Reimer [Tue, 12 Feb 2008 08:44:41 +0000 (08:44 +0000)]
Bug 3053: some slovak translations by Mario Kacmar, kario@szm.sk
Bug 3051: Italian resources update by Paolo Devoti, devotip@tiscali.it
svn path=/trunk/; revision=32317
ReactOS Portable Systems Group [Tue, 12 Feb 2008 06:51:39 +0000 (06:51 +0000)]
Real fix, this time, hopefully.
svn path=/trunk/; revision=32316
ReactOS Portable Systems Group [Tue, 12 Feb 2008 06:38:41 +0000 (06:38 +0000)]
Fix for x86 build.
svn path=/trunk/; revision=32315
ReactOS Portable Systems Group [Tue, 12 Feb 2008 06:15:35 +0000 (06:15 +0000)]
The kernel entrypoint is called KiSystemStartup, not NtProcessStartup.
On ARM, don't prepend underscore to the kernel entrypoint.
We now correctly jump into the kernel entrypoint, instead of random code!
svn path=/trunk/; revision=32314
ReactOS Portable Systems Group [Tue, 12 Feb 2008 05:55:12 +0000 (05:55 +0000)]
Move the entrypoint and startup code in boot.s.
Write ksarm.h and kxarm.h headers, defining the ARM Assembly ABI.
Rewrite the ARM assembler files we currently have to match the ABI.
svn path=/trunk/; revision=32313
ReactOS Portable Systems Group [Tue, 12 Feb 2008 05:07:08 +0000 (05:07 +0000)]
fixed math
svn path=/trunk/; revision=32312
ReactOS Portable Systems Group [Tue, 12 Feb 2008 04:22:39 +0000 (04:22 +0000)]
Better organize FreeLDR ARM files -- there are no more stubs now. We have the ReactOS kernel loader in loader.c, just like on x86, and the ARM FreeLDR HAL/Mach routines in macharm.c
svn path=/trunk/; revision=32311
ReactOS Portable Systems Group [Tue, 12 Feb 2008 04:15:53 +0000 (04:15 +0000)]
We now have the ARM defines/structures in stubs.c in FreeLDR in more appropriate kernel headers. This is just cleanup work.
svn path=/trunk/; revision=32310
ReactOS Portable Systems Group [Tue, 12 Feb 2008 03:06:06 +0000 (03:06 +0000)]
Fix the build.
Your friendly ARM ninjas apologize.
svn path=/trunk/; revision=32309
ReactOS Portable Systems Group [Mon, 11 Feb 2008 23:47:43 +0000 (23:47 +0000)]
Fix a couple of MMU bugs (incrementing the base address before writing the PTE and using the wrong start base address).
Virtual memory now works!
FreeLDR now boots into the kernel, at 0x80801000, in KiSystemStartup!
svn path=/trunk/; revision=32308
ReactOS Portable Systems Group [Mon, 11 Feb 2008 22:17:15 +0000 (22:17 +0000)]
We define a region in FreeLDR where we store the initial TTB. We have to align it at a 16KB boundary, and ld loves to crash with such big alignment, so wee manually define it to load at 0x50000. Pray FreeLDR never gets that big (you'd think LD would warn if that section is overwriting others).
Wrote a guideline for what ArmPrepareForReactOS should do and defined the initial ARM loader block and extension.
Wrote the initial MMU code. It's totally busted but after 3 hours of debugging, it doesn't abort anymore!
Cleanups TBD.
svn path=/trunk/; revision=32307
ReactOS Portable Systems Group [Mon, 11 Feb 2008 22:13:35 +0000 (22:13 +0000)]
FORCEINLINE is a lot more...forcefull... now ;-). Previous version didn't always inline as requested.
svn path=/trunk/; revision=32306
ReactOS Portable Systems Group [Mon, 11 Feb 2008 20:15:16 +0000 (20:15 +0000)]
We now support the ARM Versatile/PB platform, which means qemu-system-arm -M versatilepb is now able to emulate the ARM build of ReactOS.
We now support the PL011 UART, required for console output on the Versatile.
We now define the ARM_LOADER_BLOCK structure, to be used later when FreeLDR passes control to the kernel.
svn path=/trunk/; revision=32305
Christoph von Wittich [Mon, 11 Feb 2008 19:16:02 +0000 (19:16 +0000)]
fix some warnings in msvc build
svn path=/trunk/; revision=32304
Aleksey Bragin [Mon, 11 Feb 2008 17:45:56 +0000 (17:45 +0000)]
- Minor cleanup.
See issue #3054 for more details.
svn path=/trunk/; revision=32302