From 94719d6e94a0c8e94fb1285824fef6120e2961bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20GIBERT?= Date: Thu, 17 Jan 2019 20:43:29 +0000 Subject: [PATCH] Kernel 0.92 --- INC/A2osX.I.txt | 3 +++ SYS/KERNEL.S.MEM.txt | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/INC/A2osX.I.txt b/INC/A2osX.I.txt index 2d432ae7..ceeb4041 100644 --- a/INC/A2osX.I.txt +++ b/INC/A2osX.I.txt @@ -6,6 +6,9 @@ K.VER .EQ $5C00 92.0 K.ENV.SIZE .EQ 512 K.PIPE.SIZE .EQ 256 *-------------------------------------- +K.MEM.ALIGN .EQ 64 +K.MEM.nALIGNm1 .EQ $C0 +*-------------------------------------- K.IRQDEV.MAX .EQ 4 K.DEV.MAX .EQ 28 K.FLT.MAX .EQ 4 diff --git a/SYS/KERNEL.S.MEM.txt b/SYS/KERNEL.S.MEM.txt index 05029eaa..7f329d18 100644 --- a/SYS/KERNEL.S.MEM.txt +++ b/SYS/KERNEL.S.MEM.txt @@ -38,12 +38,12 @@ MEM.GetMem.YAX stx Mem.ReqFlags sta ZPMemMgrSize+1 tya - bit #$0F 16 bytes aligned ? + bit #K.MEM.ALIGN-1 aligned ? beq .10 yes, request it - and #$F0 align on 16 bytes + and #K.MEM.nALIGNm1 align on boundary clc - adc #$10 + adc #K.MEM.ALIGN bcc .10 inc ZPMemMgrSize+1