;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; RDOS operating system
; Copyright (C) 1988-2000, Leif Ekblad
;
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2 of the License, or
; (at your option) any later version. The only exception to this rule
; is for commercial usage in embedded systems. For information on
; usage in commercial embedded systems, contact embedded@rdos.net
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with this program; if not, write to the Free Software
; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
;
; The author of this program may be contacted at leif@rdos.net
;
; PROTSEG.DEF
; GDT selectors and linear address space definitions
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

idt_size			EQU 800h
ldt_size			EQU 200h

k_data_size			EQU 2000h
l_stack_size		EQU 2000h
thread_data_size	EQU 0FFFFh

tss_size			EQU 400h
;
thread_seg_offs		EQU 0
thread_387_offs		EQU 80h
thread_tss_offs		EQU 400h
;
thread_size			EQU 800h

stack0_size			EQU 200h


;
; linear address space
;

video_local_linear		EQU 0000A0000h
ems_linear				EQU 0000D0000h
fixed_vm_linear			EQU 0000E0000h
vm_linear				EQU 0000E1000h

local_byte_linear		EQU 000110000h
local_page_linear		EQU 001000000h

flat_size				EQU 0E0000000h

system_mem_start		EQU 0E0000000h

global_byte_linear		EQU 0E0000000h
global_byte_size		EQU 008000000h

global_page_linear		EQU 0E8000000h
global_page_size		EQU 014000000h

handle_linear			EQU 0FC000000h
fixed_process_linear	EQU 0FC010000h

io_focus_linear			EQU 0FC400000h
video_mem_focus_linear	EQU 0FC600000h

io_local_linear			EQU 0FC800000h
video_mem_local_linear	EQU 0FCA00000h

alias_linear			EQU 0FCC00000h

sys_page_linear			EQU 0FD000000h
process_page_linear		EQU 0FD400000h

phys_list_linear		EQU 0FD800000h
phys_page_linear		EQU 0FDC00000h

video_focus_linear		EQU 0FE000000h

thread_block_linear		EQU 0FE020000h
thread_data_linear		EQU 0FE020100h
thread_tss_linear		EQU 0FE020200h
thread_ss0_linear		EQU 0FE020600h
thread_linear			EQU 0FE020800h

app_linear				EQU 0FE021000h

page0_linear			EQU 0FE022000h
gdt_linear				EQU 0FE023000h
system_linear			EQU 0FE033000h
system_linear_size		EQU 000FCD000h

kernel_linear			EQU 0FF000000h
