Kernel: kernel doesn't allocate large blocks of data on stack

We used to allocate 1 KiB blocks on multiple places on stack. This
is a problem, since kernel stack shouldn't have to be too big
This commit is contained in:
Bananymous
2023-04-11 23:31:58 +03:00
parent 40f9a42c00
commit 6f7045ead2
3 changed files with 15 additions and 4 deletions

View File

@@ -38,8 +38,9 @@ namespace Kernel
{
m_width = m_terminal_driver->width();
m_height = m_terminal_driver->height();
m_buffer = new Cell[m_width * m_height];
ASSERT(m_buffer);
if (s_tty == nullptr)
s_tty = this;