; SPDX-License-Identifier: MPL-2.0
global sh_gdt_reload_registers

section .text

sh_gdt_reload_registers:
  mov ax, 0x10
  mov ds, ax
  mov es, ax
  mov ss, ax
  xor ax, ax
  mov fs, ax
  mov gs, ax

  push 0x08
  lea rax, [rel .reload]
  push rax
  retfq

.reload:
  ret
