02-04-2011
Quote:
Originally Posted by
neur0n
OK you want the full details here they are. I am using an L4 microkernel (pistachio), so I don't know how you came to the assumption that I was using assembly in the first place
Mostly because it's going to be very difficult to not use assembly when dealing with hardware registers and/or raw BIOS calls.
Quote:
Anyways, because of this, I need to access exact memory addresses and I am on an x86 platform, using grub
So you are modifying grub's source code to write hardware registers? Or what?
Quote:
thus, there is no programming environment as such.
There must be
something, somewhere that builds this program, even if your microkernel environment can't build it itself.
Quote:
But never mind anyway, I got it to work.
That's good, because you've still told me nothing useful and showed me no code and given me no clues to what you're actually trying to do in what manner where how.
We've spent entire threads trying to figure out the shape of the elephant when you've asked questions before.
BE SPECIFIC.
10 More Discussions You Might Find Interesting
1. Solaris
Hello,
I have a Sun Ultra2 with a 13W type Creator Graphics card. My old Sun monitor has failed. Is the an adaptor or cable that I could find which will allow me to use a VGA type monitor? If so who sells them?
Thanks, Jim (2 Replies)
Discussion started by: stocksj
2 Replies
2. UNIX Desktop Questions & Answers
what is the procedure of installing a vga on the unix desktop?
i have a dell machine optiplex gx 520
and it doesnt pick the vga i tryed other vga s but graphics are so poor?
pls help. (2 Replies)
Discussion started by: Linus Aloo
2 Replies
3. Solaris
I have a vga card in my Ultra 10. How can I activate it in my Ultra 10 box which is currently still running off the Sun CRT Monitor port? (2 Replies)
Discussion started by: revzalot
2 Replies
4. Solaris
Howdy experts,
I am using two Sun-Fire-T200 which is in Cluster mode (sun cluster 3.1). Also Oracle RAC is running on those.
A daylight saving i need to apply in both servers. I am not using any ntp server.
I just plan to change the date with simple date command. Change date in 1st node.... (3 Replies)
Discussion started by: thepurple
3 Replies
5. UNIX for Dummies Questions & Answers
Hi
I actually need to change the mode to 777 in the current directory as well as subdirectories how to achieve that.
I have /usr/sol/home/workfold as the main directory there are many directies and files in the workfold directory . I need to chmod 777 to all the directories and files under... (2 Replies)
Discussion started by: ssuresh1999
2 Replies
6. Programming
Im trying to make a vga program for linux Im wondering if anyone knows of a simple document on the subject or if someone could show me some basics. What system calls should I use what parameters should I give them. How do I draw a line of pixels green after in vga mode. I prefer nasm but I can use... (2 Replies)
Discussion started by: Errigour
2 Replies
7. Linux
Hi,
I have to transfer my files using FTP. Few files are in Zipped format (.Z) and few are in .PX format . For zipped files, we need to change the mode to binary while transferring the files whereas for the px files the mode should be ascii.
Eg: sample1.z
sample2.z
sample3.z
sample.px ... (2 Replies)
Discussion started by: vidlaks
2 Replies
8. AIX
Dear All,
I have Power7 server, and I want to know its IP address.
The server have no VGA card, only serial port.
Kindly tell me how to know its IP using serial cable?
Thanks a lot (5 Replies)
Discussion started by: Mohannad
5 Replies
9. Linux
I have one monitor,two vga cards,one is nvidia(host)
the other ati rs450(guest),I use this script for use a vm
windows with a native gpu(the ati rs450)
I see this video and seems to be possible using only one
monitor,but I don't understand how to do
The video
QEMU VGA passthrough without a... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies
10. Hardware
Hi,
I am trying to find the monitor information attach to my system. To get the detail I have decoded the information available in edid file using edid-decode utility.
The file is available at /sys/devices/pci0000:00/0000:00:01.0/drm/card0/card0-VGA-1/edid
After decoding edid file I get... (4 Replies)
Discussion started by: diehard
4 Replies
LEARN ABOUT CENTOS
shell-quote
SHELL-QUOTE(1) User Contributed Perl Documentation SHELL-QUOTE(1)
NAME
shell-quote - quote arguments for safe use, unmodified in a shell command
SYNOPSIS
shell-quote [switch]... arg...
DESCRIPTION
shell-quote lets you pass arbitrary strings through the shell so that they won't be changed by the shell. This lets you process commands
or files with embedded white space or shell globbing characters safely. Here are a few examples.
EXAMPLES
ssh preserving args
When running a remote command with ssh, ssh doesn't preserve the separate arguments it receives. It just joins them with spaces and
passes them to "$SHELL -c". This doesn't work as intended:
ssh host touch 'hi there' # fails
It creates 2 files, hi and there. Instead, do this:
cmd=`shell-quote touch 'hi there'`
ssh host "$cmd"
This gives you just 1 file, hi there.
process find output
It's not ordinarily possible to process an arbitrary list of files output by find with a shell script. Anything you put in $IFS to
split up the output could legitimately be in a file's name. Here's how you can do it using shell-quote:
eval set -- `find -type f -print0 | xargs -0 shell-quote --`
debug shell scripts
shell-quote is better than echo for debugging shell scripts.
debug() {
[ -z "$debug" ] || shell-quote "debug:" "$@"
}
With echo you can't tell the difference between "debug 'foo bar'" and "debug foo bar", but with shell-quote you can.
save a command for later
shell-quote can be used to build up a shell command to run later. Say you want the user to be able to give you switches for a command
you're going to run. If you don't want the switches to be re-evaluated by the shell (which is usually a good idea, else there are
things the user can't pass through), you can do something like this:
user_switches=
while [ $# != 0 ]
do
case x$1 in
x--pass-through)
[ $# -gt 1 ] || die "need an argument for $1"
user_switches="$user_switches "`shell-quote -- "$2"`
shift;;
# process other switches
esac
shift
done
# later
eval "shell-quote some-command $user_switches my args"
OPTIONS
--debug
Turn debugging on.
--help
Show the usage message and die.
--version
Show the version number and exit.
AVAILABILITY
The code is licensed under the GNU GPL. Check http://www.argon.org/~roderick/ or CPAN for updated versions.
AUTHOR
Roderick Schertler <roderick@argon.org>
perl v5.16.3 2010-06-11 SHELL-QUOTE(1)