mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57:35 +00:00
Kernel: Require lock rank for Spinlock construction
All users which relied on the default constructor use a None lock rank for now. This will make it easier to in the future remove LockRank and actually annotate the ranks by searching for None.
This commit is contained in:
parent
4809dc8ec2
commit
4314c25cf2
59 changed files with 87 additions and 78 deletions
|
@ -42,7 +42,7 @@ protected:
|
|||
OwnPtr<Memory::Region> m_framebuffer;
|
||||
#endif
|
||||
u8* m_framebuffer_data {};
|
||||
mutable Spinlock m_lock;
|
||||
mutable Spinlock m_lock { LockRank::None };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ protected:
|
|||
|
||||
virtual void clear_glyph(size_t x, size_t y) override;
|
||||
|
||||
mutable Spinlock m_lock;
|
||||
mutable Spinlock m_lock { LockRank::None };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ private:
|
|||
|
||||
explicit VGATextModeConsole(NonnullOwnPtr<Memory::Region>);
|
||||
|
||||
mutable Spinlock m_vga_lock;
|
||||
mutable Spinlock m_vga_lock { LockRank::None };
|
||||
|
||||
NonnullOwnPtr<Memory::Region> m_vga_window_region;
|
||||
VirtualAddress m_current_vga_window;
|
||||
|
|
|
@ -114,14 +114,14 @@ protected:
|
|||
|
||||
ErrorOr<void> initialize_edid_for_generic_monitor(Optional<Array<u8, 3>> manufacturer_id_string);
|
||||
|
||||
mutable Spinlock m_control_lock;
|
||||
mutable Spinlock m_control_lock { LockRank::None };
|
||||
mutable Mutex m_flushing_lock;
|
||||
|
||||
bool m_console_mode { false };
|
||||
|
||||
bool m_vertical_offsetted { false };
|
||||
|
||||
mutable Spinlock m_modeset_lock;
|
||||
mutable Spinlock m_modeset_lock { LockRank::None };
|
||||
ModeSetting m_current_mode_setting {};
|
||||
|
||||
Optional<EDID::Parser> m_edid_parser;
|
||||
|
@ -165,7 +165,7 @@ private:
|
|||
RefPtr<Memory::SharedFramebufferVMObject> m_shared_framebuffer_vmobject;
|
||||
|
||||
WeakPtr<Process> m_responsible_process;
|
||||
Spinlock m_responsible_process_lock;
|
||||
Spinlock m_responsible_process_lock { LockRank::None };
|
||||
|
||||
IntrusiveListNode<DisplayConnector, RefPtr<DisplayConnector>> m_list_node;
|
||||
};
|
||||
|
|
|
@ -58,9 +58,9 @@ private:
|
|||
|
||||
unsigned m_current_minor_number { 0 };
|
||||
|
||||
SpinlockProtected<IntrusiveList<&DisplayConnector::m_list_node>> m_display_connector_nodes;
|
||||
SpinlockProtected<IntrusiveList<&DisplayConnector::m_list_node>> m_display_connector_nodes { LockRank::None };
|
||||
|
||||
RecursiveSpinlock m_main_vga_lock;
|
||||
RecursiveSpinlock m_main_vga_lock { LockRank::None };
|
||||
bool m_vga_access_is_disabled { false };
|
||||
};
|
||||
|
||||
|
|
|
@ -154,7 +154,7 @@ private:
|
|||
|
||||
Optional<IntelGraphics::PLLSettings> create_pll_settings(u64 target_frequency, u64 reference_clock, IntelGraphics::PLLMaxSettings const&);
|
||||
|
||||
mutable Spinlock m_registers_lock;
|
||||
mutable Spinlock m_registers_lock { LockRank::None };
|
||||
RefPtr<Graphics::GenericFramebufferConsole> m_framebuffer_console;
|
||||
|
||||
const PhysicalAddress m_registers;
|
||||
|
|
|
@ -51,8 +51,8 @@ private:
|
|||
Memory::TypedMapping<volatile VMWareDisplayFIFORegisters> m_fifo_registers;
|
||||
RefPtr<VMWareDisplayConnector> m_display_connector;
|
||||
const IOAddress m_io_registers_base;
|
||||
mutable Spinlock m_io_access_lock;
|
||||
mutable RecursiveSpinlock m_operation_lock;
|
||||
mutable Spinlock m_io_access_lock { LockRank::None };
|
||||
mutable RecursiveSpinlock m_operation_lock { LockRank::None };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -124,7 +124,7 @@ private:
|
|||
|
||||
// Synchronous commands
|
||||
WaitQueue m_outstanding_request;
|
||||
Spinlock m_operation_lock;
|
||||
Spinlock m_operation_lock { LockRank::None };
|
||||
NonnullOwnPtr<Memory::Region> m_scratch_space;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue