Commit Graph

44667 Commits

Author SHA1 Message Date
Michael Lotz
83f7c22537 Reuse get_or_create_page_table() and remove similar add_page().
The former also does the initialization, simplifying the code and
reducing redundancy with the page directory init path.
2012-12-04 23:38:05 +01:00
Michael Lotz
a438da7c8b Clear the page tables on creation, use macros for counts.
This makes it less likely that uninitialized entries cause troubles.
Also panic if we encounter an unknown entry type instead of defaulting
to 4K pages.
2012-12-04 23:38:04 +01:00
Michael Lotz
89564c0a10 Simplify the page directory init loops.
Also check and possibly reuse an existing page directory entry. This
makes the possible memory maps a little more flexible.
2012-12-04 23:38:04 +01:00
Michael Lotz
50c463f4f1 Header cleanup, rename macros for more consistency. 2012-12-04 23:38:03 +01:00
Michael Lotz
3d4175bfe1 Map the page directory before turning on the MMU.
And actually use the virtual address for it later on. This wasn't
problematic as the virtual and physical addresses are identity mapped,
but it seems more correct to do it in this order.
2012-12-04 23:37:18 +01:00
Michael Lotz
0deac574bd Simplify, don't do the calculation twice. 2012-12-04 23:36:09 +01:00
Michael Lotz
05893479e3 Style cleanup only. 2012-12-04 23:36:09 +01:00
Michael Lotz
eca34ad168 Print page and cache using initial commands in panic message. 2012-12-04 23:36:09 +01:00
Michael Lotz
d50875de46 Use format macros in debug output. 2012-12-04 23:36:08 +01:00
Michael Lotz
333883485c Rephrase the debug output, it is not that early anymore. 2012-12-04 23:36:08 +01:00
Michael Lotz
2dcc1cfeb9 Remove test pattern that is no longer needed. 2012-12-04 23:36:08 +01:00
Michael Lotz
67d9fcc3ba Whitespace cleanup, no functional change. 2012-12-04 23:35:40 +01:00
Alexander von Gluck IV
7271621fbe Terminal: Spice up terminal color scheme selection 2012-12-04 17:07:35 +00:00
Alexander von Gluck IV
a2b5d15aef Terminal: Ensure changing color schema modifies cursor
* Really fixes #8256
2012-12-04 16:21:40 +00:00
Rene Gollent
ede21af844 Implement special handling for BObjectList.
- BListValueNode now also handles BObjectLists. In the latter's case
  however, it uses the template type parameters to map the array
  elements to their actual type. As before, this requires a debug
  libbe to function.
2012-12-03 22:00:54 -05:00
Rene Gollent
ada60b4e3d Rework handling of template parameters.
- Keep a unified list in DIEClassBaseType so that the order
  of template parameters is preserved in cases when type and
  value parameters are mixed. Thanks Ingo for the hint.

- Introduce new base Type TemplateParameter, which represents either
  a template type or template value parameter, a list of which is
  attached to CompoundType.

- Add DwarfTemplateParameter implementing subclass of TemplateParameter
  and adjust DwarfTypeFactory accordingly for the above changes.
2012-12-03 20:58:09 -05:00
Rene Gollent
ce6b908edb Extend CompoundType to handle template parameters.
- Adjust CompoundType to add accessors for template type and value
  parameters.
- Add DwarfCompoundType/DwarfTypeFactory handling for template
  template type parameters.
2012-12-02 22:09:24 -05:00
Rene Gollent
07eedfea60 Store template parameters for DIEClassBaseType. 2012-12-02 22:08:38 -05:00
Rene Gollent
05b08d47fd GCC2 build fix. 2012-12-02 15:32:46 -05:00
Rene Gollent
fad00fb02a Add type handler and corresponding value node for BList.
- When a debugging libbe is present, and a BList is encountered,
  we now read its internal structure and expose it as if it were an
  array of pointers. Combined with typecasting, this means one can
  now easily inspect the content of such a list.
2012-12-02 15:26:19 -05:00
Rene Gollent
5ad3b800d5 Fix incorrect matching logic.
- Would lead to the wrong type potentially being matched since name
  comparison would be skipped.
2012-12-02 15:26:19 -05:00
Axel Dörfler
eb8a124325 bfs_tools: recover is now using a set to reduce memory.
* The hashtable stored complete Inode objects (albeit without the actual block).
* Now we only store the block_run which should reduce the memory footprint
  considerably; before "recover" could easily run out of memory. In any case,
  a 64 bit version would still make sense to have :-)
* Saved an extra hash table traversal by counting the node types directly.
* This isn't that well tested yet, though.
2012-12-02 21:03:44 +01:00
Axel Dörfler
fd919c2c1a bfs_tools: Disk is now using a BBufferIO.
* Automatic whitespace cleanup.
2012-12-02 21:03:43 +01:00
Axel Dörfler
91d335e0b7 Automatic whitespace cleanup. 2012-12-02 21:03:42 +01:00
Axel Dörfler
772c9704b9 Added Hashtable::Size() method.
* Automatic whitespace cleanup.
2012-12-02 21:03:41 +01:00
Siarzhuk Zharski
2ede175119 Small refactoring of Expander and AboutSystem GCI patches.
* Fix excessive snprintf in SystemAbout kernel build date/time;
* Create destination folder message adjusted with HIG requirements;

