Fixing out web boot order.
This commit is contained in:
14
Makefile
14
Makefile
@ -199,15 +199,17 @@ COMMON_PHASE1e = common/comments.fs \
|
|||||||
common/structures.fs
|
common/structures.fs
|
||||||
|
|
||||||
COMMON_PHASE2 = common/tasks.fs common/utils.fs common/locals.fs \
|
COMMON_PHASE2 = common/tasks.fs common/utils.fs common/locals.fs \
|
||||||
common/filetools.fs common/including.fs \
|
common/streams.fs
|
||||||
common/streams.fs common/blocks.fs
|
|
||||||
|
COMMON_FILETOOLS = common/filetools.fs common/including.fs \
|
||||||
|
common/blocks.fs
|
||||||
|
|
||||||
COMMON_DESKTOP = common/ansi.fs common/desktop.fs \
|
COMMON_DESKTOP = common/ansi.fs common/desktop.fs \
|
||||||
common/graphics.fs common/graphics_utils.fs common/heart.fs
|
common/graphics.fs common/graphics_utils.fs common/heart.fs
|
||||||
|
|
||||||
POSIX_BOOT = $(COMMON_PHASE1) \
|
POSIX_BOOT = $(COMMON_PHASE1) \
|
||||||
posix/posix.fs posix/allocation.fs posix/termios.fs \
|
posix/posix.fs posix/allocation.fs posix/termios.fs \
|
||||||
$(COMMON_PHASE2) $(COMMON_DESKTOP) \
|
$(COMMON_PHASE2) $(COMMON_FILETOOLS) $(COMMON_DESKTOP) \
|
||||||
posix/x11.fs \
|
posix/x11.fs \
|
||||||
posix/graphics.fs \
|
posix/graphics.fs \
|
||||||
posix/sockets.fs posix/telnetd.fs posix/httpd.fs posix/web_interface.fs \
|
posix/sockets.fs posix/telnetd.fs posix/httpd.fs posix/web_interface.fs \
|
||||||
@ -224,7 +226,7 @@ WINDOWS_BOOT = $(COMMON_PHASE1) \
|
|||||||
windows/windows_gdi.fs \
|
windows/windows_gdi.fs \
|
||||||
windows/windows_messages.fs \
|
windows/windows_messages.fs \
|
||||||
windows/allocation.fs \
|
windows/allocation.fs \
|
||||||
$(COMMON_PHASE2) $(COMMON_DESKTOP) \
|
$(COMMON_PHASE2) $(COMMON_FILETOOLS) $(COMMON_DESKTOP) \
|
||||||
windows/graphics.fs \
|
windows/graphics.fs \
|
||||||
posix/autoboot.fs \
|
posix/autoboot.fs \
|
||||||
common/fini.fs
|
common/fini.fs
|
||||||
@ -233,7 +235,7 @@ $(GEN)/windows_boot.h: tools/source_to_string.js $(WINDOWS_BOOT) | $(GEN)
|
|||||||
|
|
||||||
ESP32_BOOT = $(COMMON_PHASE1) \
|
ESP32_BOOT = $(COMMON_PHASE1) \
|
||||||
esp32/allocation.fs \
|
esp32/allocation.fs \
|
||||||
$(COMMON_PHASE2) \
|
$(COMMON_PHASE2) $(COMMON_FILETOOLS) \
|
||||||
esp32/bindings.fs esp32/platform.fs \
|
esp32/bindings.fs esp32/platform.fs \
|
||||||
posix/httpd.fs posix/web_interface.fs esp32/web_interface.fs \
|
posix/httpd.fs posix/web_interface.fs esp32/web_interface.fs \
|
||||||
esp32/registers.fs esp32/timers.fs \
|
esp32/registers.fs esp32/timers.fs \
|
||||||
@ -262,7 +264,7 @@ $(GEN)/web_sys.js: $(GEN)/dump_web_opcodes | $(GEN)
|
|||||||
|
|
||||||
WEB_BOOT = $(COMMON_PHASE1e) \
|
WEB_BOOT = $(COMMON_PHASE1e) \
|
||||||
$(COMMON_PHASE2) \
|
$(COMMON_PHASE2) \
|
||||||
common/fini.fs
|
web/fini.fs
|
||||||
$(GEN)/web_boot.js: tools/source_to_string.js $(WEB_BOOT) | $(GEN)
|
$(GEN)/web_boot.js: tools/source_to_string.js $(WEB_BOOT) | $(GEN)
|
||||||
$< -web boot $(VERSION) $(REVISION) $(WEB_BOOT) >$@
|
$< -web boot $(VERSION) $(REVISION) $(WEB_BOOT) >$@
|
||||||
|
|
||||||
|
|||||||
@ -432,7 +432,7 @@ e: check-args
|
|||||||
out: argc
|
out: argc
|
||||||
;e
|
;e
|
||||||
|
|
||||||
e: check-highlevel
|
e: check-imports
|
||||||
out: needs
|
out: needs
|
||||||
out: required
|
out: required
|
||||||
out: included?
|
out: included?
|
||||||
@ -467,11 +467,14 @@ e: check-desktop
|
|||||||
check-ansi
|
check-ansi
|
||||||
;e
|
;e
|
||||||
|
|
||||||
e: check-phase2
|
e: check-filetools
|
||||||
check-blocks
|
check-blocks
|
||||||
out: streams
|
check-imports
|
||||||
check-highlevel
|
|
||||||
check-snapshots
|
check-snapshots
|
||||||
|
;e
|
||||||
|
|
||||||
|
e: check-phase2
|
||||||
|
out: streams
|
||||||
check-locals
|
check-locals
|
||||||
check-utils
|
check-utils
|
||||||
out: ms
|
out: ms
|
||||||
@ -497,6 +500,7 @@ e: test-windows-forth-namespace
|
|||||||
' forth list-from
|
' forth list-from
|
||||||
out: FORTH
|
out: FORTH
|
||||||
check-desktop
|
check-desktop
|
||||||
|
check-filetools
|
||||||
check-phase2
|
check-phase2
|
||||||
check-allocation
|
check-allocation
|
||||||
out: default-key?
|
out: default-key?
|
||||||
@ -543,6 +547,7 @@ e: test-posix-forth-namespace
|
|||||||
out: sockets
|
out: sockets
|
||||||
out: x11
|
out: x11
|
||||||
check-desktop
|
check-desktop
|
||||||
|
check-filetools
|
||||||
check-phase2
|
check-phase2
|
||||||
out: form
|
out: form
|
||||||
out: termios
|
out: termios
|
||||||
@ -651,6 +656,7 @@ e: test-esp32-forth-namespace
|
|||||||
out: WiFi
|
out: WiFi
|
||||||
out: Wire
|
out: Wire
|
||||||
out: ESP
|
out: ESP
|
||||||
|
check-filetools
|
||||||
check-phase2
|
check-phase2
|
||||||
check-allocation
|
check-allocation
|
||||||
check-phase1
|
check-phase1
|
||||||
|
|||||||
23
web/fini.fs
Normal file
23
web/fini.fs
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
\ Copyright 2022 Bradley D. Nelson
|
||||||
|
\
|
||||||
|
\ Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
\ you may not use this file except in compliance with the License.
|
||||||
|
\ You may obtain a copy of the License at
|
||||||
|
\
|
||||||
|
\ http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
\
|
||||||
|
\ Unless required by applicable law or agreed to in writing, software
|
||||||
|
\ distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
\ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
\ See the License for the specific language governing permissions and
|
||||||
|
\ limitations under the License.
|
||||||
|
|
||||||
|
internals definitions
|
||||||
|
( TODO: Figure out why this has to happen so late. )
|
||||||
|
transfer internals-builtins
|
||||||
|
forth definitions internals
|
||||||
|
( Bring a forth to the top of the vocabulary. )
|
||||||
|
: ok ." uEforth" raw-ok ;
|
||||||
|
transfer forth
|
||||||
|
forth
|
||||||
|
ok
|
||||||
@ -463,9 +463,9 @@ function VM(stdlib, foreign, heap) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function memmove(src, dst, n) {
|
function memmove(dst, src, n) {
|
||||||
src = src | 0;
|
|
||||||
dst = dst | 0;
|
dst = dst | 0;
|
||||||
|
src = src | 0;
|
||||||
n = n | 0;
|
n = n | 0;
|
||||||
if ((src | 0) < (dst | 0)) {
|
if ((src | 0) < (dst | 0)) {
|
||||||
src = (src + n - 1) | 0;
|
src = (src + n - 1) | 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user