Displaying 9 results from an estimated 9 matches for "__putstr".
2013 Aug 16
7
[PATCH v2] xen/console: buffer and show origin of guest PV writes
...}
@@ -504,12 +547,12 @@ static int printk_prefix_check(char *p, char **pp)
((loglvl < upper_thresh) && printk_ratelimit()));
}
-static void printk_start_of_line(void)
+static void printk_start_of_line(const char *prefix)
{
struct tm tm;
char tstr[32];
- __putstr("(XEN) ");
+ __putstr(prefix);
if ( !opt_console_timestamps )
return;
@@ -524,12 +567,11 @@ static void printk_start_of_line(void)
__putstr(tstr);
}
-void printk(const char *fmt, ...)
+static void vprintk_common(const char *prefix, const char *fmt, va_list args)...
2013 Sep 09
0
[PATCH v3] xen/console: buffer and show origin of guest PV writes
...}
@@ -504,12 +547,12 @@ static int printk_prefix_check(char *p, char **pp)
((loglvl < upper_thresh) && printk_ratelimit()));
}
-static void printk_start_of_line(void)
+static void printk_start_of_line(const char *prefix)
{
struct tm tm;
char tstr[32];
- __putstr("(XEN) ");
+ __putstr(prefix);
if ( !opt_console_timestamps )
return;
@@ -524,12 +567,11 @@ static void printk_start_of_line(void)
__putstr(tstr);
}
-void printk(const char *fmt, ...)
+static void vprintk_common(const char *prefix, const char *fmt, va_list args)...
2013 Jan 30
1
[PATCH v2] xen: print "debug=y|n" during hypervisor startup
...console_init_preirq(void)
{
char *p;
int sh;
+#ifndef NDEBUG
+ char debug = ''y'';
+#else
+ char debug = ''n'';
+#endif
serial_init_preirq();
@@ -608,10 +613,10 @@ void __init console_init_preirq(void)
spin_lock(&console_lock);
__putstr(xen_banner());
spin_unlock(&console_lock);
- printk("Xen version %d.%d%s (%s@%s) (%s) %s\n",
+ printk("Xen version %d.%d%s (%s@%s) (%s) debug=%c %s\n",
xen_major_version(), xen_minor_version(), xen_extra_version(),
xen_compile_by(), xen_com...
2017 Feb 17
3
Linking Linux kernel with LLD
...extract_kernel(). And 2 lines below it tries to jmp to the address of decompressed kernel and fails to do that for me.
extract_kernel() method is:
https://github.com/torvalds/linux/blob/5924bbecd0267d87c24110cbe2041b5075173a25/arch/x86/boot/compressed/misc.c#L334
I added next lines before return:
__putstr("hi from extract_kernel");
if ((int) output == 0x1000000)
__putstr("== 0x1000000");
output[0] = 0xEB;
output[1] = 0xFE;
return output;
And during boot in shows all text from above and enters infinite loop as expected. So, that means it successfully jumps to 0x1000000, but loo...
2017 Feb 09
4
Linking Linux kernel with LLD
>That address seems to come from >here: https://github.com/torvalds/linux/blob/5924bbecd0267d87c24110cbe2041b5075173a25/arch/x86/boot/pm.c#L124
>
>```
>protected_mode_jump(boot_params.hdr.code32_start,
> (u32)&boot_params + (ds() << 4));
>```
>
>That boot_params.hdr.code32_start field is probably either invalid (bad reloc or something else causing the
2010 Jan 31
1
Booting Embedded x86 - Looking for Information
...to include support for
booting a (b)zImage via a Real-Mode trampoline and very basic BIOS
interupt services. I think that I may have this working to some level
as I have put some raw serial outputs in the interrupt service routine
and I'm getting hits on IRQs 0x10, 0x15 and 0x16. I then hacked
__putstr() in arch/x86/boot/compressed/misc.c to output to the serial
port rather than video memory but got no additional output so it
looks like I'm not getting to the point of kernel decompression
But, I really don't think this is the way I want to do it - U-Boot
has already put the CPU into prot...
2008 May 29
6
is it possible to build two privileged domain at boot time?
Hi All,
I am not very familiar with xen details. Now I am thinking of
building two privilged domain(domain 0 not driver domain) at boot time.
The other question is that wether it is possible to create another
domain 0 by domain-builder running in domain0? Does it make sense
when domain 0 is shut down unexpectedly another domain 0 can run at
once. Maybe it is absurd. I am looking forwards
2009 Nov 12
20
VIRQ_CON_RING
Is there any real user for this vIRQ? I''m asking because, while debugging
a problem that required to add some printk()s that could temporarily issue
at a high rate, I ran into the situation that this extra output prevented
guest/dom0 boot from making any progress. As I then realized this was
due to the tasklet_schedule() called from inside the console handling
code, which resulted in
2009 Nov 12
20
VIRQ_CON_RING
Is there any real user for this vIRQ? I''m asking because, while debugging
a problem that required to add some printk()s that could temporarily issue
at a high rate, I ran into the situation that this extra output prevented
guest/dom0 boot from making any progress. As I then realized this was
due to the tasklet_schedule() called from inside the console handling
code, which resulted in