Peter Elliott
7a27fa3df8
LibC: Implement tcflush(3)
2020-07-11 11:33:33 +02:00
Andreas Kling
f4ddca0a73
UserspaceEmulator: Warn in SoftMMU if accessing unknown memory
2020-07-10 20:29:44 +02:00
Andreas Kling
58fd010caf
UserspaceEmulator: Implement a bunch of the MOV instructions
2020-07-10 20:29:14 +02:00
Andreas Kling
04d58f54b3
UserspaceEmulator: Implement the SAR instruction
...
Let's try doing this with some inline assembly. We know we're running
on an x86 target anyway. :^)
2020-07-10 20:20:27 +02:00
Andreas Kling
3899effb19
UserspaceEmulator: Implement the SUB family of instructions
2020-07-10 20:20:27 +02:00
Andreas Kling
0cf7fd5268
UserspaceEmulator+LibX86: Implement all the forms of XOR
...
And they're all generic, which will make it easy to support more ops.
2020-07-10 20:20:27 +02:00
Andreas Kling
9955819d92
UserspaceEmulator: Better 8/16 bit GPR accessors
2020-07-10 20:20:27 +02:00
Andreas Kling
6f27770cea
UserspaceEmulator: Add 8/16 bit memory read/write operations
2020-07-10 20:20:27 +02:00
Andreas Kling
f8b38eabeb
UserspaceEmulator: First cut of generic instruction implementations
...
Let's use C++ templates to implement the generic parts of instructions.
There are tons of them with the same set of inputs, just different
behavior. Templates are perfect for this.
2020-07-10 20:20:27 +02:00
Andreas Kling
30ef30ca09
UserspaceEmulator: Add proper segment registers
...
Some things will flow better if we're able to index into a table of our
segment registers.
2020-07-10 20:20:27 +02:00
Andreas Kling
4f41fada39
UserspaceEmulator: Add accessors for the 16-bit GPRs
2020-07-10 20:20:27 +02:00
Andreas Kling
45bfdd0063
LibX86: Add a templatized way to resolve ModR/M memory references
...
Hopefully this will be flexible enough for our SoftCPU. :^)
2020-07-10 20:20:27 +02:00
Andreas Kling
3a1cf9505d
LibX86: Store Instruction's segment prefix as Optional<SegmentRegister>
...
Instead of having a dedicated enum value for the empty state.
2020-07-10 20:20:27 +02:00
Andreas Kling
f1801cfb28
UserspaceEmulator: Fix a Clang warning
...
Clang didn't like default construction of PartAddressableRegister,
so let's just use memset() then.
2020-07-10 20:20:27 +02:00
thankyouverycool
deceb91c48
FileManager: Show an open folder icon for the selected directory
...
The currently selected directory now displays an open folder icon
in the directory tree.
2020-07-10 19:44:18 +02:00
thankyouverycool
e6ddc7e022
LibGUI: Add missing on_toggle hook to TreeView
...
Alt+arrow toggles are now captured.
2020-07-10 19:44:18 +02:00
thankyouverycool
bd0a4cbbf9
Base: Update 16x16 filetype-folder icons
...
Update folder-open icon to match current folder icon, and shift
the current folder icon right 1 pixel for smoove animation.
2020-07-10 19:44:18 +02:00
Matthew Olsson
119386ffb0
LibJS: Add tests for symbol object integration
2020-07-09 23:33:00 +02:00
Matthew Olsson
7a1d485b19
LibJS: Integrate Symbols into objects as valid keys
...
This allows objects properties to be created for symbol keys in addition
to just plain strings/numbers
2020-07-09 23:33:00 +02:00
Matthew Olsson
9783a4936c
LibJS: Add test for well-known symbols
2020-07-09 23:29:28 +02:00
Matthew Olsson
ffb569fd5d
LibJS: Uncomment remaining symbol tests
2020-07-09 23:29:28 +02:00
Matthew Olsson
d9db6bec42
LibJS: Move global symbol map from SymbolObject to Interpreter
...
This allows different instances of the Interpreter to have their own
global symbols. Also makes Symbol non-copyable and non-moveable.
2020-07-09 23:29:28 +02:00
Andreas Kling
4d8683b632
UserspaceEmulator: Tidy up SoftCPU's general purpose registers
...
This patch adds a PartAddressableRegister type, which divides a 32-bit
value into separate parts needed for the EAX/AX/AL/AH register splits.
Clean up the code around register access to make it a little less
cumbersome to use.
2020-07-09 23:27:50 +02:00
Tom
b02d33bd63
Kernel: Fix some flaws that caused crashes or hangs during boot
...
We need to halt the BSP briefly until all APs are ready for the
first context switch, but we can't hold the same spinlock by all
of them while doing so. So, while the APs are waiting on each other
they need to release the scheduler lock, and then once signaled
re-acquire it. Should solve some timing dependent hangs or crashes,
most easily observed using qemu with kvm disabled.
2020-07-09 23:24:55 +02:00
Tom
5d9ea2c787
Shell: Pledge sigaction
...
The shell is wiring up signal handlers, and when they get torn
down by Core::EventLoop, they are reset, which requires sigaction.
2020-07-09 21:58:07 +02:00
Tom
6dfd503518
Shell: Handle signals asynchronously
...
Fixes #2717
2020-07-09 21:58:07 +02:00
Tom
6751d03ea7
LibCore: Add register_signal and unregister_signal to EventLoop
...
This allows safer asynchronous handling of signals. Signals are
dispatched with highest priority.
2020-07-09 21:58:07 +02:00
Tom
dadd53e4f2
AK: HashTable/HashMap return whether action was performed for set/remove
...
This allows performing an action based on whether something
was actually added or removed without having to look it up
prior to calling set() or remove().
2020-07-09 21:58:07 +02:00
Tom
df54229954
LibVT: Set scrollbar page size
2020-07-09 21:56:45 +02:00
Tom
fc568ea13a
LibGUI: Make scrollbar thumb size relative to content size
...
In order to calculate a thumb size that is a representation
of the visible portion (page) of the content, that information
needs to be taken into account.
2020-07-09 21:56:45 +02:00
Tom
6df87b51f7
Kernel: Protect Inode list with SpinLock ( #2748 )
...
Fixes crashes when a context switch happens in the middle
of modifying it, or when another thread on another processor
modifies it at the same time.
2020-07-09 21:51:58 +02:00
Tom
d4b87fb18e
LibGUI: Implement IconView auto-scrolling when trying to select items out of view
...
If selecting in a large icon view, and dragging the mouse outside
of the widget, or close to the border of it, start scrolling
automatically. This allows for selecting large amount of items
that exceed the amount that can be displayed.
2020-07-09 21:51:01 +02:00
Andreas Kling
d10765bec3
UserspaceEmulator: Add an initial stack and implement PUSH/POP reg32
...
Programs now start out with a 64 KB stack at 0x10000000. :^)
2020-07-09 16:20:08 +02:00
Andreas Kling
d5c46cf528
UserspaceEmulator: Start sketching out a SoftMMU class :^)
...
This Emulator sub-object will keep track of all active memory regions
and handle memory read/write operations from the CPU.
A memory region is currently represented by a virtual Region object
that can implement arbitrary behavior by overriding read/write ops.
2020-07-09 16:18:47 +02:00
Andreas Kling
3a73fdd244
UserspaceEmulator: Start executing in _start() instead of main()
...
This is one step closer to the real thing. :^)
2020-07-09 15:47:10 +02:00
thankyouverycool
066ae29c07
Base+Demos: Add icons to WidgetGallery
2020-07-08 23:48:26 +02:00
Tom
ce5ae83963
Kernel: Detect syscall/sysenter support
2020-07-08 23:47:36 +02:00
Kevin Meyer
5b6920a18a
LibWeb: Don't call did_layout in non-main frame documents
...
Fixes https://github.com/SerenityOS/serenity/issues/2649
Loading a page with iframes could lead to a scenario, where the iframe
document finished layout prior to the main frame beeing laid out
initially. This caused a crash/assertion of the browser.
2020-07-08 23:45:12 +02:00
Kevin Meyer
a5b8cc2d0b
LibWeb: Add type for FrameLoader::load
...
This should enable to destinguish between IFrame, Reload and Navigation
motivated loads in order to call the appropriate hooks.
This change is motivated as loading the IFrame test page causes the
IFrame url to be added to the history and shows up as the current
browser location bar.
2020-07-08 23:45:12 +02:00
Nico Weber
6105f063cb
LibLine: Add ctrl-t shortcut for transposing characters
2020-07-07 23:13:25 +02:00
Linus Groh
ec5845212d
WindowServer: Apply the "wait" cursor to unresponsive windows
2020-07-07 23:11:39 +02:00
Linus Groh
e99cb74a0c
WidgetGallery: Add "Cursors" tab
2020-07-07 23:11:39 +02:00
Linus Groh
899dcba158
WindowServer+LibGUI: Add "wait" cursor
2020-07-07 23:11:39 +02:00
Linus Groh
b8a8e417f1
WindowServer+LibGUI: Add "help" cursor
2020-07-07 23:11:39 +02:00
Linus Groh
b86a59ec05
LibGUI: Use Resize{Column,Row} cursor for Splitter and AbstractTableView
2020-07-07 23:11:39 +02:00
Linus Groh
62866208ee
WindowServer+LibGUI: Add "resize row/column" cursors
2020-07-07 23:11:39 +02:00
Nico Weber
2dd40aac4d
Piano: Make menu bar consistent with other apps
...
"Help" should be after "Edit".
The "Quit" menu item should be at the end of the app menu, and
after a separator.
2020-07-07 23:11:08 +02:00
AnotherTest
173effc88d
Shell: Suggest aliases when completing program names :^)
...
Closes #2732
2020-07-07 23:11:01 +02:00
Andreas Kling
8ab601f9e1
UserspaceEmulator: Implement XOR_RM32_reg32
...
Note that this is a partial implementation since we don't have support
for memory r/m variants yet.
2020-07-07 22:44:58 +02:00
Andreas Kling
934f0b999e
UserspaceEmulator: Add arithmetic CPU flags
2020-07-07 22:44:58 +02:00