summaryrefslogtreecommitdiff
path: root/bootblocks/i86_funcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootblocks/i86_funcs.c')
-rw-r--r--bootblocks/i86_funcs.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/bootblocks/i86_funcs.c b/bootblocks/i86_funcs.c
index b45343e..7b88da2 100644
--- a/bootblocks/i86_funcs.c
+++ b/bootblocks/i86_funcs.c
@@ -116,12 +116,10 @@ void cpu_check()
void mem_check()
{
- if (x86_test)
- {
- main_mem_top = 16384;
- return; /* If not standalone don't try */
- }
-
+#ifndef __STANDALONE__
+ main_mem_top = 16384;
+ return; /* If not standalone don't try */
+#else
{
#asm
int 0x12 ! Amount of boot memory
@@ -150,6 +148,7 @@ got_ext:
{
/* It say 64Mb-1k - Hmmmm I think it might be 128! */
}
+#endif
}
#define RIGHTS (0x93000000L)