Thanks for pointing out, Landon Fuller and Pulkomandy.
2012-12-02 17:58:06 +01:00
Humdinger
1789de431c Left-aligned Eject-checkbox in mount settings
Thanks to diver.
2012-12-02 14:53:20 +01:00
Sergei Reznikov
6189b5a12f Add B_NOT_CLOSEABLE|B_NOT_MINIMIZABLE to ScreenSaverWindow
Yet another screensaver password hack prevented. Yet another
attempt to close #9196 is made.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-12-02 13:51:50 +01:00
Przemysław Buczkowski
cb65bb8732 Create dest. folder if it haven't existed. Fixes #8519
That was implemented during completing GCI 2012 task.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-12-02 13:43:00 +01:00
Sergei Reznikov
d3144dd06b Make ScreenSaverWindow B_NOT_MOVABLE-prevent password hack
Fixes #9196

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-12-02 11:53:12 +01:00
Przemysław Buczkowski
2b754fc1fa Localize Kernel build date/time. Fixes #9230.
This task was completed during GCI 2012

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-12-02 11:04:45 +01:00
Alexander von Gluck IV
64e07c0f38 swpipe: Manage viewport, resize on change.
* Untested until rendering works
2012-12-02 00:23:53 +00:00
François Revol
c9bb94092f U-Boot: cleanup
Remove commented asm code. We should use the U-Boot API later on.
2012-12-01 23:56:05 +01:00
François Revol
218af294af arm: Move spin() stub to the raspberry_pi cpu.cpp
This unbreaks the U-Boot build, since we already have spin()
in cpu.cpp there, for future implementation using the U-Boot API.
2012-12-01 23:56:05 +01:00
Alexander von Gluck IV
f2e7bd18c1 swpipe: Add llvm check. (prep for llvm 3.2 release) 2012-12-01 13:25:59 -06:00
Alexander von Gluck IV
28108f3884 swpipe: Fix reversed buffers 2012-12-01 12:04:13 -06:00
Alexander von Gluck IV
32aab0863c swpipe: Flush color buffers (and z buffer?)
* Take bitmap passed via private pointer and copy data
  into context BBitmap
* Not 100% sure if z buffer needs flushed as well.
2012-12-01 11:45:18 -06:00
Rene Gollent
1e11702f96 Fix #9247.
- If a program crashed due to an invalid function pointer, the stack
  was being incorrectly unwound such that the top frame would actually
  be skipped, preventing one from seeing the actual line of code that
  invoked said pointer. On x86, we now check if the IP of the top frame
  of the stack lies at a readable location in order to catch this case.
2012-12-01 10:04:23 -05:00
Niels Sascha Reedijk
e66ebcee27 Update translations from Pootle 2012-12-01 06:44:06 +01:00
Rene Gollent
ea788ed9cb Correction to previous leak fix.
- The actual reason the hidden node wasn't being released as expected
  was that ContainerListener::ModelNodeHidden() added a reference on
  behalf of its indirect target, while the latter never actually
  took ownership of said reference.
2012-11-30 21:15:57 -05:00
Rene Gollent
f4621a90de Don't leak the hidden child if present. 2012-11-30 20:55:54 -05:00
Rene Gollent
6be1e373d5 Fix typecasting in address->compound node case.
- In the special case of an address node with a hidden child, we
  must send notifications for removal of the hidden compound's
  children rather than for the hidden node itself. Otherwise the
  base TreeTable's state gets out of sync, leading to a crash when
  attempting to typecast such a node.
2012-11-30 20:23:39 -05:00
Matt Madia
9010bda0c8 Update VL-Gothic fonts to version 20121109. Closes #9130. 2012-11-30 20:17:39 -05:00
Rene Gollent
86f0f139a9 Fix kernel build with KDEBUG_LEVEL 0. 2012-11-30 18:23:15 -05:00
Michael Lotz
fed8bb7dff Fix index range for ARM MMU coarse page tables.
As there are only 8 bits for the index in the coarse page table entries
the maximum index is 256. This makes us correctly move to the next page
directory once we've run through all entries. Fixes missing unmap of
pages that crossed that boundary and consequent panic "page still has
mappings" when the page was removed from a cache.
2012-11-30 22:09:07 +01:00
Axel Dörfler
587cd228ba Fixed regression: Terminal cursor color is back to black. 2012-11-30 13:42:00 +01:00
Axel Dörfler
f0ae953990 Added libmedia.so, ActivityMonitor, and Sudoku to the 64 bit image. 2012-11-30 13:16:38 +01:00
Axel Dörfler
332cc6bc3b 64 bit fixes for libmedia.so, ActivityMonitor, and Sudoku.
* Alex, I feel your pain :-)
2012-11-30 13:16:38 +01:00
John Scipione
8f6542aa68 Fix build with FAKE_HARDWARE_CURSOR_SUPPORT turned on
by adding the const specifier to the uint8* parameters of the
prototypes of the vesa_set_cursor_shape and vesa_set_cursor_bitmap
functions.

Thanks looncraz for pointing this out.
2012-11-29 12:49:34 -05:00
Rene Gollent
4e9b38d34e Fix #9221.
- When an image creation notification is received, the thread
  that provoked it needs to be suspended until the debugger has
  finished loading the image's debug information. Otherwise, if that
  image had a breakpoint in it, it was possible that the thread would
  execute past the code where the breakpoint should be before the
  debugger had a chance to actually install it.

- Only update breakpoints when debug info loading has actually finished.
2012-11-29 08:12:49 -05:00