Updated comments at PRINTF_PROC --- it works again.
/* Physical memory layout. Design decisions made for the earliest PCs, caused
* memory to be broken broken into the following four basic pieces:
* - Conventional or base memory: first 640 KB (incl. BIOS data, see below);
+ * The top of conventional memory is often used by the BIOS to store data.
* - Upper Memory Area (UMA): upper 384 KB of the first megabyte of memory;
* - High Memory Area (HMA): ~ first 64 KB of the second megabyte of memory;
* - Extended Memory: all the memory above first megabyte of memory.
* when the processor is in real mode.
*/
#define BASE_MEM_BEGIN 0x000000
+#define BASE_MEM_TOP 0x090000
#define BASE_MEM_END 0x09FFFF
#define UPPER_MEM_BEGIN 0x0A0000
# define SYS_SETALARM 16 /* sys_setalarm(proc_nr,exp_time,abs_time) */
# define SYS_PHYSVCOPY 18 /* sys_physvcopy(vec_ptr, vec_size) */
-# define SYS_SVRCTL 19 /* sys_svrctl(proc_nr, req, argp) */
+# define SYS_PRIVCTL 19 /* sys_privctl(proc_nr, ...) */
# define SYS_SDEVIO 20 /* sys_sdevio(port, proc_nr, buf, count) */
# define SYS_SIGRETURN 21 /* sys_sigreturn(proc_nr, ctxt_ptr, flags) */
# define SYS_GETINFO 22 /* sys_getinfo(what, whereto) */
/* Field names for SYS_MEMSET, SYS_SEGCTL. */
#define MEM_PTR m1_p1 /* base */
#define MEM_COUNT m1_i1 /* count */
-#define MEM_CHAR m1_i2 /* char to write */
+#define MEM_PATTERN m1_i2 /* pattern to write */
#define MEM_CHUNK_BASE m4_l1 /* physical base address */
#define MEM_CHUNK_SIZE m4_l2 /* size of mem chunk */
#define MEM_TOT_SIZE m4_l3 /* total memory size */
#define ENABLE_BINCOMPAT 0 /* for binaries using obsolete calls */
#define ENABLE_SRCCOMPAT 0 /* for sources using obsolete calls */
-/* Which process should receive diagnostics from the kernel and system? */
-#define PRINTF_PROC TTY
+/* Which process should receive diagnostics from the kernel and system?
+ * Directly sending it to TTY only displays the output. Sending it to the
+ * log driver will cause the diagnostics to be buffered and displayed.
+ */
+#define PRINTF_PROC LOG_PROC_NR /* TTY or LOG_PROC_NR */
/* NR_CONS, NR_RS_LINES, and NR_PTYS determine the number of terminals the
* system can handle.