aboutsummaryrefslogtreecommitdiff
path: root/slof
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2018-05-18 17:45:30 +0200
committerAlexey Kardashevskiy <aik@ozlabs.ru>2018-05-25 14:55:50 +1000
commit4c2af4e48ff4162617cd41d4b2582bcbda670bea (patch)
tree884bb3f6d2e1324571fd7de40b02ea763c86866b /slof
parent232eb915d1c08de17c59a05557ea6051275d078b (diff)
downloadSLOF-4c2af4e48ff4162617cd41d4b2582bcbda670bea.zip
SLOF-4c2af4e48ff4162617cd41d4b2582bcbda670bea.tar.gz
SLOF-4c2af4e48ff4162617cd41d4b2582bcbda670bea.tar.bz2
libnet: Get rid of unused huge_load and block_size parameters
The blocksize is hard-coded to 1428 bytes in obp-tftp.fs, so instead of hardcoding this in the Forth code, we could also move this into tftp.c directly instead. A similar condition exists with the huge-tftp-load parameter. While this non-standard variable could still be changed in the obp-tftp package, it does not make much sense to set it to zero since you only lose the possibility to do huge TFTP loads with index wrap-around in that case. Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Greg Kurz <groug@kaod.org> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'slof')
-rw-r--r--slof/fs/packages/obp-tftp.fs3
1 files changed, 0 insertions, 3 deletions
diff --git a/slof/fs/packages/obp-tftp.fs b/slof/fs/packages/obp-tftp.fs
index 17fb980..19c11e1 100644
--- a/slof/fs/packages/obp-tftp.fs
+++ b/slof/fs/packages/obp-tftp.fs
@@ -12,8 +12,6 @@
s" obp-tftp" device-name
-VARIABLE huge-tftp-load 1 huge-tftp-load !
-
: open ( -- okay? )
true
;
@@ -28,7 +26,6 @@ VARIABLE huge-tftp-load 1 huge-tftp-load !
60000000 ( addr maxlen )
- huge-tftp-load @ d# 1428 ( addr maxlen hugetftp blocksize )
\ Add OBP-TFTP Bootstring argument, e.g. "10.128.0.1,bootrom.bin,10.128.40.1"
my-args
net-load dup 0< IF drop 0 THEN