Compare commits
2 Commits
71d50cdbd8
...
d5cd8d6c45
| Author | SHA1 | Date | |
|---|---|---|---|
| d5cd8d6c45 | |||
| b0f118b139 |
@@ -1,28 +0,0 @@
|
|||||||
; Copyright (C) 2025 Elaina Claus
|
|
||||||
;
|
|
||||||
; 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 3 of the License, or
|
|
||||||
; (at your option) any later version.
|
|
||||||
;
|
|
||||||
; 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, see <https://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
%ifndef __INC_EARLY_MEM
|
|
||||||
|
|
||||||
;PhysicalAddress = Segment * 16 + Offset
|
|
||||||
%define SEG_TO_LINEAR(s,o) ((s << 4) + o)
|
|
||||||
|
|
||||||
; Offset = physical / (Segment * 16)
|
|
||||||
%define LINEAR_TO_OFFSET(p,s) ((p / (s << 4)))
|
|
||||||
|
|
||||||
; Seg = (physical - offset) / 16
|
|
||||||
%define LINEAR_TO_SEGMENT(p,o) ((p - o) >> 4)
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%define __INC_EARLY_MEM
|
|
||||||
@@ -31,7 +31,6 @@
|
|||||||
%include "cdecl16.inc"
|
%include "cdecl16.inc"
|
||||||
%include "entry.inc"
|
%include "entry.inc"
|
||||||
%include "config.inc"
|
%include "config.inc"
|
||||||
%include "early_mem.inc"
|
|
||||||
%include "error_codes.inc"
|
%include "error_codes.inc"
|
||||||
|
|
||||||
section .text
|
section .text
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ times 54 db 0x00
|
|||||||
%include "cdecl16.inc"
|
%include "cdecl16.inc"
|
||||||
%include "entry.inc"
|
%include "entry.inc"
|
||||||
%include "config.inc"
|
%include "config.inc"
|
||||||
%include "early_mem.inc"
|
|
||||||
%include "error_codes.inc"
|
%include "error_codes.inc"
|
||||||
%include "partition_table.inc"
|
%include "partition_table.inc"
|
||||||
%include "fat32/fat32_structures.inc"
|
%include "fat32/fat32_structures.inc"
|
||||||
|
|||||||
Reference in New Issue
Block a user